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

@accord-cms/core

v0.1.1

Published

Self-hosted CMS engine, schema, fields, routing, and admin UI for TanStack Start and PostgreSQL

Readme

@accord-cms/core

To install dependencies: The core engine, database schema, field system, block builder, public routing, and Admin UI for Accord CMS.

Accord is a self-hosted, code-first CMS built on TanStack Start, PostgreSQL, and React 19.


Architecture & Features

  • Code-First Truth: Collections, fields, and block schemas are defined in TypeScript. Database rows, Zod validators, and admin forms derive directly from your code.
  • Transactional Versioning: Monotonic version snapshots on every item save with instant history diffs and one-click rollbacks.
  • Embedded Admin UI: Mounts directly into your application at /_cms/admin with <CmsAdminRouter /> and <AdminShell />.
  • Block Component System: Strongly typed nested blocks with responsive margin/padding/max-width controls and live visual editor.
  • Model Context Protocol (MCP): Native AI agent support exposing tools for content querying, creation, updating, and route resolution.
  • PostgreSQL & Drizzle: Native PostgreSQL backing using Drizzle ORM.
  • BetterAuth: Complete authentication with role-based access control (RBAC).

Installation

bun install
# Bun
bun add @accord-cms/core

# pnpm
pnpm add @accord-cms/core

# npm
npm install @accord-cms/core

To run: To scaffold a complete project with all routes, components, and schema configured, use the CLI:

bun run index.ts
bunx @accord-cms/cli create my-accord-app

This project was created using bun init in bun v1.3.9. Bun is a fast all-in-one JavaScript runtime.

Subpath Exports

@accord-cms/core provides modular sub-path exports:

| Export | Description | | ------------------------------ | --------------------------------------------------------------------------- | | @accord-cms/core | Core engine, runtime handlers, input schemas, and types | | @accord-cms/core/admin | Built-in React Admin UI router, shells, and editor components | | @accord-cms/core/server | Server configuration (defineCmsConfig) and media providers | | @accord-cms/core/schema | Drizzle PostgreSQL schema definitions (cms_items, cms_assets, etc.) | | @accord-cms/core/fields | Field types (text, number, image, relation, blocks, slug, etc.) | | @accord-cms/core/components | Block definitions (defineComponent, defineBlock) and responsive helpers | | @accord-cms/core/routing | Route registry (defineCmsRouteRegistry) | | @accord-cms/core/lookup | Runtime route resolution (resolvePublicRoute) | | @accord-cms/core/auth | Server auth utilities and RBAC checks | | @accord-cms/core/auth-client | Client auth session hooks and helpers | | @accord-cms/core/media | Media abstraction and reference tracking | | @accord-cms/core/mcp | Model Context Protocol server tools and handlers | | @accord-cms/core/pages | Page layout and mutation helpers |


Peer Dependencies

Ensure your project installs the required peer dependencies:

  • react & react-dom (>= 19.0.0)
  • @tanstack/react-start & @tanstack/react-router
  • drizzle-orm (pinned to 0.45.2)
  • better-auth (1.7.4)
  • @tanstack/react-form

License

MIT