npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

convex-cms

v0.0.10

Published

A developer-first Convex Component for content management with flexible RBAC and AI-ready architecture

Readme

Convex CMS

npm version License: Apache-2.0

Alpha (v0.0.8) Actively developed. APIs may change. Report issues.

A headless CMS built as a Convex Component. Content management that runs inside your Convex app.

Live Demo

Live Demo

Quick Start

1. Install

pnpm add convex-cms

2. Add the Component

// convex/convex.config.ts
import { defineApp } from "convex/server";
import cms from "convex-cms/convex.config";

const app = defineApp();
app.use(cms);
export default app;

3. Initialize

For Admin UI: Run pnpm convex-cms init then pnpm convex-cms adminFull Admin UI Setup

For Custom Functions: Create a CMS client and use it in your functions → Full Getting Started Guide

Why Convex CMS?

If you're building on Convex and need content management without the overhead of all the CMS plumbing, this is the most integrated option.

What you get:

  • Typesafe admin API: Admin APIs exported directly from your backend for use in your React queries and mutations
  • Built in admin UI: A well designed admin UI that you can view and edit content from
  • Embeddable content manager: Ability to embed and serve the prebuilt UI as part of you React application
  • Data independence: CMS that lives in your own convex deployment, extendable and customizable with your convex functions
  • Agent-native content management: Pre-built tools useful for AI agent integration with @convex-dev/agent

Features

| Feature | What it does | |---------|--------------| | Code-first config | Define content types in TypeScript with full type inference | | UI-defined config | Create and modify content types through the admin interface | | CMS Client | Programmatic access for custom queries and mutations | | Admin API | Pre-built functions that power the admin UI | | CLI Admin UI | Run for local development, content entry, and management | | Embedded Admin UI | Ship the admin interface as part of your React app |

In Practice

Full control over the editorial experience?
Code-first config + CMS Client. You define the schema in TypeScript and build exactly the UI you want.

Ship fast with a ready-made admin?
Code-first config + Admin API + Embedded Admin UI. Type-safe schemas with a working admin interface out of the box.

Content team needs to modify schemas without deploys?
UI-defined config + Admin API + Embedded Admin UI. Non-developers can add fields and content types.

Automated content pipelines?
CMS Client + agent tools. Pre-built tools for AI-driven workflows.

Any combination of these features works together seamlessly. Pick what fits your workflow.

Batteries Included

Leverage included features or extend and customize within your own convex functions to your desire.

Core Content

  • 13 field types. text, richText, number, boolean, date, datetime, select, multiSelect, reference, media, json, tags, category
  • Publishing workflows. Draft → scheduled → published with version history
  • Content versioning. Snapshots, comparison, and rollback
  • Scheduled publishing. Convex scheduler integration for future publish dates

Media Management

  • File uploads. Direct to Convex storage with folder organization
  • Image variants. Automatic resizing and format conversion
  • Metadata & tagging. Alt text, descriptions, taxonomy support

Organization

  • Taxonomies. Hierarchical categories and flat tags
  • Content locking. Prevent concurrent edit conflicts
  • Soft delete & trash. Configurable retention with restore

Integration

  • RBAC. 4 built-in roles + custom roles with fine-grained permissions
  • Multi-locale. Content localization with fallback chains
  • Webhooks. Event-driven integration with external systems
  • Event system. All mutations emit events for async processing
  • Agent tools. 23 pre-built tools with Zod schemas for AI integration
  • Query builder. Fluent API for complex content queries

Admin UI

  • Pre-built React interface. CLI mode for development, embeddable for production
  • Visual content editing. Rich text, media picker, reference selector

Admin UI Modes

| Mode | Command | Best For | |------|---------|----------| | CLI | pnpm convex-cms admin | Development | | Embed | <CmsAdmin api={api.admin} /> | Production |

Both modes call the same functions from your convex/admin.ts.

Embedding with Theme Modes

When embedding CmsAdmin in your React app, you can control how it handles CSS variables:

// Isolated mode (default) - admin uses its own theme
<CmsAdmin api={api.admin} auth={authConfig} themeMode="isolated" />

// Inherit mode - admin inherits your app's CSS variables (for shadcn apps)
<CmsAdmin api={api.admin} auth={authConfig} themeMode="inherit" />

| Mode | Behavior | |------|----------| | isolated | Admin defines all CSS variables, ignoring parent app styles | | inherit | Admin inherits parent's shadcn variables, only defines sidebar fallbacks |

Critical for Tailwind 4 apps: If Tailwind utility classes aren't applying to the embedded admin, add a @source directive to your app's CSS:

/* your-app/src/index.css */
@import "tailwindcss";
@source "../node_modules/convex-cms/admin/dist/**/*.js";

This tells Tailwind to scan the admin's compiled JavaScript for utility classes.

Documentation

| Guide | Description | |-------|-------------| | Getting Started | Programmatic usage with createCmsClient | | Admin UI Setup | CLI and embed modes, auth integration | | Content Modeling | Content types and field definitions | | Query Builder | Fluent API for complex queries | | Taxonomies | Categories, tags, and organization | | Authorization | Roles, permissions, and custom auth | | Media Management | Uploads, folders, and variants | | Agent Tools | AI agent integration with Zod schemas | | Integration Patterns | Common setups and when to use each |

| Reference | Description | |-----------|-------------| | Client API | createCmsClient methods | | Admin API | 60+ defineAdminAPI functions | | Code-First Schema | TypeScript-first content types | | Field Types | All 13 field types | | Configuration | All config options |

Requirements

  • Convex ^1.17.0
  • Node.js 18+

License

Apache-2.0

Support