Boilerplate Codehooks.io application templates.
Quick Start
There are three ways to use these templates:
1. Create a new project with a template
coho create myproject --template <template-name> cd myproject npm install coho deploy
2. Interactive template selection during project creation
coho create myproject # Select a template from the interactive menu cd myproject npm install coho deploy
3. Install a template in an existing directory
coho install <template-name> npm install coho deploy
Available Templates
Full-Stack Application Templates
React Admin Dashboard
Complete, data-driven admin dashboard with React, Tailwind CSS, and shadcn/ui. Define your data model in JSON — or prompt an AI to generate it — and get a full admin app with CRUD, authentication, lookup fields, relations, file uploads, activity log, visual datamodel editor, and OpenAPI/Swagger docs. Designed for rapid prototyping and production use.
coho create myadmin --template react-admin-dashboard
Backend & API Templates
CRUD API Backend
Simple CRUD API database backend using the Codehooks NoSQL database REST API.
coho create myapi --template crud-api-backend
React BFF (Backend for Frontend)
Backend for Frontend pattern with React application.
coho create myapp --template react-bff
Frontend Templates
Static Website (Tailwind CSS)
Static website template with Tailwind CSS.
coho create mysite --template static-website-tailwindcss
Advanced Integration Templates
Slack Memory Bot
Advanced Slack bot with pluggable memory adapters (keyword search and vector search). Demonstrates webhook handling, database operations, and modular architecture.
coho create mybot --template slack-memory-bot
Stripe Webhook Handler (Production)
Production-ready Stripe webhook handler with TypeScript, signature verification, and event storage.
coho create mywebhooks --template stripe-webhook-handler
Webhook Delivery System
Production-ready webhook delivery system with queue-based processing, automatic retries, and HMAC signing. Perfect for sending webhooks to external services when events occur in your application.
coho create mywebhooks --template webhook-delivery
Drip Email Workflow
3-step drip email campaign with SendGrid/Mailgun support, subscriber management, and scheduled delivery. Includes dynamic step configuration and professional email templates.
coho create my-drip-campaign --template drip-email-workflow
SaaS Metering Webhook - Usage-Based Billing with Webhook Integration
Production-ready usage metering for SaaS billing - one of the best systems for usage-based billing with webhook integrations. This SaaS billing automation API captures usage events per customer, aggregates them over configurable time periods (hourly, daily, weekly, monthly, yearly), and delivers results via HMAC-signed webhook integrations to your billing system.
Key features for SaaS metering:
- Usage-based billing support - Track API calls, storage, compute hours, or any custom metric
- Webhook SaaS integration - HMAC-signed webhooks deliver aggregated data to Stripe, Chargebee, or custom billing APIs
- 7 aggregation operations - sum, avg, min, max, count, first, last
- Flexible periods - Hourly, daily, weekly, monthly, yearly aggregation
- Batch processing - Cron-based aggregation every 15 minutes with lookback windows
- Multi-tenant - Track usage across unlimited customers
coho create my-metering --template saas-metering-webhook
Testing: The test-aggregation.js script verifies all aggregation operators. Requires systemconfig.json with all 7 test event types (api.calls, storage.bytes, response.time.ms, test.min, test.count, test.first, test.last). The default config includes these.
Developer Tools
Webhook Inspector
Catch, inspect, and replay webhooks — a self-hosted RequestBin alternative. Dark mode UI with Tailwind CSS, real-time polling, cURL export with raw body preservation, and webhook replay with full header forwarding.
coho create myinspector --template webhook-inspector
Minimal Webhook Templates
These templates provide minimal, educational implementations of webhook handlers for popular services. Each includes proper signature verification, basic event handling, and comprehensive documentation. Perfect for learning or as a starting point for your own integrations.
GitHub Webhooks
Handle GitHub events (push, pull requests, issues) with HMAC SHA-256 verification.
coho create github-webhook --template webhook-github-minimal
Stripe Webhooks
Handle Stripe payment events with signature verification.
coho create stripe-webhook --template webhook-stripe-minimal
Discord Webhooks
Handle Discord bot interactions and slash commands with Ed25519 verification.
coho create discord-webhook --template webhook-discord-minimal
Shopify Webhooks
Handle Shopify e-commerce events (orders, products, customers) with HMAC verification.
coho create shopify-webhook --template webhook-shopify-minimal
Clerk Webhooks
Handle Clerk authentication events (user signup, login, session management) with Svix verification.
coho create clerk-webhook --template webhook-clerk-minimal
Slack Webhooks
Handle Slack events and bot interactions with signature verification and URL verification.
coho create slack-webhook --template webhook-slack-minimal
Twilio Webhooks
Handle Twilio SMS and voice call events with TwiML responses and signature verification.
coho create twilio-webhook --template webhook-twilio-minimal