Skip to content
ConstructHub
Back to projects

pdfai.constructhub.org

PDFai

AI-generated product tech sheets

Generates technical sheets and PDF documents from product input, with AI processing and an async queue for reliable results.

Technology

Stack used to build the product.

  • PHP 8.2+ and Laravel 12
  • Blade, Tailwind CSS 4, and Vite 7
  • MySQL and Laravel queues (database driver)
  • Groq API for AI technical descriptions
  • DomPDF for Letter datasheet export
  • Google and GitHub OAuth (Socialite)
  • Excel import/export

Architecture

How the system is structured: interfaces, backend, infrastructure, and operational flow.

PDFai system architecture

Features

What the product does, in detail.

  • 01

    Public product catalog

    Home with search, category filter, and pagination. Product detail with overview, specs, applications, and image.

  • 02

    AI technical datasheet PDF generation

    Async job: Groq writes an HTML technical description, DomPDF builds a single-page Letter datasheet stored publicly.

  • 03

    On-demand PDF download from the public site

    If no PDF exists, “Download datasheet” starts generation with status polling; when ready, the PDF opens inline in the browser.

  • 04

    Admin CRUD and Excel import/export

    Create, edit, and delete products (technical fields, categories, images). Filtered Excel export, CSV/XLSX import with part-number upsert, and downloadable template.

  • 05

    Bulk generation and job statuses

    Generate single or all missing PDFs. Statuses idle → queued → processing → ready/failed, with Groq rate limiting and automatic retry.

  • 06

    OAuth admin access

    OAuth-only login (Google/GitHub), optional email allowlist, and `/admin` protected by admin middleware.

  • 07

    Analytics and KPI dashboard

    Tracks views, tile clicks, and PDF downloads. Dashboard for PDF coverage, queue, and Groq health, plus a Stats page.

  • 08

    IT / EN localization

    Language switcher on public and admin UI. Locale is passed to the PDF job so AI text and datasheet stay aligned.