Install the monorepo and open the playground.
Feature Kits is a pnpm monorepo of workspace packages. This guide gets a fresh checkout running, then points to the foundation pages for application integration.
Prerequisites
- Node.js 24+
- pnpm 9+
Run the playground
git clone https://github.com/jayantrohila57/feature-kit.git
cd feature-kit
pnpm install
pnpm devOpen http://localhost:3000 for the landing page and /docs for kit documentation with live previews.
Production build (Vercel uses apps/web as the app root):
pnpm buildMonorepo layout
| Path | Contents |
|---|---|
apps/web | Next.js docs site and examples |
feature/* | Kits: form, data-table, layout, uploader, … |
packages/ui | Shared shadcn-style primitives |
packages/format, packages/config | Helpers and TS config |
Add a kit to your app
Dependencies
// apps/your-app/package.json
"dependencies": {
"form": "workspace:*"
"data-table": "workspace:*"
"layout": "workspace:*"
}Transpile (Next.js)
// next.config.ts
transpilePackages: ["form", "data-table", "layout"]Import
import { FormKit } from "form"
import { DataTable, DataTableNuqsAdapter } from "data-table"
import { FormSection, Breadcrumbs } from "layout"List every workspace kit you import in transpilePackages inside apps/web/next.config.ts. See Installation for the complete integration path.
Configure providers
Most examples assume the playground providers in apps/web/src/app/providers.tsx. Their roles and a reusable composition are documented in Providers.
| Provider | Package | Purpose |
|---|---|---|
NextIntlClientProvider | next-intl | Table pagination, confirms, field copy |
ThemeProvider | next-themes | Light/dark |
ConfirmationDialogProvider | layout | useConfirmationDialog |
DataTableNuqsAdapter | data-table | URL sync for listings |
TooltipProvider | ui | Tooltips in tables and fields |
Documentation map
- Introduction — positioning and composition model
- Architecture — package boundaries and ownership
- Installation and Providers — app setup
- Kit pages — Form, Data table, Layout, Uploader, UI
- Examples — isolated previews per scenario
Each kit page follows the same recipe: when to use → install → preview + code → recipes → props → gotchas → examples.
Other workspace packages
| Package | Role |
|---|---|
export | CSV/XLSX download helpers (table bulk export, uploader templates) |
format | Masks and locale-aware formatting |
preferences | Theme/locale cookies for host apps |
Inspect package.json exports and feature/*/src for the full public API.
Next steps
- Build a form with Form
- Add a listing with Data table
- Browse Examples for copy-paste starting points