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

@createcms/react

v0.3.2

Published

Headless, unstyled editor primitives for createcms (shadcn-style: namespace parts, render prop, data-* state, zero runtime dependencies).

Readme

@createcms/react

Headless, unstyled editor primitives for createcms — modeled on shadcn's @shadcn/react: namespace exports (Editor.Root, Canvas.Root), a render prop instead of asChild, state surfaced as data-* attributes, and zero runtime dependencies (only react as a peer, react-dom as an optional peer for the canvas subpath).

Styled wrappers built on top of these primitives live in the shadcn-style component registry, not in this package.

Entry points

| Entry | Holds | | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | | @createcms/react/editor | Schema, state, form and preview layer (Editor.Root, useEditorContext). | | @createcms/react/editor/canvas | Live surface, overlay and interaction layer (Canvas.Root, Canvas.Overlay). | | @createcms/react/editor/cms | Optional createcms client adapters (useCmsDocument: load/save, head tracking, canvas resolve; useCmsFieldSources: registry field data). |

Canvas.Root renders the store tree through a components map. Canvas.Overlay positions rings from measured anchors and hosts an unstyled block toolbar, insert button, drag handle, palette item, drop indicator, drag preview and inline text glass for string and richText fields.

See each entry's own README (src/editor/README.md, src/editor/canvas/README.md, src/editor/cms/README.md) for its parts, hooks, types and data attributes.

Peers

  • react >= 19 (required)
  • react-dom >= 19 (optional — only needed by /editor/canvas, for portals)

Status

Published on npm as @createcms/react, pre-1.0: the API is not stable yet and every breaking change ships as a minor release (see the repository's CONTRIBUTING for the versioning rule). It has no runtime dependency — the shared block/collection/tree types are inlined into its .d.ts at build time; react ≥ 19 is a peer, react-dom ≥ 19 an optional peer for the canvas entry.

Tests

  • Node / happy-dom: bun run test (from this package; --maxWorkers=2). Schema, store, form, structure. No layout.
  • Chromium: bun run test:browser (src/**/*.browser.test.tsx, Playwright). Measurement, pointer coordinates, iframe load, contentEditable. Includes canvas.browser.test.tsx.
  • Never run the @createcms/core vitest suite unbounded.