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

@crafted-design/editor

v1.10.1

Published

A pluggable, AI-native drag-and-drop website builder for React — pick your design system (shadcn, MUI, plain HTML), drop the editor in, and let humans or AI agents (via the built-in MCP server) build designs.

Downloads

2,258

Readme

@crafted-design/editor

A pluggable drag-and-drop website builder built on Craft.js. Pick your design system — shadcn/ui, MUI, or plain HTML (or write your own adapter) — drop the editor into a React app, and ship. Documents are plain JSON, rendered live by the active adapter.

AI-native: it ships an MCP server, so a coding agent (Claude Code/Desktop, Codex, Cursor, …) can build designs through tools — and see and contrast-check its own work (it renders a real screenshot) — producing the same JSON a human would. Few page builders can be driven, and visually verified, by an agent.

Try it live · Component gallery · AI / MCP · Docs

Stable. 1.0.0 is the first stable release. The public SDK surface is frozen under SemVer — removing or renaming an export is a breaking, major-version change. See the CHANGELOG.

Highlights

  • Build designs with AI — a built-in MCP server (npx @crafted-design/editor mcp) exposes the component registry + document model as tools, so an agent can author a design from a prompt: discover components (JSON-Schema-typed props), build the tree, render it to a real screenshot, and check WCAG contrast before handing back JSON that loads unchanged into <Editor /> or <DocumentRenderer />. Works with Claude Code/Desktop, Codex, Cursor, Windsurf, Gemini CLI, and any MCP client. See MCP_GUIDE.
  • 48 canonical components — layout, content, data display, navigation, overlays, feedback, time, media — each rendered by a chosen adapter.
  • Three built-in adapters (shadcn, MUI, and dependency-free plain HTML) behind one canonical model; the active adapter is swappable at runtime, and you can register your own.
  • Style depth — a breakpoint × pseudo-state matrix, transforms, filters, transitions, gradients, token-driven themes with light/dark.
  • Host-themable editor chrome — match the editor UI to your app with <Editor editorTheme="dark" /> or a brand token map; independent of the document theme your users design.
  • Multi-document persistence on IndexedDB (with a localStorage fallback) behind a host-replaceable StorageAdapter; versioned schema migrations and document snapshots.
  • Standalone rendering — display saved documents on production pages with <DocumentRenderer /> (/renderer, no editor chrome, ~5× smaller), and build/edit/validate documents server-side with the /headless API.
  • SDK for authoring canonicals, adapters, inspector panels, themes, and templates without forking — with a scaffold CLI that generates a wired-up, test-passing skeleton (npx @crafted-design/editor scaffold adapter my-ds).

Install

npm install @crafted-design/editor react@19 react-dom@19 @craftjs/core@^0.2.12

React 19, React-DOM 19, and @craftjs/core are peer dependencies (the host provides them). The package is ESM-only.

Quickstart

import { Editor } from '@crafted-design/editor'
import '@crafted-design/editor/index.css'

export function App() {
  return <Editor />
}

That mounts the full editor with all built-in canonicals, the shadcn + MUI + plain-HTML adapters, themes, and templates pre-registered (the full entry needs the @mui/material + @emotion/* peers — use @crafted-design/editor/core to skip MUI). Pin your design system so end users can't switch it:

<Editor adapter="mui" />   // host chooses; hides the adapter switcher

(For adapter="mui", install the peers: npm install @mui/material @emotion/react @emotion/styled.) Theme the editor UI to match your app — <Editor editorTheme="dark" /> or a brand token map (separate from the document theme your users design). Customize before rendering <Editor /> via the SDK:

import { registerCanonical, registerAdapter, setStorageAdapter } from '@crafted-design/editor/sdk'

Documentation

| Guide | What it covers | |---|---| | INTEGRATION_GUIDE | Embedding the editor, customizing the registry, persistence backends, telemetry, CSP, bundle. | | SDK_GUIDE | The public @crafted-design/editor/sdk surface. | | DEVELOPER_GUIDE | In-tree contribution recipes (canonicals, adapters, panels, migrations, storage adapters). | | ARCHITECTURE | How the pieces fit (canonical model, adapters, Craft bridge). | | TUTORIAL_ADAPTER / CANONICAL / PANEL | Step-by-step authoring walkthroughs. | | API reference | Generated from the SDK types — npm run docs (published to GitHub Pages). | | SECURITY · CONTRIBUTING | Security policy + threat model · how to contribute. |

Scripts

npm run dev          # run the dogfood editor app
npm test             # vitest
npm run lint         # eslint
npm run build:dist   # build the publishable library (dist-lib/)
npm run check:size   # bundle-size budget
npm run analyze      # emit bundle-stats.html treemap
npm run docs         # generate the API reference

License

MIT — see LICENSE.