Skip to content

About

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

NovixUI β€” Architecture & Engineering Showcase

Novix UI Logo

Next-Generation UI Engineering Ecosystem & AI-First Design Systems

A high-performance component library, 1,380+ element gallery, and curated design systems built for human designers and AI coding agents.

Explore Live Platform (novixui.com) Β»

Live Demo React 19 TypeScript Tailwind CSS v4 TanStack Start Vercel Edge


Important

Repository Notice: This repository serves as a public engineering showcase, architecture specification, and portfolio reference for NovixUI. The core source code, proprietary component algorithms, and internal libraries are kept in a private repository. This showcase demonstrates the system design, architectural decisions, technical benchmarks, and interactive capabilities of the production application hosted live at novixui.com.


πŸ“‘ Table of Contents


🌟 Overview

NovixUI is a production-grade UI design and component engineering platform created to bridge the gap between high-end digital aesthetics, rock-solid web performance, and modern AI-driven developer workflows.

Built from the ground up on React 19, TanStack Start (SSR), Tailwind CSS v4, and Nitro Serverless, NovixUI provides:

  • An interactive gallery of 1,380+ meticulously crafted UI elements across 11 categories (Buttons, Checkboxes, Cards, Loaders, Inputs, Toggles, Tooltips, Forms, and more).
  • 8 complete AI-first design systems (Halo, Cirrus, Forge, Meadowlark, Boldface, Meridian, Cairn, and Raster Sentinel) engineered to be consumed by AI coding agents (DESIGN.md prompt context) for instant aesthetic consistency.
  • A 3D spatial artifacts lab featuring pointer-tracked perspective transforms, kinetic audio-reactive visuals, and hardware-accelerated spring animations.
  • A modular CLI package ecosystem (@novix-ui/cli and @novix-ui/react) providing seamless component copy-and-own workflows.
  • A comprehensive documentation and token system comprising 72+ routes with real-time token testing, accessibility audit guides, recipes, and multi-framework migration paths.

🎯 The Problem NovixUI Solves

Challenge in Modern Frontend How NovixUI Solves It
Aesthetic Homogeny
Modern web applications increasingly suffer from template fatigue, using the exact same generic components across SaaS products.
NovixUI introduces curated, high-craft aestheticsβ€”fluid glassmorphism, OKLCH color grading, pointer-following glow matrices, and micro-interactions that make interfaces feel distinct and premium.
AI Agent Inconsistency
Autonomous coding agents (Cursor, Claude, Copilot) frequently generate mismatched layouts, inconsistent spacing, and broken color palettes.
NovixUI establishes AI-First Design Systems: concise, tokenized specifications that can be dropped into project system prompts, enabling AI agents to produce unified, branded UI out of the box.
Heavy Runtime Overhead
Large component suites often introduce massive JS bundles, hydration latency, and runtime CSS-in-JS calculation overhead.
Zero-runtime CSS variable injection with Tailwind v4, headless Radix UI accessibility primitives, and streaming Server-Side Rendering (SSR) resulting in 99+ Lighthouse performance scores.
Clean Developer Experience
Complex component galleries often pollute browser history with ugly query string bloat and unnecessary redirect round-trips.
Designed with clean, canonical routing patterns where defaults are gracefully omitted, producing clean shareable links (/elements) and instant deep-linking.

πŸš€ Live Production Links

Experience the production deployment running live on global edge infrastructure:


πŸ“Έ Visual Showcase & Feature Walkthrough

1. Elements Discovery & Filter Matrix

An interactive gallery of 1,380+ accessible components with instant tag filtering (React, Tailwind, Pure CSS), real-time name/id search, and one-click code inspection modals.

Elements Gallery


2. AI-First Design Systems Directory

Eight full-system design frameworks engineered with semantic token sets and architectural rules designed for prompt injection into AI coding assistants.

AI Design Systems


3. Interactive 3D Spatial Artifacts Lab

Hardware-accelerated experimental components featuring gyroscope/pointer-tracked 3D transforms, fluid dial mechanics, dynamic specular reflection, and kinetic audio frequency nodes.

3D Artifacts Lab


4. Component Micro-Mechanics & Live Inspector

Every component card features an integrated 3D perspective tilt effect, framework badge indicator, interactive state machine, and one-click copyable TSX/Tailwind code with syntax highlighting.

