Examples Gallery
Scaffold and review pre-built repository configurations optimized for immediate deployment.
Official Quick Start Repositories
Explore official templates illustrating ForgeKit setups:
- SvelteKit + Vercel Edge: Comprehensive setup using
@forgekit/authand PostgreSQL hosting.
View Vercel Template Repo - Hono + Cloudflare D1 Worker: Lightweight HTTP worker API utilizing Workers KV session cache.
View Cloudflare Template Repo
Code Snippet Checklist
Simple Health Check Endpoint
import app from '$lib/forgekit';
export const GET = async () => {
const dbStatus = await app.db.ping();
return new Response(
JSON.stringify({
status: 'healthy',
database: dbStatus ? 'connected' : 'offline'
})
);
};