npm.io
1.3.3 • Published 3 weeks agoCLI

codehooks

Licence
ISC
Version
1.3.3
Deps
51
Size
535 kB
Vulns
4
Weekly
0

Codehooks CLI

Codehooks.io is the agent-native backend platform. A complete, isolated backend — API routes, NoSQL database, key-value store, worker queues, cron jobs, and static asset hosting — that deploys in under 5 seconds from a single CLI command.

Why Codehooks?

CLI-First, Zero Friction – Every operation is a CLI command. Your agent doesn't need a browser, a dashboard, or a tutorial. coho deploy and it's live.

Everything Built In – Database, queues, cron, key-value store, auth — it's all there. No provisioning, no wiring, no YAML. No more piecing together API Gateway + Lambda + DynamoDB + SQS.

Sub-5-Second Deploys – Your agent can iterate 50 times in the time it takes other platforms to deploy once.

AI Agent Native – Works seamlessly with Claude Code, Cursor, Codex, Cline, and other AI coding agents. Any tool that can run shell commands can autonomously create, deploy, verify, and iterate on a production backend.

Flat-Rate Pricing – Unlimited compute included. No per-request fees, no surprise bills.

Key Features:

  • JavaScript ES6/TypeScript support
  • Express.js-like routing with app.get(), app.post(), etc.
  • NoSQL database with MongoDB-like query API
  • Key-value store with Redis-like API and TTL support
  • Workflow API with state management, automatic retries, and error recovery
  • Background cron jobs and persistent worker queues
  • File storage and static frontend hosting
  • Secure authentication (API tokens, JWT/JWKS)
  • Easy CRUD API creation with app.crudlify()
  • Production-ready webhook templates for Stripe, Shopify, GitHub, Discord, Slack, and more

Quick Start

Install & sign up / login

npm install codehooks -g
coho login
Create a new project
coho create myproject
cd myproject
Write your backend
import { app, Datastore } from 'codehooks-js';

// REST API routes
app.get('/hello', (req, res) => {
  res.json({ message: 'Hello World!' });
});

// Store and query data
app.post('/items', async (req, res) => {
  const conn = await Datastore.open();
  const result = await conn.insertOne('items', req.body);
  res.json(result);
});

// Auto-generate CRUD REST API for any collection
app.crudlify();

export default app.init();

TypeScript is supported, read more here.

Deploy
npm i codehooks-js
coho deploy

Your API is live at: https://<project>.api.codehooks.io/dev/

Use templates

Jumpstart with production-ready templates:

coho create myproject --template crud-api-backend
coho create mywebhook --template webhook-stripe-minimal
# Or browse templates interactively:
coho create myproject

Available templates include CRUD APIs, Stripe, Shopify, GitHub, Discord, Twilio, Slack webhooks and more. Browse all at github.com/RestDB/codehooks-io-templates.

AI Agent Integration

Claude Code Plugin:

/plugin marketplace add RestDB/codehooks-claude-plugin
/plugin install codehooks@codehooks

Built-in AI Prompt:

coho prompt           # Display the Codehooks development prompt
coho prompt | pbcopy  # Copy to clipboard (macOS)

MCP Server for tools without terminal access: codehooks-mcp-server

Documentation

More info at: https://codehooks.io

Keywords