decocms weekly downloads statistics
By decocms · npm · MCP servers
Deco CMS — Self-hostable MCP Gateway for managing AI connections and tools
decocms has 26,956 recorded weekly downloads on npm, an increase of 86.2% over the past 30 days, ranking #950 of 3,247 tracked listings.
About decocms
Studio API
Provides the Bun and Hono backend, worker runtime, and distributable CLI for deco Studio.
| Attribute | Value |
|---|---|
| Workspace | decocms (apps/api) |
| Kind | Hono API, worker, and CLI |
| Runtime | Bun |
| Distribution | npm decocms; GHCR studio image |
Overview
Studio API is the authoritative server for Studio. It authenticates users and MCP clients, applies organization and project permissions, persists application state, proxies MCP traffic, dispatches durable work, and exposes operational health and telemetry endpoints.
The workspace also produces the decocms npm package and its deco executable.
The combined Studio build places the web bundle from apps/web/dist in
apps/api/dist/client, so the released CLI and API container can serve the
complete product from one artifact.
Responsibilities
- Serve Hono HTTP, OAuth, MCP, health, metrics, and organization-scoped API routes.
- Configure Better Auth, API keys, SSO, organization membership, and RBAC.
- Run Kysely and Better Auth migrations against PostgreSQL.
- Own database adapters, credential encryption, object storage, and the token vault.
- Define built-in MCP tools through
defineTool()and execute them with aStudioContext. - Proxy downstream MCP connections and enforce credentials and permissions.
- Coordinate DBOS workflows, automations, event delivery, NATS messaging, and the hosted AgentSandbox provider.
- Emit OpenTelemetry traces, metrics, and logs and query monitoring backends.
- Package the production server, migration runner, CLI, and staged web assets.
Usage
Start the complete development environment from the repository root:
docker compose up --build --watch
Compose runs dependencies and migrations before the API, syncs source changes, and keeps installed dependencies and generated artifacts inside Linux. See CONTRIBUTING.md for setup and lifecycle commands.
The API listens on port 3000 by default, while the web app listens on port
4000.
To run only the API when its PostgreSQL, NATS, and object-storage dependencies are already available:
bun run --cwd=apps/api dev
The host development command starts only the hot-reloading API. It does not
start dependency services or run migrations; configure them explicitly.
dev:server is the same direct server entry point.
Run released Studio with Docker Compose or the Helm chart. The npm CLI remains available for application scaffolding and connection tooling; it no longer provisions a local runtime.
Build both apps into the combined production distribution, then run it:
bun run build:studio
bun run --cwd=apps/api start
Use bun run build:api when only the server bundle is required. It does not
stage the web client.
Architecture
Requests enter through src/index.ts and the Hono application in
src/api/app.ts. The API resolves authentication and organization context,
constructs a StudioContext, and delegates to routes, tools, storage adapters,
or durable workers.
Browser, CLI, or MCP client
|
v
Hono routes and auth
|
v
StudioContext
/ | \
storage tools MCP proxy
| | |
PostgreSQL/DBOS downstream MCPs
|
NATS and workers
Key paths:
| Path | Purpose |
|---|---|
src/api/ | Hono application, middleware, and HTTP/MCP routes |
src/auth/ | Better Auth, OAuth, SSO, email, and organization setup |
src/core/ | StudioContext, access control, configuration, and tool primitives |
src/tools/ | Built-in MCP management tools grouped by domain |
src/database/ and src/storage/ | Database setup, Kysely adapters, and domain persistence |
src/dbos/ and src/dispatch-queue/ | Durable workflows and queue coordination |
src/event-bus/ and src/nats/ | SSE fan-out and shared NATS infrastructure |
src/encryption/ and src/vault/ | Credential encryption and secure token access |
src/sandbox/ | Hosted agent-sandbox lifecycle and preview routing |
src/observability/ and src/monitoring/ | Telemetry export and monitoring queries |
migrations/ | Ordered Kysely migrations |
scripts/ | Bundle, contract-generation, migration, and smoke-test utilities |
Canonical organization-scoped routes use /api/:org/.... Keep compatibility
routes isolated and deprecated; new API and web code must use the canonical
paths.
Blocks v8 sites
A project is a Blocks v8 site only while its "Blocks v8 site" switch is on
(metadata.blocksV8, read by isBlocksV8Project in
@decocms/shared/blocks-major). It is the single source of truth for every
v8 gate, in this API and in the web app. Only an organization owner or admin
flips it: in the project's settings (CMS tab), or with blocksV8 on
COLLECTION_VIRTUAL_MCP_UPDATE. A client metadata write that would change it
is refused. deco schema push (PUT /api/cms/:site/schema) never changes it,
and is refused with 409 not_blocks_v8_site while it is off. Turning it off
returns the project to the v7 editor, exactly as before.
Cutover: no data migration. A blocksMajor: 8 marker an earlier Studio wrote
is ignored, so every existing project starts as v7. The one v8 site in
production, demo-storefront, needs an organization admin to turn on "Blocks
v8 site" in its project settings once this ships; until then its schema push
is refused and Studio opens it with the v7 editor.
Development
Run API checks from the repository root:
bun run --cwd=apps/api check
bun run --cwd=apps/api test
bun test apps/api/src/settings/resolve-config.test.ts
bun run --cwd=apps/api build:server
The workspace test script runs Bun tests under apps/api/src. Before adding
or changing tests, read TESTING.md to choose the right tier.…
Description from the npm listing.
- mcp
- model-context-protocol
- ai
- gateway
- self-hosted
- tools
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (592)Similar npm MCP servers plugins
All 20 decocms alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/decocms. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.