ChaiBuilder Core is an npm package that adds a drag-and-drop visual editor, custom React blocks, and server-side rendering to Next.js apps with App Router support.
Overview
ChaiBuilder Core targets teams that want a visual page builder inside a React or Next.js codebase rather than a separate hosted SaaS. You install the package, wrap Next.js configuration, wire server config and an API route, then mount the editor and render pages from stored block JSON on the server.
The editor offers a drag-and-drop canvas with Tailwind styling, media, SEO fields, and AI assistance. You register your own React components as blocks with typed prop schemas via the registry entry point. Server modules expose request-scoped builder access, actions, collections, and page types, while render helpers output blocks, page CSS, JSON-LD, and draft preview using React Server Components.
Data binding supports paths with synchronous formatting pipes and conditional visibility rules; bindings are analyzed for invalid patterns. Database adapters cover LibSQL, D1, and better-sqlite3, with schema shipped for you to migrate through your own Drizzle pipeline. AI features route through the Vercel AI SDK with pluggable providers, optional gateway setup, and statically importable provider plugins for production builds.
The broader ChaiBuilder product is marketed as self-hosted on your infrastructure, with native React and Tailwind rendering on the live site. Core itself is the open foundation: visual builder, block SDK, SQLite-oriented page storage, and renderer, intended to embed in applications you deploy.
Key features
- Drag-and-drop editor with Tailwind styling
- Custom React blocks with typed schemas
- Next.js App Router and RSC rendering
- Server actions and request-scoped config
- SQLite-family database adapters
- AI SDK integration with pluggable providers
- Data binding pipes and visibility rules
- Extensible slots, panels, and hooks
Use cases
- Embedded marketing pages in Next.js products
- Agency sites with editable React blocks
- Multi-tenant SaaS website modules
- Visual editing with design-token guardrails
Does the same job as
ChaiBuilder Core doesn't name these products itself, but its own description shows it does the same job.