Getting started

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 dev

Open 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 build

Monorepo layout

PathContents
apps/webNext.js docs site and examples
feature/*Kits: form, data-table, layout, uploader, …
packages/uiShared shadcn-style primitives
packages/format, packages/configHelpers 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.

ProviderPackagePurpose
NextIntlClientProvidernext-intlTable pagination, confirms, field copy
ThemeProvidernext-themesLight/dark
ConfirmationDialogProviderlayoutuseConfirmationDialog
DataTableNuqsAdapterdata-tableURL sync for listings
TooltipProvideruiTooltips in tables and fields

Documentation map

  1. Introduction — positioning and composition model
  2. Architecture — package boundaries and ownership
  3. Installation and Providers — app setup
  4. Kit pages — Form, Data table, Layout, Uploader, UI
  5. 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

PackageRole
exportCSV/XLSX download helpers (table bulk export, uploader templates)
formatMasks and locale-aware formatting
preferencesTheme/locale cookies for host apps

Inspect package.json exports and feature/*/src for the full public API.

Next steps

On this page