Case Study 01/AI-Powered Career PlatformLive

PortfolioForge

From a static resume to an editable digital identity.

PortfolioForge is a personal product built to simplify turning a static PDF resume into a customizable personal portfolio website. Users create an account, upload their PDF resume to private S3 storage, let NVIDIA Nemotron extract structured career data and design an initial portfolio specification, then preview, edit sections, control visibility, and save privately or publish on their own terms.

Motivation:A resume contains structured professional information, but presenting it as a personal website usually requires manual content organization, design decisions, and implementation.

Open Live AppView Source on GitHubLive app may require account signup or login.
Index
02 Build · Entry 01 / 06
My Role
Creator & Fullstack Engineer (Personal Product)
Current Status
Live
Execution Environment
Vercel Production (Next.js 16 App Router & API Route Handlers · portfolioforge.sarathy.me)
02/Problem Statement

A resume contains structured professional information, but presenting it as a personal website usually requires manual content organization, design decisions and implementation. PortfolioForge explores a more streamlined workflow using AI-assisted resume extraction and customizable portfolio generation.

03/Product Vision

Eliminate blank-page setup by extracting grounded resume details into an AI-assisted portfolio specification while keeping the human author in control—free to select templates, edit personal and project content, rearrange sections, toggle visibility, save privately, and publish explicitly.

04/Target Users & Use Cases
Intended Users

Students, software developers, and job seekers who already maintain a PDF resume and want a customizable portfolio site without coding from scratch.

Real-World Scenarios
  • Signing up and uploading a PDF resume to generate structured career data and an initial portfolio presentation.
  • Previewing templates, refining personal info, career entries, and project descriptions, and reordering or hiding sections.
  • Saving private drafts in Neon PostgreSQL to revisit later and explicitly publishing when ready.
Why It Is Useful

Bridges static PDF resumes and editable web portfolios through schema-validated AI extraction, private-by-default storage, and structured editing.

05/Core Features
  • 01

    Neon Managed Auth (Better Auth via @neondatabase/auth) supporting email/password signup, login, email verification, password reset, and protected routes

  • 02

    Private AWS S3 PDF upload (up to 4 MB) stored under user-specific keys (resumes/<userId>/<uuid>.pdf) with server-side ownership checks and short-lived presigned URLs

  • 03

    PDF text extraction via unpdf and NVIDIA Nemotron structured extraction + portfolio specification design validated with Zod schemas

  • 04

    Template selection and portfolio preview prior to saving or publishing

  • 05

    Visual editor for updating personal info, career sections, and project content alongside section reordering and visibility toggles

  • 06

    AI writing copilot integrated inside the editor with bounded timeouts and deterministic fallbacks

  • 07

    Neon PostgreSQL persistence (profiles, resumes, portfolios, portfolio_events) with private-by-default portfolios and explicit owner-controlled publishing

  • 08

    Original standalone Express backend preserved in backend/ for reference while production runs on Next.js API Route Handlers

06/Complete User Workflow
01. Account Creation & Auth

Users register or sign in via Neon Managed Auth (Better Auth) with signed HTTP-only session cookies and protected dashboard/API access.

02. PDF Resume Upload

Authenticated users upload a PDF resume (up to 4 MB) directly to private user-scoped AWS S3 object keys using short-lived presigned URLs.

03. Text Extraction & AI Analysis

Server API handlers parse PDF text with unpdf and send extracted text to NVIDIA Nemotron for structured career analysis.

04. Structured Resume Data

Extracted resume fields are validated against Zod schemas and saved to owner-scoped Neon PostgreSQL tables.

05. AI-Assisted Portfolio Design

NVIDIA Nemotron produces a structured portfolio specification to organize sections and initial presentation.

06. Template Selection

Users choose from available portfolio templates aligned with their extracted resume data.

07. Portfolio Preview

Users preview the generated portfolio layout and rendered sections before committing changes.

08. Editing Content

Users edit personal information, career sections, and project descriptions directly inside the editor.

09. Section Order & Visibility

Users rearrange section ordering and toggle individual section visibility controls.

10. Save & Return Later

Portfolios save privately by default in Neon PostgreSQL so users can return anytime to iterate or explicitly publish.

07/AI-Powered Resume Processing

PDF Text Extraction (unpdf)

Extracts selectable text from user-owned PDF buffers stored in private AWS S3 before invoking the model.

Structured Resume Extraction (NVIDIA Nemotron + Zod)

Uses NVIDIA Nemotron (nvidia/nemotron-3.5-lightning-30b-a3b) via the OpenAI-compatible SDK with Zod schema validation and bounded timeouts.

Portfolio Specification & AI Copilot

Generates an editable portfolio specification from structured resume data and provides bounded writing copilot assistance with deterministic fallbacks.

08/Architecture & System Design

Full-stack Next.js 16 App Router application deployed on Vercel serving UI pages, SSR views, and serverless API Route Handlers (/api/*). Neon Managed Auth (Better Auth) validates user sessions, Neon PostgreSQL persists owner-scoped relational data via UUID keys, AWS S3 stores private uploaded PDFs behind short-lived presigned URLs, and NVIDIA Nemotron runs structured extraction and design generation. The original Express server in backend/ is preserved only as legacy reference.

Main Components
  • · Next.js 16 Application & API Route Handlers (UI, middleware.ts, /api/*)
  • · Neon Managed Auth / Better Auth (@neondatabase/auth, requireAuthenticatedUser)
  • · Private AWS S3 Storage (resumes/<userId>/<uuid>.pdf + ownership-checked presigned URLs)
  • · AI Processing Layer (unpdf + NVIDIA Nemotron + Zod schema validation)
  • · Neon PostgreSQL (@neondatabase/serverless — profiles, resumes, portfolios, portfolio_events)
  • · Visual Editor & Owner-Controlled Publishing (private by default, explicit /p/[slug] publish)
Data Flow

User → Next.js Application → Neon Managed Auth → Authenticated Session → Resume Upload → Private AWS S3 → AI Processing with NVIDIA Nemotron → Structured Resume Data → Neon PostgreSQL → Portfolio Specification → Template Rendering → Visual Editor → Private Saved Portfolio → Optional Owner-Controlled Publishing

Execution Environment

Vercel Production (portfolioforge.sarathy.me) with Neon Managed Auth, Neon PostgreSQL, and AWS S3

System Architecture DiagramServerless Full-Stack Pipeline

Next.js 16 + Neon Auth + Neon PostgreSQL + Private AWS S3 + NVIDIA Nemotron

01 · Frontend & Authentication
User

Browser visitor or returning owner

Next.js Application

App Router UI, SSR & middleware

Neon Managed Auth

Better Auth (@neondatabase/auth)

Authenticated Session

Server-validated HTTP-only session

02 · Private Storage & AI Processing
Resume Upload

PDF upload (up to 4 MB)

Private AWS S3

User-scoped keys & presigned URLs

AI Processing with NVIDIA Nemotron

unpdf + Nemotron + Zod validation

Structured Resume Data

Validated career & project JSON

03 · Database & Specification
Neon PostgreSQL

Owner-scoped relational storage

Portfolio Specification

AI-assisted section & layout spec

Template Rendering

Structured portfolio preview

04 · Editor & Controlled Publishing
Visual Editor

Edit content, order & visibility

Private Saved Portfolio

Private by default (is_published = FALSE)

Optional Owner-Controlled Publishing

Explicit owner publish to /p/[slug]

09/Verified Technology Stack
Frontend
Next.js 16 (App Router)React 19TypeScriptTailwind CSS v4MotionLucide Icons
Backend
Next.js API Route Handlers (/api/*)Neon Managed Auth (Better Auth via @neondatabase/auth)unpdf & Zod validationLegacy Express backend (preserved in repository backend/ only)
Database
Neon PostgreSQL (@neondatabase/serverless)profiles, resumes, portfolios, portfolio_events tablesUUID-based user ownership (neon_auth.user foreign keys)
AI / ML
NVIDIA Nemotron (nvidia/nemotron-3.5-lightning-30b-a3b)OpenAI-compatible SDK integrationStructured resume extraction, portfolio design spec & AI writing copilot
Cloud Infrastructure
AWS S3 (@aws-sdk/client-s3, @aws-sdk/s3-request-presigner)Private user-specific object keys & short-lived presigned URLs
Deployment & DevOps
Vercel (auto-deployed from main)Production domain: portfolioforge.sarathy.me
10/Authentication & Security

PortfolioForge enforces server-side session identity, owner-scoped database queries, private S3 storage, and private-by-default publishing boundaries across its Next.js API Route Handlers.

  • Email/password authentication with signup, login, verification, and password reset via Neon Managed Auth (Better Auth / @neondatabase/auth)
  • Session-based server-side authentication (requireAuthenticatedUser) and protected dashboard/API routes (middleware.ts)
  • User identity derived strictly from the authenticated server session rather than trusting client-supplied IDs
  • Parameterized Neon PostgreSQL queries filtered by user_id and validated UUID parameters (assertValidUuid)
  • Private AWS S3 resume keys (resumes/<userId>/<uuid>.pdf) with server-side ownership checks before generating presigned download URLs
  • Private-by-default portfolios (is_published = FALSE) with explicit owner-controlled publishing (PATCH /api/portfolios/[portfolioId]/publish)
  • Public routes (/p/[slug], /api/portfolios/slug/[slug]) return 404 unless published and omit internal user_id, extracted_text, and s3_key fields
Repository includes automated security and isolation tests (scripts/security-isolation.test.ts). The application is not claimed to have undergone an external penetration test or independent security audit.
11/Implementation Details
Completed Features
  • · Implemented locally & configured in Neon/Vercel: Next.js 16 App Router UI and serverless API Route Handlers (/api/*)
  • · Neon Managed Auth (Better Auth) with protected dashboard routes and session-validated APIs
  • · Neon PostgreSQL relational schema (001_init.sql: profiles, resumes, portfolios, portfolio_events) with UUID ownership
  • · Private AWS S3 PDF storage with server-side ownership checks and short-lived presigned URLs
  • · NVIDIA Nemotron structured extraction, Zod validation, portfolio specification, visual editor, and owner-controlled publishing
  • · Deployed to Vercel production at https://portfolioforge.sarathy.me (HTTP 200 verified)
Partially Implemented
  • · Authenticated in-app user journeys in production require user login and were not interactively exercised without credentials during this portfolio review
Experimental
  • · Original standalone Express backend preserved in backend/ for repository reference only (not used by production)
Planned
  • · Capture and embed genuine product screenshots across upload, editor, and published portfolio views
  • · Continue iterative template and publishing refinements based on usage
11/User Customization Experience

PortfolioForge never locks users into the initial AI-generated output. Every structural, visual, and content layer remains editable in the split-pane Visual Editor.

Personal Information

Edit headline, summary, bio, and contact fields directly inside the editor without re-uploading a PDF.

Career & Project Sections

Update extracted education, experience, skills, and project content inside dedicated structured sections.

Section Ordering & Visibility

Rearrange section order and toggle visibility switches to control what renders in preview and published views.

Template Switching & Saving

Switch templates and save private revisions in Neon PostgreSQL to return and refine later.

12/Challenges & Solutions

Structuring Inconsistent Resume Content

Problem

Uploaded PDF resumes vary widely in formatting, section naming, and line breaks before reaching downstream templates.

Why It Mattered

Unstructured or unpredictable fields make reliable template rendering and section editing fragile.

Solution Implemented

Paired unpdf text extraction with NVIDIA Nemotron structured parsing and strict Zod schema validation before writing records to Neon PostgreSQL.

Engineering Decision

Store normalized structured resume JSON separately from presentation layout specs so templates stay decoupled from parsing.

Keeping AI-Generated Portfolios Editable

Problem

One-shot generated sites can trap users if layout and text are baked into static HTML.

Why It Mattered

Real users need to fix phrasing, update project details, reorder sections, and hide entries over time.

Solution Implemented

Generated a structured portfolio specification persisted in Neon PostgreSQL and rendered it through an editor supporting content edits, section reordering, and visibility toggles.

Engineering Decision

Treat AI generation as the editable starting specification rather than a locked final output.

Identity Isolation, Private S3 & Publishing Boundaries

Problem

Multi-user resume uploads and saved drafts require strict boundaries between private owner data and public portfolio pages.

Why It Mattered

Preventing cross-user access to uploaded PDFs, extracted resume text, or unpublished drafts is critical in a multi-user platform.

Solution Implemented

Derived user_id strictly from Neon Auth sessions, filtered SQL by owner UUID, stored resumes under private user keys with ownership-checked presigned URLs, and defaulted portfolios to is_published = FALSE.

Engineering Decision

Require explicit owner publishing actions and strip internal fields (user_id, extracted_text, s3_key) from public slug responses.

Serverless Constraints & Full-Stack Consolidation

Problem

Splitting Next.js and a standalone Express backend introduced extra deployment complexity and cold/timeout constraints.

Why It Mattered

Running unified serverless Route Handlers on Vercel requires bounded AI request timeouts and clean DB connection handling.

Solution Implemented

Consolidated production APIs into Next.js 16 Route Handlers using @neondatabase/serverless, bounded NVIDIA NIM timeouts with fallbacks, and kept the original Express server in backend/ for reference.

Engineering Decision

Adopt a single Vercel + Neon serverless architecture while keeping legacy backend/ untouched as historical reference.

13/My Role & Contributions

Creator & Fullstack Engineer (Personal Product)

  • Unified Next.js 16 App Router frontend and serverless API Route Handlers (/api/*) deployed on Vercel
  • Email/password authentication, HTTP-only session cookies, and route protection via Neon Managed Auth (Better Auth / @neondatabase/auth)
  • Owner-scoped Neon PostgreSQL schema (profiles, resumes, portfolios, portfolio_events) with @neondatabase/serverless and versioned SQL migrations
  • Private AWS S3 PDF upload pipeline (up to 4 MB) using user-specific object keys and short-lived presigned URLs
  • NVIDIA Nemotron AI pipeline (unpdf text extraction, Zod-validated resume parsing, portfolio specification generation, and AI writing copilot)
  • Visual editor for editing personal info, career sections, project content, section ordering, visibility, and owner-controlled publishing
14/Current Implementation Status
LiveVercel Production (Next.js 16 App Router & API Route Handlers · portfolioforge.sarathy.me)

Implemented locally, configured with Neon Managed Auth, Neon PostgreSQL, and AWS S3, and deployed on Vercel at portfolioforge.sarathy.me (HTTP 200 verified). Authenticated in-app flows require sign-up/login; genuine product screenshots and further UI refinements are still pending.

15/Screenshots & Evidence
Visual Evidence SlotScreenshots Needed

Product screenshots are pending — genuine captures of the authenticated upload workflow, visual editor, and published portfolio view have not yet been added to this repository.

Required Captures
  • Authenticated dashboard and PDF resume upload screen
  • Visual editor showing editable career sections, reordering, and visibility controls
  • Published portfolio view on portfolioforge.sarathy.me
16/Learnings & Future Improvements
Key Learnings

Building and migrating PortfolioForge to Next.js Route Handlers, Neon Managed Auth, Neon PostgreSQL, and private AWS S3 highlighted how closely data modeling, session-derived ownership, bounded serverless AI calls, and editable UI state depend on each other.

Planned Future Improvements (Not Yet Implemented)
  • Add verified screenshots once authenticated flow captures are prepared
  • Continue refining template options and editor ergonomics
Open Live App & Source

Explore PortfolioForge

Live production deployment on Vercel; authenticated workflow steps require account signup or login.