System Overview

A high-level analysis of the VeriWorkly architecture, data flow, and processing pipeline.

System Overview

VeriWorkly utilizes a decoupled, monorepo architecture designed to prioritize user privacy while maintaining the performance required for document rendering and synchronization. The platform operates on a Local-First Architecture with an optional cloud-sync layer.


Local-First Engine

By default, VeriWorkly operates as a client-side application to ensure maximum data privacy.

  • Client Storage: When a user interacts with the dashboard, their Master Profile and resume layouts are saved directly to the browser's persistent storage (IndexedDB/LocalStorage) via Zustand.
  • Service Independence: Users can create, modify, and preview resumes without any mandatory interaction with the backend API.
  • Privacy by Design: Personal data remains on the user's device unless they explicitly opt-in to cloud services.

Optional Cloud Layer

For users requiring cross-device synchronization or managed sharing, VeriWorkly provides an optional cloud layer.

  • Data Synchronization: Local state is bridged with the backend PostgreSQL database via the Express API using the Better-Auth session framework.
  • Conflict Management: We implement optimistic concurrency strategies to ensure data integrity across multiple active sessions.

Client-Side PDF Rendering

To ensure maximum privacy and instant feedback, VeriWorkly utilizes a client-side rendering pipeline for PDF generation. This approach eliminates the need for server-side headless browsers and ensures that document layouts are generated directly within the user's secure environment.

Rendering Pipeline

  1. Instantiation: The application initializes the react-pdf engine within the user's browser.
  2. Data Mapping: The local resume state is mapped to high-fidelity PDF primitives (View, Text, Image) optimized for ATS compatibility.
  3. Generation: The document is rendered into a Blob or Stream locally, ensuring pixel-perfect alignment with the template's PDF specification.
  4. Delivery: The finalized document is made available for immediate download without ever leaving the user's device.

Technology Stack

The platform utilizes a modern stack optimized for type safety and scalability.

Frontend Stack

LayerTechnologyPurpose
FrameworkNext.js 16+ (App Router)React meta-framework with SSR, static export
UI LibraryReact 19Modern component architecture
StylingTailwind CSS 4Utility-first CSS framework with @theme API
Design SystemRadix UIUnstyled, accessible components
PDF Generationreact-pdfClient-side high-fidelity document rendering
State ManagementZustandLightweight, flexible store with middleware
FormsReact Hook FormPerformant form handling
ValidationZodTypeScript-first schema validation
IconsLucide ReactConsistent icon library
MarkdownMDXJSX in Markdown for docs/blog

Backend Stack

LayerTechnologyPurpose
RuntimeNode.js 20+JavaScript/TypeScript on the backend
FrameworkExpressMinimal, flexible HTTP server
LanguageTypeScript (Strict)Type safety across the backend
DatabasePostgreSQLReliable, feature-rich relational database
ORMPrismaType-safe database access with migrations
AuthenticationBetter-AuthModern, secure passwordless auth
Document GenerationdocxNative Word document generation (local)
ValidationZodSchema validation for API payloads
TestingVitestFast unit & integration testing
SecurityHelmetHTTP security headers

Reference Guides

On this page

Edit on GitHub