Component Card Preview


5. Design Tokens & OKLCH Color Engine

Complete color spaces calibrated in OKLCH for perceptually uniform contrast ratios, paired with zero-re-render CSS custom properties that enable dark, light, and custom brand theme switching.

Theming Engine


6. Iconography & Design System Tokens

Curated vector iconography optimized for 1.75px optical stroke consistency, roving tab focus for keyboard navigation, and direct integration with Lucide React.

Design Tokens & Icons


πŸ— System Architecture

NovixUI is architected as an edge-first, server-rendered monorepo built for high availability and near-zero hydration latency.

High-Level Topology

graph TB
    subgraph ClientLayer ["Client & Interaction Layer"]
        R19["React 19 Components"]
        RADIX["Radix UI Primitives (A11y)"]
        MOTION["Motion Engine (Springs / 3D Tilt)"]
        TW4["Tailwind CSS v4 (Paint-time CSS Vars)"]
    end

    subgraph RouterSSR ["Routing & Full-Stack SSR Engine"]
        TSR["TanStack Router (Type-safe Trees)"]
        TSS["TanStack Start (Streaming Hydration)"]
        NITRO["Nitro Serverless Engine (v3)"]
    end

    subgraph CoreLibraries ["Internal Monorepo Modules"]
        REACT_PKG["@novix-ui/react (Core Components)"]
        CLI_PKG["@novix-ui/cli (Scaffolding Engine)"]
        DESIGN_DATA["Design System Matrix (8 Systems)"]
        ELEMENTS_DB["1,380+ Element Registry"]
    end

    subgraph Infrastructure ["Edge Infrastructure (Vercel)"]
        EDGE_ROUTER["Vercel Global Edge Network (Anycast)"]
        SERVERLESS_FN["Serverless Function (Node.js 22.x Runtime)"]
        STATIC_CDN["Static Asset CDN (.vercel/output/static)"]
        CUSTOM_DNS["Custom DNS Anycast (novixui.com)"]
    end

    CUSTOM_DNS --> EDGE_ROUTER
    EDGE_ROUTER -->|Static Assets /css, /js, /img| STATIC_CDN
    EDGE_ROUTER -->|Dynamic SSR Requests| SERVERLESS_FN
    SERVERLESS_FN --> NITRO
    NITRO --> TSS
    TSS --> TSR
    TSR --> ClientLayer
    ClientLayer --> CoreLibraries
Loading

SSR & Serverless Execution Pipeline

sequenceDiagram
    autonumber
    actor User as User / Search Bot
    participant Edge as Vercel Edge CDN
    participant Func as Serverless Function (__server.func)
    participant Nitro as Nitro Server Entry
    participant Start as TanStack Start Handler
    participant Router as TanStack Router SSR
    participant React as React 19 SSR Stream

    User->>Edge: GET https://novixui.com/elements
    Edge->>Func: Forward request (Edge -> Function)
    Func->>Nitro: Execute fetch(request)
    Nitro->>Start: Delegate to createStartHandler
    Start->>Router: Match route tree & parse search params
    Note over Router: Clean params: defaults (category=All) omitted
    Router->>React: renderRouterToStream()
    React-->>Start: HTML Chunk Stream
    Start-->>Nitro: Normalized Web Response (200 OK)
    Nitro-->>Func: Return Serverless HTTP Response
    Func-->>Edge: Cache headers & HTML body
    Edge-->>User: Fast 200 OK First Contentful Paint (<120ms)
Loading

Dynamic Token & Theming Engine

flowchart LR
    subgraph Tokens ["Design Token Definition"]
        OKLCH["OKLCH Color Gamut (Perceptual Uniformity)"]
        SPACING["Harmonic Spacing Scale (4px grid)"]
        ELEVATION["Elevation & Specular Glows"]
        MOTION_SPEC["Spring Dynamics (Stiffness: 300, Damping: 25)"]
    end

    subgraph RuntimeEngine ["Paint-Time CSS Variable Engine"]
        CSS_VARS[":root { --primary, --accent, --subtle }"]
        THEME_PROVIDER["ThemeProvider (localStorage + OS Sync)"]
        ZERO_JS["Zero-JS Runtime Paint Swapping"]
    end

    subgraph Consumers ["Consumer Surfaces"]
        COMPONENTS["React Components (@novix-ui/react)"]
        AI_SPECS["DESIGN.md Context for AI Agents"]
        MODALS["Code Export Modals"]
    end

    Tokens --> CSS_VARS
    THEME_PROVIDER --> CSS_VARS
    CSS_VARS --> ZERO_JS
    ZERO_JS --> COMPONENTS
    Tokens --> AI_SPECS
    COMPONENTS --> MODALS
