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

@mdcms/studio

v0.2.0

Published

Embeddable Studio UI component for MDCMS

Readme

@mdcms/studio

Embeddable Studio UI component for MDCMS. Drop it into any React app at a catch-all route to get a full content management interface.

Install

npm install @mdcms/studio

Embedding in a Next.js App

Create a catch-all route for Studio:

// app/admin/[[...path]]/page.tsx
import { createStudioEmbedConfig } from "@mdcms/studio/runtime";
import config from "../../../mdcms.config";
import { AdminStudioClient } from "./admin-studio-client";

export default async function AdminPage() {
  return <AdminStudioClient config={createStudioEmbedConfig(config)} />;
}
// app/admin/[[...path]]/admin-studio-client.tsx
"use client";

import { Studio, type MdcmsConfig } from "@mdcms/studio";

export function AdminStudioClient({ config }: { config: MdcmsConfig }) {
  return <Studio config={config} basePath="/admin" />;
}

basePath tells Studio where it's mounted so deep links resolve correctly.

How It Works

Studio runs as a remote runtime loaded from your MDCMS server:

  1. The <Studio /> shell fetches the runtime manifest from GET /api/v1/studio/bootstrap
  2. It validates compatibility and integrity, then loads the remote Studio module
  3. After mounting, the remote runtime owns all UI routing and rendering

The shell handles startup errors (network failures, incompatible versions, disabled runtime). After a successful mount, the remote runtime takes over.

Studio Routes

Once mounted, Studio provides these routes under your basePath:

| Route | Description | | ---------------------------------- | ------------------------------------------------------------- | | /admin | Dashboard | | /admin/content | Content list with type filtering | | /admin/content/:type/:documentId | Document editor with draft save, publish, and version history | | /admin/environments | Environment management | | /admin/schema | Read-only schema browser | | /admin/users | User management (admin/owner only) | | /admin/settings | Settings (admin/owner only) | | /admin/trash | Deleted content |

MDX Components

Register local MDX components in your mdcms.config.ts to make them available in the Studio editor:

defineConfig({
  // ...
  components: [
    {
      name: "Callout",
      importPath: "./components/Callout",
      description: "A styled callout box",
      load: () => import("./components/Callout"),
    },
  ],
});

Registered components can be inserted from the toolbar or via / slash commands in the editor. Studio auto-generates a props editing panel from extracted component props, or you can provide a custom props editor.

Exports

| Import Path | Description | | -------------------------------------- | ----------------------------------------------------------------- | | @mdcms/studio | Studio component, PropsEditorComponent type | | @mdcms/studio/runtime | prepareStudioConfig, createStudioEmbedConfig, runtime helpers | | @mdcms/studio/markdown-pipeline | parseMarkdownToDocument, serializeDocumentToMarkdown | | @mdcms/studio/document-shell | loadStudioDocumentShell for host-app shell rendering | | @mdcms/studio/action-catalog-adapter | Typed action catalog client |

Documentation

Full Studio reference at docs.mdcms.ai.