Build production-ready APIs and apps with typed SDKs, out-of-the-box authentication, a portable architecture, AI tooling, and crypto integrations. Fastify • OpenAPI • Next.js • Expo — one stack, multiple platforms.
🚧 Active development — Explore, fork, and contribute. 🏗️
- 🤖 AI-first dev workflow — Agent rules, skills, MCP integrations, and automated CodeRabbit reviews
- 🔌 REST API & JWT — OpenAPI spec, Swagger UI, JWT and API key auth for all clients
- 📦 SDK generation — Type-safe clients from OpenAPI via HeyAPI
- 🧩 Web3 & AI starters — Ready-to-use templates for Next.js, React, Expo, Fastify, and Ponder
- 🔓 Zero vendor lock-in — Run on VPS, AWS, Vercel, or local
- 🎨 Turbo monorepo + design system — ShadcnUI components with shared utilities
- ⚙️ Preconfigured dev tools — Biome, Git workflows, hooks, and security checks
- 🛡️ Security & quality — Automated checks in CI (e.g. Gitleaks, OSV)
- ⛓️ Multichain — EVM, Solana; shared validation and chain-specific tooling
- 📐 Conventions — Cursor rules per domain, @repo/error, Pino logging, shared TS and style
- 🧑💻 TypeScript-first — End-to-end types from database to frontend
- AI: AI SDK, OpenAI, Claude, Grok
- Frontend: Next.js 16, React 19, Tailwind, ShadcnUI
- Backend: Fastify, PostgreSQL, Supabase
- Web3: Solidity, Viem, Wagmi, Ponder, Solana
- DevOps: pnpm, TurboRepo, TypeScript, Biome, ESLint
- API — Type-safe REST API built with Fastify & OpenAPI
- Web App — Next.js app with monorepo integration
- Mobile App — Expo app (Android, iOS, Web)
- Documentation — Fumadocs-based docs site for architecture, ADRs, and development workflows
- @repo/core — Runtime-agnostic API client and types generated from OpenAPI specs
- @repo/cli — TypeScript CLI for API (API key auth; ideal for agentic integrations)
- @repo/react — React Query hooks for
@repo/coreAPI functions - @repo/ui — Shared UI component library (Shadcn/ui, Tailwind)
- @repo/utils — Shared utilities (async, data, debug, error, logger, web3)
- @repo/error — Error reporting and utilities (
captureError,getErrorMessage) - @repo/email — Email template library built with React Email
- @repo/notif — Notification service (email, activity) with type-safe schemas
Run with pnpm <script>.
Setup
setup— Full setup (install, hooks, gitleaks, osv, database)setup:gitleaks,setup:osv— Install Gitleaks, OSV scannersetup:database— Database tools Primarybuild— Build packages and appsdev— Start dev (core, react, error, utils, api, web)qa— Full check: install → checktypes → lint → build → test (unit) → test:e2e (Fastify + Next, local spawn) Format / Lintchecktypes— Type-check all packagesformat— Format code (Biome)lint— Lint with Biome + ESLintlint:biome,lint:biome:fix— Biome check, fixlint:eslint,lint:eslint:fix— ESLint check, fixlint:fix— Fix both linters Testtest— Run unit tests (packages + apps)test:e2e— E2E (Fastify + Next) CI- Lint and security run on every PR. App E2E (
web-e2e,api-e2e) and package tests (packages-test) run only when relevant code changes. Mobile: EAS build, preview on main, PR OTA—see GitHub Actions and Mobile CI/CD. Security security:block-files— Block sensitive file patternssecurity:secrets— Scan staged files for secretssecurity:secrets:full— Full Gitleaks scansecurity:osv— OSV vulnerability scansecurity:audit— pnpm audit (high+)security:check— Run security check script Hookshooks:pre-commit— Pre-commit: security + Biome stagedhooks:security— Block files, scan secrets, OSV Miscupdate-deps— Update pnpm and all dependencies
Full docs: basilic-docs.vercel.app
- Dev Environments — Local vs remote (ports 3000, 3001, 8081;
start:localhost,start:tunnel)