Loading

⚑ Technical Highlights & Engineering Achievements

1. Zero-Hydration Performance on Server-Side Rendering

  • Migrated from client-only Single Page Application rendering to full-stack streaming SSR using TanStack Start and Nitro.
  • Achieved sub-120ms TTFB (Time to First Byte) across all 72+ documentation pages and the dynamic elements catalog.
  • Fully compatible with Vercel's Build Output API v3, deploying natively as a nodejs22.x serverless function with edge caching.

2. Clean URL Canonicalization & State Synchronization

  • Designed URL synchronization with TanStack Router search parameter schemas (zod).
  • Eliminated redundant HTTP 307 redirects by treating standard defaults (category=All, tag=All, sort=Featured) as optional URL parameters.
  • Users navigating to /elements receive clean, canonical URLs without query clutter, while deep links (e.g., /elements?category=Buttons&item=glow-btn-3) retain full fidelity.

3. OKLCH Perceptually Uniform Color System

  • Implemented modern color tokens defined in the OKLCH color space.
  • Guarantees uniform perceived brightness and contrast ratios across hues, ensuring WCAG 2.1 AA/AAA compliance in both dark and light modes.
  • Theme switching occurs at paint time via CSS Custom Properties, incurring zero React component re-mounts or re-render overhead.

4. 3D Pointer Tracking & Physics-Based Micro-Interactions

  • Built interactive 3D spatial artifact cards using hardware-accelerated GPU transforms (translate3d, rotateX, rotateY, perspective).
  • Smooth inertia and physics simulation powered by spring dynamics with configurable stiffness, damping, and mass.
  • Specular reflection shader emulation responding dynamically to pointer coordinates relative to bounding client rectangles.

πŸ›  Technology Stack

Domain Technologies Used Rationale
Core Framework React 19.2, TypeScript 5.8 Concurrency features, Server Functions, React Compiler compatibility, strict type inference.
Routing & Full-Stack SSR TanStack Router 1.170, TanStack Start 1.168 Complete type safety for route params, streaming HTML hydration, automatic code-splitting.
Serverless Runtime Nitro 3 (Beta), Vercel Serverless Multi-target engine emitting Vercel Build Output API v3 serverless bundles on Node 22.
Styling & Design System Tailwind CSS v4.2, Vanilla CSS Variables Next-gen Vite-integrated CSS compiler, zero runtime overhead, direct OKLCH support.
Accessible Primitives Radix UI (@radix-ui/react-*) Unstyled, fully accessible (WAI-ARIA compliant) headless primitives for dialogs, tabs, popovers.
Animation & Gestures Motion (Framer Motion 12.4) Declarative spring physics, exit animations, GPU-accelerated layout transitions.
Build & Tooling Vite 8.0, Rolldown, tsup, ESLint 9 Sub-second HMR, optimized production chunk trees, fast library compilation.
Validation & State Zod 3.24, TanStack Query 5 Runtime URL validation, type-safe API schema contracts, client-side data caching.
Icons & Media Lucide React, Custom SVG Shaders Lightweight, tree-shakeable vector icons with unified optical stroke weight.

πŸ“¦ Monorepo & Package Architecture

The project is structured as an npm workspaces monorepo containing modular packages:

