Examples
Self-contained frontend apps that exercise the full @timbl/client surface against a timbl CMS instance. Each is a standalone app you can clone, install, and run.
Examples
| Example | Framework | Clone |
|---|---|---|
| Astro Kitchen Sink | Astro (SSR) | npx degit aidrecabrera/timbl/examples/astro-kitchen-sink my-app |
| Next.js Kitchen Sink | Next.js (App Router) | npx degit aidrecabrera/timbl/examples/nextjs-kitchen-sink my-app |
| TanStack Start Kitchen Sink | TanStack Start | npx degit aidrecabrera/timbl/examples/tanstack-start-kitchen-sink my-app |
Prerequisites
Each example depends on @timbl/client and @timbl/core. These must be published to npm first (bun run packages:publish from the repo root). Until then, clone the whole repo and run via the workspace.
What every example covers
Typed reads (findMany with status/sort/limit/offset/q/select), detail by slug (findBySlug + include/depth), single + many relations, siteSettings globals, CMS-rendered bodyHtml, assets.findMany, local-dev auth (session/login/logout/admin writes + upload + export), TimblHttpError -> discriminated-union error views, and /health.
Auth caveat
Cookie auth (Better Auth default) does not work cross-origin. Examples are local-dev-first for the authed /admin section. For production, deploy behind the same domain or use bearer tokens.