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

@dora-cms/react

v0.5.0

Published

Drop-in, self-hosted client-editable content for React sites — inline text, images, theme colors and a blog list, editable live on the page.

Readme

@dora-cms/react

React components that make parts of an existing site live-editable by a non-technical client — no Git, no CMS dashboard, no rebuild. Pairs with @dora-cms/server as the backend.

Full guide: docs/ARCHITECTURE.md in the repo.

Install

npm install @dora-cms/react

Usage

import "@dora-cms/react/styles.css";
import {
  DoraProvider,
  Editable,
  EditableImage,
  ThemeEditor,
  EditableBlog,
  AdminLoginGate,
  AdminAccountPanel,
  SeoFields,
  DoraHead,
} from "@dora-cms/react";

function App() {
  return (
    <DoraProvider siteId="my-site" apiUrl="https://api.yoursite.com" adminPath="/admin">
      <AdminLoginGate>
        <DoraHead title="Welcome to Our Bakery" description="Fresh bread daily." ogImage="" />
        <ThemeEditor variables={[{ key: "primary", label: "Brand color", default: "#4f46e5" }]} />
        <AdminAccountPanel />
        <SeoFields />
        <EditableImage id="logo" src="/logo.png" alt="Logo" />
        <Editable id="hero-title" as="h1">Welcome to Our Bakery</Editable>
        <EditableBlog />
      </AdminLoginGate>
    </DoraProvider>
  );
}

Visit the site normally, and visit /admin (or whatever path/query param you configured, see adminPath/adminParam below) to see the admin login and edit affordances. /admin needs your host to serve index.html for that path too, since there's no real page there — e.g. Vercel's rewrites, see the demo's vercel.json.

API

  • <DoraProvider siteId apiUrl adminParam? adminPath?> — wraps your app; loads content and exposes useDora(). adminPath (e.g. "/admin") puts the page into admin mode by URL path instead of the default ?edit=true query param; set one or the other, not both.
  • <Editable id as? richText?>children</Editable> — inline-editable text. richText shows a bold/italic/link toolbar and saves as sanitized HTML instead of plain text.
  • <EditableImage id src alt /> — click-to-replace image, with a "Choose existing" option to reuse a previous upload from the media library instead; uploads are compressed/downscaled client-side before they're sent.
  • <ThemeEditor variables={[{ key, label, default }]} /> — applies saved colors as --dora-{key} CSS custom properties; renders a color-picker panel for admins.
  • <EditableBlog renderPost? /> — renders the site's blog posts; admins can add, delete, and drag-to-reorder posts by a handle on each one.
  • <AdminLoginGate>children</AdminLoginGate> — shows a password form (with a show/hide toggle) when in admin mode and not yet authenticated; otherwise renders children.
  • <AdminAccountPanel /> — collapsible panel letting the authenticated client change their own admin password; renders nothing outside admin mode.
  • <SeoFields page?> — collapsible admin panel for a page's title/meta description/ social-share image, scoped by page (default "default") for multi-page sites.
  • <MediaPicker onSelect onClose /> — full-viewport overlay listing every image the client has previously uploaded; used internally by <EditableImage>/<SeoFields>'s "Choose existing", exported in case you want to build your own picker trigger elsewhere.
  • <DoraHead page? title description ogImage> — applies useSeo()'s result to document.title/<meta> tags; a convenience for plain client-rendered SPAs (doesn't affect server-rendered markup — use useSeo() with your framework's head API for that).
  • useSeo(page, defaults) — { title, description, ogImage }, saved values falling back to defaults.
  • useDora() — low-level access to { content, isAdminMode, isAuthenticated, login, logout, setContentValue, api }.

License

MIT