novixui/
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ react/                  # Core React component library (@novix-ui/react)
β”‚   β”‚   β”œβ”€β”€ src/                # Button, Checkbox, Dialog, Input, Sheet, Tooltip, etc.
β”‚   β”‚   β”œβ”€β”€ tsup.config.ts      # Dual ESM/CJS build with tree-shaking and DTS generation
β”‚   β”‚   └── package.json        # Published package metadata
β”‚   β”‚
β”‚   └── cli/                    # Developer CLI generator (@novix-ui/cli)
β”‚       β”œβ”€β”€ src/                # 'novixui add <component>' automation logic
β”‚       β”œβ”€β”€ tsconfig.json       # CLI compilation target
β”‚       └── package.json        # Executable binary config
β”‚
β”œβ”€β”€ src/                        # Full-stack documentation & showcase web application
β”‚   β”œβ”€β”€ components/             # Reusable UI modules & interactive code modals
β”‚   β”œβ”€β”€ data/                   # Design system definitions & 1,380+ element catalog
β”‚   β”œβ”€β”€ nova/                   # Nova design system primitives
β”‚   β”œβ”€β”€ routes/                 # TanStack Start file-based routing tree (80+ routes)
β”‚   β”‚   β”œβ”€β”€ index.tsx           # Interactive homepage & mosaic preview
β”‚   β”‚   β”œβ”€β”€ elements.tsx        # 1,380+ Element gallery with real-time filters
β”‚   β”‚   β”œβ”€β”€ design.tsx          # 8 AI-first design systems showcase
β”‚   β”‚   └── docs.*.tsx          # 72 documentation, token, recipe, and guide pages
β”‚   β”œβ”€β”€ lib/                    # Snippet extractors, error boundaries, and helpers
β”‚   └── server.ts               # SSR entry handler for streaming responses
β”‚
β”œβ”€β”€ vercel.json                 # Vercel deployment and build configuration
└── vite.config.ts              # Vite 8 + TanStack Start + Nitro + Tailwind v4 config

🧩 Key Technical Challenges & Engineering Solutions

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 1. Eliminating Circular Route ESM Bundling in SSR Rolldown                 β”‚
β”‚                                                                             β”‚
β”‚ Problem: Route-to-route imports in Vite SSR caused cyclic dependencies,     β”‚
β”‚ resulting in undefined Route objects during server initialization.          β”‚
β”‚ Solution: Decoupled all shared datasets (SYSTEMS, CREATIONS, CodeModal)     β”‚
β”‚ into dedicated standalone modules under src/data/ and src/components/,      β”‚
β”‚ establishing a strict unidirectional dependency graph.                      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                      β”‚
                                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 2. Unifying Nitro Lazy Service Interface with Web Standard Fetch            β”‚
β”‚                                                                             β”‚
β”‚ Problem: Nitro's lazyService wrapper calls mod.fetch(req), while bare       β”‚
β”‚ TanStack Start handlers return callable functions without .fetch methods.   β”‚
β”‚ Solution: Engineered a lightweight server entry wrapper that binds the      β”‚
β”‚ start handler to an explicit { fetch: (req) => handler(req) } interface,   β”‚
β”‚ ensuring 100% compatibility across both local Node and Vercel serverless.   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                      β”‚
                                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 3. Canonical Search Param Normalization without HTTP 307 Loops              β”‚
β”‚                                                                             β”‚
β”‚ Problem: Zod schemas with default values forced TanStack Router to issue    β”‚
β”‚ 307 redirects on every plain request to /elements, bloating the URL bar.    β”‚
β”‚ Solution: Re-engineered the schema with optional fields and built a clean   β”‚
β”‚ search serializer that strips default values, maintaining clean canonical   β”‚
β”‚ URLs while preserving full state restoration for shared links.              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ—Ί Project Goals & Roadmap

  • Core Component Library: Comprehensive set of accessible, high-craft React components.
  • Full-Stack Streaming SSR: Migration to TanStack Start + Nitro on edge serverless infrastructure.
  • 1,380+ Element Registry: Filterable, sortable, copy-ready element ecosystem.
  • AI-First Design Systems: 8 complete design languages formatted for AI coding agent context.
  • Custom Domain & DNS Setup: Zero-downtime deployment on novixui.com.
  • Model Context Protocol (MCP) Server: Native MCP integration allowing AI agents (Claude, Cursor) to directly query and insert Novix components into user workspaces.
  • Figma Design Token Bridge: Two-way synchronization between Figma variables and Novix CSS custom properties.
  • WebGL / Three.js Canvas Elements: GPU-rendered fluid simulations and interactive 3D hero canvases.
  • Multi-Framework Adapters: Official bindings for Svelte 5 and Vue 3.

πŸ‘¨β€πŸ’» Author & Contact

Prakash Meena

This project is private and proprietary. Source code is confidential. For inquiries, collaboration, or architectural discussions, feel free to reach out via GitHub.

About

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors