# codehooks

> CLI for codehooks.io - the agent-native backend platform

Latest version **1.3.3** (published 2026-08-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install codehooks
pnpm add codehooks
yarn add codehooks
bun add codehooks
```

Provides the commands `coho`, `codehooks`.

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.3.3 |
| Published | 2026-08-31 |
| First published | 2021-04-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=14.17.0 |
| Dependencies | 51 |
| Unpacked size | 534.8 KB |
| Known vulnerabilities | 0 (+4 in 2 direct dependencies) |
| Install scripts | no |
| Author | codehooks-official |
| Maintainers | codehooks-official, jones_codehooks |
| Keywords | webhooks, webhook, automation, serverless, backend, stripe-webhook, shopify-webhook, github-webhook, discord-webhook, workflow, database, api, cli |

## Links

- npm: https://www.npmjs.com/package/codehooks
- Homepage: https://codehooks.io
- npm.io page: https://npm.io/package/codehooks

## Dependencies (51)

- [ink](https://npm.io/package/ink.md) ^3.2.0
- [ora](https://npm.io/package/ora.md) ^5.3.0
- [tar](https://npm.io/package/tar.md) ^7.5.10
- [tmp](https://npm.io/package/tmp.md) ^0.2.1
- [conf](https://npm.io/package/conf.md) ^9.0.2
- [cors](https://npm.io/package/cors.md) ^2.8.5
- [open](https://npm.io/package/open.md) ^7.0.4
- [sift](https://npm.io/package/sift.md) ^16.0.0
- [uuid](https://npm.io/package/uuid.md) ^8.3.1
- [async](https://npm.io/package/async.md) ^3.2.4
- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [react](https://npm.io/package/react.md) ^17.0.2
- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [lodash](https://npm.io/package/lodash.md) ^4.17.20
- [mkdirp](https://npm.io/package/mkdirp.md) ^1.0.4
- [nanoid](https://npm.io/package/nanoid.md) ^3.3.4
- [express](https://npm.io/package/express.md) ^4.18.1
- [nocache](https://npm.io/package/nocache.md) ^3.0.4
- [webpack](https://npm.io/package/webpack.md) ^5.88.2
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.0
- [jsonfile](https://npm.io/package/jsonfile.md) ^6.1.0
- [jwks-rsa](https://npm.io/package/jwks-rsa.md) ^2.1.4
- [progress](https://npm.io/package/progress.md) ^2.0.3
- [through2](https://npm.io/package/through2.md) ^4.0.2
- [traverse](https://npm.io/package/traverse.md) ^0.6.7
- [fast-sort](https://npm.io/package/fast-sort.md) ^3.2.0
- [node-cron](https://npm.io/package/node-cron.md) ^3.0.1
- [pretty-ms](https://npm.io/package/pretty-ms.md) ^7.0.1
- [ts-loader](https://npm.io/package/ts-loader.md) ^9.3.0
- [JSONStream](https://npm.io/package/JSONStream.md) ^1.3.5
- [cli-table3](https://npm.io/package/cli-table3.md) ^0.6.0
- [csv-parser](https://npm.io/package/csv-parser.md) ^3.0.0
- [jwt-decode](https://npm.io/package/jwt-decode.md) ^3.1.2
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [body-parser](https://npm.io/package/body-parser.md) ^1.20.0
- [cron-parser](https://npm.io/package/cron-parser.md) ^4.5.0
- [eventsource](https://npm.io/package/eventsource.md) ^1.0.7
- [ink-spinner](https://npm.io/package/ink-spinner.md) ^4.0.1
- [jsonwebtoken](https://npm.io/package/jsonwebtoken.md) ^8.5.1
- [pretty-bytes](https://npm.io/package/pretty-bytes.md) ^5.6.0
- [cookie-parser](https://npm.io/package/cookie-parser.md) ^1.4.6
- [directory-tree](https://npm.io/package/directory-tree.md) ^3.5.1
- [query-to-mongo](https://npm.io/package/query-to-mongo.md) ^0.10.1
- [node-match-path](https://npm.io/package/node-match-path.md) ^0.6.3
- [unused-filename](https://npm.io/package/unused-filename.md) ^2.1.0
- [update-notifier](https://npm.io/package/update-notifier.md) ^5.1.0
- [@fast-csv/format](https://npm.io/package/@fast-csv/format.md) ^4.3.5
- [ink-select-input](https://npm.io/package/ink-select-input.md) ^4.2.1
- [webpack-node-externals](https://npm.io/package/webpack-node-externals.md) ^3.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.3.3 (latest) — 2026-08-31
- 1.3.2 — 2026-03-06
- 1.3.1 — 2026-03-06
- 1.3.0 — 2026-03-06
- 1.2.35 — 2026-03-05
- 1.2.32 — 2026-03-05
- 1.2.31 — 2026-02-10
- 1.2.30 — 2026-02-08
- 1.2.29 — 2026-01-20
- 1.2.28 — 2025-12-10
- 1.2.27 — 2025-11-16
- 1.2.26 — 2025-11-16
- 1.2.25 — 2025-11-15
- 1.2.24 — 2025-11-13
- 1.2.23 — 2025-08-05
- … 108 more at https://npm.io/package/codehooks/versions

## README

# 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

```bash
npm install codehooks -g
coho login
```

### Create a new project

```bash
coho create myproject
cd myproject
```

### Write your backend

```js
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](https://codehooks.io/docs/quickstart-cli#typescript-support).

### Deploy

```bash
npm i codehooks-js
coho deploy
```

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

### Use templates

Jumpstart with production-ready templates:

```bash
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](https://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:**
```bash
coho prompt           # Display the Codehooks development prompt
coho prompt | pbcopy  # Copy to clipboard (macOS)
```

**MCP Server** for tools without terminal access: [codehooks-mcp-server](https://github.com/RestDB/codehooks-mcp-server)

## Documentation

- [Quickstart CLI](https://codehooks.io/docs/quickstart-cli)
- [AI Agent Setup](https://codehooks.io/docs/ai-agent-setup)
- [CLI Reference](https://codehooks.io/docs/cli)
- [API Cheat Sheet](https://codehooks.io/docs/apicheatsheet)
- [REST API Routing](https://codehooks.io/docs/rest-api-app-routes)
- [NoSQL Database API](https://codehooks.io/docs/nosql-database-api)
- [Key-Value Store](https://codehooks.io/docs/key-value-database-api)
- [Queue & Workers](https://codehooks.io/docs/queueapi)
- [Cron Jobs](https://codehooks.io/docs/jobhooks)
- [Workflow API](https://codehooks.io/docs/workflow-api)
- [Webhook Examples](https://codehooks.io/docs/examples/webhooks)
- [Full Documentation](https://codehooks.io/docs)
- [llms.txt](https://codehooks.io/llms.txt)

More info at: https://codehooks.io

---
_Source: https://npm.io/package/codehooks · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
