froot-kit
v1.3.11
Published
High-performance Next.js alternative for Froot — Preact SSR, nested layouts, dynamic routes, SSG, and Markdown engine
Maintainers
Readme
FrootKit
High-performance Next.js alternative for Froot and Preact. Next.js App Router conventions with Preact SSR speed and native Tailwind CSS v4. Zero wrapper boilerplate and zero mandatory client JS.
⚡ Highlights
- Next.js App Router Parity: Familiar
src/app/layout.tsx,page.tsx, nested section layouts, and dynamic segments[slug]. - ~3 KB Preact SSR: Swap out bulky 85KB React runtime bundles for Preact’s razor-thin 3KB footprint with zero hydration churn.
- Native Tailwind CSS v4: Real CSS-first styling with
@themeand@tailwindcss/cli. Zeropostcss.config.jsortailwind.config.js. - Markdown &
getDoc(): Built-in documentation loader. Parses frontmatter, generates Table of Contents, and highlights code blocks automatically. - Zero-Wrapper CLI: No
server.tsx,build.ts, orapp.tsxneeded in your project root. Run directly withfrootkit dev,build, andstart. - Hidden
.froot/Build Artifacts: Outputs production builds directly to.froot/just like Next.js creates.next/. - Sub-25ns Router: Powered by Froot's monomorphic V8 inline cache architecture delivering 124,000+ req/sec.
🚀 Quickstart
Create a new FrootKit app in seconds:
# Using npm
npm create frootkit@latest my-app
# Using pnpm
pnpm create frootkit my-app
# Using bun
bun create frootkit my-appThen start the development server:
cd my-app
npm run devVisit http://localhost:3000 to see your live site with instant hot reloading.
🛠️ CLI Commands
| Command | Description |
| :--- | :--- |
| frootkit dev | Start development server with Tailwind watcher and hot-reloading |
| frootkit build | Pre-render static pages into .froot/ (or -o <dir>) |
| frootkit start | Launch hyper-performance production server |
| frootkit create <dir> | Scaffold a new FrootKit project |
📁 Project Structure
my-app/
├── package.json
├── tsconfig.json
├── content/
│ └── docs/
│ ├── overview.md
│ └── quickstart.md
└── src/
├── styles.css # Tailwind v4 @theme tokens
└── app/
├── layout.tsx # Document Root Layout (HTML shell)
├── page.tsx # Home page (/)
└── docs/
├── layout.tsx # Section Layout (Docs Sidebar)
├── page.tsx # /docs landing
└── [slug]/
└── page.tsx # Dynamic SSG page (/docs/:slug)📄 License
MIT © OrbitNorth LLC
