Skip to content
VarshuDevPublic

About

Next.js 16 portfolio studio & publishing engine with 22 handcrafted themes, AI copy assistance, privacy analytics, code export, and 1-click Vercel deploy.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

8 Commits

Folders and files

Repository files navigation

Folio Studio & Publishing Engine Header

An opinionated personal portfolio studio, aesthetic compiler, and zero-dependency static engine.

Next.js 16 React 19 TypeScript Supabase Vercel License MIT

Quickstart Β β€’Β  22 Art Directions Β β€’Β  Architecture Β β€’Β  Export Engine Β β€’Β  Privacy Spec Β β€’Β  Test Suite


Why Folio?

Most modern portfolio solutions force developers into one of two compromises: cookie-cutter templates that look like generic SaaS marketing pages, or proprietary hosting lock-ins that inject invasive tracking scripts, pop-up consent banners, and recurring subscriptions.

Folio is engineered differently:

  1. 22 Expressive Art Directions: From Swiss Modernism to Cyberpunk Arcade, Neo-Brutalism, and Technical Blueprints. Every style is a complete, structural design paradigmβ€”not just an interchangeable color swap.
  2. Zero-Lock-In Static Compiler: Compile your portfolio into a single 48KB offline HTML file with inlined CSS, a static ZIP bundle for GitHub Pages/Netlify, or a fully scaffolded Next.js 16 multi-page application.
  3. Cryptographic Cookieless Analytics: Measure real visitor engagement without dropping a single cookie, storing an IP address, or displaying a GDPR cookie banner.
  4. Headless Vercel REST Deployment: Connect directly to Vercel via pure REST API endpoints with SHA-1 asset deduplication. No intermediate GitHub repository required unless you want one.
  5. Grounded AI Copy Assistance: Intelligent, non-hallucinatory bio and project polish powered by Google Gemini, enforced by strict review boundaries.

Compiler Pipeline & Architecture

Folio operates as an end-to-end compilation pipeline. The diagram below illustrates how creator data flows from the visual studio into compiled static artifacts and edge distribution:

Folio Compilation and Distribution Pipeline

  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
  β”‚   Creator Intake     β”‚  ───► β”‚  Style & Core Engine   β”‚  ───► β”‚  Distribution Edge   β”‚
  β”‚                      β”‚       β”‚                        β”‚       β”‚                      β”‚
  β”‚ β€’ Visual Studio UI   β”‚       β”‚ β€’ 22 Structural Themes β”‚       β”‚ β€’ 48KB Offline HTML  β”‚
  β”‚ β€’ Dual Builder Modes β”‚       β”‚ β€’ GF(2^8) Reed-Solomon β”‚       β”‚ β€’ Static Drop ZIP    β”‚
  β”‚ β€’ Gemini AI Polish   β”‚       β”‚ β€’ Dynamic next/og SVG  β”‚       β”‚ β€’ Vercel REST Deploy β”‚
  β”‚ β€’ Draft Auto-Save    β”‚       β”‚ β€’ HMAC SHA-256 Hasher  β”‚       β”‚ β€’ Custom Domains     β”‚
  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

22 Handcrafted Art Directions

Folio rejects homogenous design. Each theme represents an intentional visual philosophy with distinct layout rhythms, custom typographic pairings, and bespoke micro-interactions:

Tip

Complete Visual Showcase & High-Res Screenshots: View full desktop (1440 Γ— 900) and mobile (390 Γ— 844) side-by-side screenshots, typography stacks, and design philosophies in THEMES.md.

Aesthetic Family Design Philosophy Key Included Themes
Core & Editorial Clean reading measures, literary rail navigation, quiet pacing minimal, editorial, project
Modernist & Structured 1950s International Typographic Style, mathematical grids swiss, bauhaus, gallery
Technical & Systems Monospace hierarchy, green CRT phosphor, engineering blueprints terminal, blueprint, academic
Creative & Cyberpunk Scanline telemetry, ambient neon grids, midnight jazz vibes arcade, after-hours, retro, y2k
High-Impact Visual Solid black borders, raw offset shadows, archival broadsheet brutalist, newsprint, botanical, zine

πŸ‘‰ Explore the Full 22-Theme Visual Showcase with Screenshots in THEMES.md β†’

Click to expand the full 22-Theme Catalog & Typography Specs
Theme ID Name Category Primary Mood & Philosophy Layout Archetype
minimal Minimal Recommended Distraction-free, centered reading measure, quiet rules Single Column Classic
editorial Editorial Recommended Magazine contents rail, rich long-form storytelling Asymmetric Split
project Project Recommended Visual card showcase for high-volume makers Responsive Grid
swiss Swiss Recommended International Typographic Style, mathematical grids Geometric Structured
arcade Arcade Creative CRT scanlines, 80s arcade aesthetics, neon borders High-Contrast Dark
after-hours After Hours Creative Midnight jazz lounge vibes, moody indigo gradients Fluid Ambient
terminal Terminal Technical Hacker / sysadmin CLI prompt with monospace hierarchy Monospace Terminal
blueprint Blueprint Technical Architectural schematic with drafting lines and grid CAD Grid
brutalist Brutalist Visual Raw neo-brutalism, 3px solid black borders, hard drop shadows Offset Block Grid
bauhaus Bauhaus Visual Primary color geometry, constructivist layout Asymmetric Bauhaus
gallery Gallery Visual Museum exhibition catalog, whitespace-focused Curated Exhibition
botanical Botanical Personal Earthy organic tones, serif headers, peaceful rhythm Warm Organic
pastel Pastel Personal Soft vapor aesthetics, pill navigation, playful cards Rounded Modern
y2k Y2K Creative Early 2000s cyber web, iridescent chrome gradients Nostalgic Cyber
retro Retro Creative 1970s warm print press, retro typography Vintage Print
pinboard Pinboard Personal Physical corkboard layout with pinned notes & index cards Freeform Pinboard
newsprint Newsprint Editorial Broadside newspaper columns with serif body text Multi-Column Press
academic Academic Editorial Clean LaTeX paper aesthetic with citation anchors Scholarly Monograph
zine Zine Creative Indie photocopied DIY zine, rotated stamps & badges Punk Collage
documentary Documentary Personal Cinematic photography portfolio with widescreen headers Filmstrip Focus
community Community Personal Open-source advocate layout with social links front & center Social Networked
case-study Case Study Recommended In-depth engineering problem/solution breakdown Deep-Dive Narrative

Zero-Lock-In Compilation Targets

Folio guarantees complete ownership of your work. You can export or deploy your portfolio through three distinct compilation targets:

                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚           FOLIO PROFILE SPEC                 β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                         β”‚
                 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                 β–Ό                       β–Ό                      β–Ό
      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
      β”‚  Single-File HTML   β”‚ β”‚   Static Drop ZIP   β”‚ β”‚  Next.js 16 Project β”‚
      β”‚                     β”‚ β”‚                     β”‚ β”‚                     β”‚
      β”‚ β€’ 48KB total weight β”‚ β”‚ β€’ Drag & Drop ready β”‚ β”‚ β€’ Multi-page routes β”‚
      β”‚ β€’ Inlined SVG & CSS β”‚ β”‚ β€’ GitHub Pages      β”‚ β”‚ β€’ Dynamic OG images β”‚
      β”‚ β€’ 100% offline-readyβ”‚ β”‚ β€’ Netlify / Cloudfl.β”‚ β”‚ β€’ Full source code  β”‚
      β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
  1. 48KB Standalone Single-File HTML:

    • Zero external scripts, zero external font stylesheets, zero CDN dependencies.
    • All styles, vector icons, and layout structures are inlined directly into a single self-contained .html file.
    • Runs instantly from a local USB drive, email attachment, or local preview.
  2. Static Drop ZIP Archive:

    • Pre-bundled with index.html, responsive styling, and an automated deployment README.md.
    • Ready for instant drag-and-drop hosting on GitHub Pages, Netlify Drop, or Cloudflare Pages.
  3. Full Next.js 16 (Turbopack) Application:

    • Compiles a complete, standalone TypeScript project with route handlers, dynamic next/og OpenGraph cards, and contact form handling.
    • Fully decoupled from Folioβ€”host anywhere that runs Node.js or edge servers.

Privacy-First Cookieless Telemetry

Unlike traditional analytics platforms that rely on invasive third-party cookies and persistent cross-site tracking, Folio incorporates a zero-cookie, privacy-first telemetry engine:

$$\text{Visitor Token} = \text{HMAC-SHA256}\left(\text{Salt}_{\text{daily}} \parallel \text{IP Address} \parallel \text{User-Agent}\right)$$

  • Zero Cookie Banners Required: Because no identifier is written to the visitor's device, your portfolio is 100% compliant with GDPR, ePrivacy, and CCPA out of the box.
  • Daily Salt Rotation: Telemetry salts rotate every 24 hours. A visitor today cannot be tracked or correlated against their visit tomorrow.
  • Zero Raw Data Persistence: IP addresses and raw user-agent strings are strictly hashed in memory and immediately discarded. Never written to disk or database.
  • Metrics Tracked: Total pageviews, daily unique visitors, normalized referrers (GitHub, X/Twitter, LinkedIn, Direct), and outbound link click counts.

Grounded AI Copy Assistance

Folio includes an integrated copy refinement assistant powered by Google Gemini, engineered with strict anti-hallucination boundaries:

  • Bounded Action Contracts: The assistant is constrained to exactly three operations:
    • Make clearer (eliminates jargon, improves cadence)
    • Shorten (condenses text for mobile viewports)
    • Make more professional (polishes tone for hiring managers)
  • Factual Grounding Defense: Prompts are strictly bounded to the factual context supplied by the creator. The model is forbidden from inventing company names, dates, or credentials.
  • Mandatory Human-in-the-Loop: Every AI suggestion is presented as an interactive diff with explicit Accept, Edit, or Dismiss controls.

Pure TypeScript Vector QR Engine

Folio features an internal, zero-dependency QR code generator built entirely in TypeScript:

  • Compliant with the ISO/IEC 18004 international standard.
  • Implements Galois Field $\text{GF}(2^8)$ polynomial mathematics for Reed-Solomon error correction.
  • Emits high-contrast, mathematically pure SVG vector graphics with customizable foreground and background tones.
  • Zero client-side canvas dependencies; 100% server-side and static compile compatible.

Headless Vercel Deployment

Deploy directly to your custom production domain on Vercel with zero friction:

[ Folio Studio ] ───( SHA-1 Digest )───► [ POST /v2/files ] ───► [ POST /v13/deployments ] ───► [ Live Edge URL ]
  • Direct REST Integration: Uses Vercel's Files API (POST /v2/files) and Deployments API (POST /v13/deployments) with SHA-1 asset deduplication.
  • No Git Repository Required: Deploys project file trees directly into Vercel's build pipeline without requiring write access to your GitHub account.
  • Strict Server Secret Boundary: OAuth tokens, client secrets, and deployment tokens remain strictly isolated on server-side endpoints and are never sent to the browser.

Quickstart

Prerequisites

  • Node.js 20.0 or higher
  • npm or pnpm

1. Clone & Install

# Clone the repository
git clone https://github.com/VarshuDev/folio.git

# Enter the project directory
cd folio

# Install dependencies
npm install

2. Configure Environment

cp .env.example .env.local

(Optional: Fill in Supabase or Gemini keys in .env.local. If left blank, Folio seamlessly runs in local memory mode with browser-persisted drafts!)

3. Launch Development Server

npm run dev

Open http://localhost:3000 in your browser:

  • Studio Builder: http://localhost:3000/studio
  • Visual QA Theme Showcase: http://localhost:3000/template-demos
  • Account & Messages Inbox: http://localhost:3000/account
  • Public Portfolio Route: http://localhost:3000/p/[slug]

Test Suite & Rigor

Folio is backed by an automated test suite verifying compilers, security boundaries, and rendering engines:

# Run the complete test suite (180+ tests)
npm test

# Run TypeScript typecheck
npm run typecheck

# Run Turbopack production build
npm run build
Engine Under Test Test Command Verification Scope
Publishing & Deploy npm run test:publishing Slug sanitization, OAuth replay protection, Vercel REST payload validation
AI Boundaries npm run test:ai Prompt injection defense, hallucination prevention, diff merging
Export Compiler npm run test:export IEEE 802.3 CRC-32 integrity, PKZIP Deflate format, standalone HTML
Cookieless Analytics npm run test:analytics Salt rotation lifecycle, hash collision prevention, zero IP leakage
Vector QR Engine npm run test:qr Galois Field $\text{GF}(2^8)$ polynomials, version matrices, clean SVG paths
Contact Honeypot npm run test:contact Honeypot trap triggers, sliding-window rate limiters, message isolation
Dev Credits Ledger npm run test:credits Ledger immutability, idempotent balance constraints

Security & Integrity

  • Zero Plaintext Secrets: All sensitive secrets (SUPABASE_SERVICE_ROLE_KEY, VERCEL_CLIENT_SECRET) are enforced server-only.
  • Bot Honeypot Defense: Public portfolio contact endpoints feature silent honeypots (hp_company) and IP sliding-window limiters (maximum 3 messages per hour).
  • Subresource Integrity: Exported HTML bundles use zero external dependencies, neutralizing third-party supply-chain attacks.

Author & Credits

Engineered and maintained with care by VarshuDev.

If you find Folio useful for your developer portfolio, consider starring the repository!

Released under the MIT License.

About

Next.js 16 portfolio studio & publishing engine with 22 handcrafted themes, AI copy assistance, privacy analytics, code export, and 1-click Vercel deploy.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages