Introduction

Welcome to the TableCraft Engine documentation! This engine simplifies database interactions by allowing you to define table configurations and automatically generate powerful APIs with filtering, sorting, pagination, and more.
Getting Started
Start with the basics to understand how to define tables and fetch data.
Basics
Defining your first table.
Standard query parameters (sort, filter, paginate).
Basic API setup.
Connecting tables (e.g., Users → Orders).
Fetching related data.
Filtering across relationships.
Computed columns (SQL expressions).
Custom search logic.
Transforms (formatting data).
Core Concepts
Handling sensitive data.
Tenant isolation.
Soft deletes.
When the engine isn't enough.
Writing raw Drizzle queries.
Using
manualResult.
Input validation.
Typed error class.
Features
Automatic date range filtering with smart detection:
Auto-detects date columns from schema
Prefers
createdAtas default filter columnFull calendar date picker in frontend
Quick presets (Today, This Week, This Month, etc.)
Generate TypeScript types from your API:
Full type safety for frontend code
Autocomplete for columns and filters
Typed adapter factory functions
CI/CD integration ready
API Reference
Packages
@tablecraft/engine
Core engine with query building
@tablecraft/table
React DataTable component
@tablecraft/client
Frontend SDK
@tablecraft/codegen
TypeScript type generator
@tablecraft/adapter-hono
Hono.js adapter
@tablecraft/adapter-express
Express adapter
@tablecraft/adapter-next
Next.js adapter
@tablecraft/adapter-sveltekit
SvelteKit adapter
@tablecraft/adapter-elysia
Elysia (Bun) adapter
@tablecraft/plugin-cache
Caching plugin
Last updated
Was this helpful?
