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

@benrobo/modelkit-studio

v0.0.7

Published

React UI components for ModelKit - manage AI model configurations with live updates and theme customization

Readme

@benrobo/modelkit-studio

React UI for managing ModelKit overrides.

Preview

ModelKit Studio

Feature list and override editor with multiple themes (dark, forest, purple, and more).

Installation

npm install @benrobo/modelkit-studio

Quick Start

Set up the backend API first:

import { Hono } from "hono";
import { createModelKit, createRedisAdapter } from "@benrobo/modelkit";
import { createModelKitHonoRouter } from "@benrobo/modelkit/hono";

const adapter = createRedisAdapter({
  url: process.env.REDIS_URL || "redis://localhost:6379",
});

const modelKit = createModelKit(adapter);

const app = new Hono();
app.route("/api/modelkit", createModelKitHonoRouter(modelKit));

Then use the Studio UI (you must import the styles for the component to display correctly):

import { ModelKitStudio } from "@benrobo/modelkit-studio";
import "@benrobo/modelkit-studio/styles";

<ModelKitStudio apiUrl="http://localhost:3000/api/modelkit" theme="dark" />

Props

interface ModelKitStudioProps {
  apiUrl: string;
  theme?: "light" | "dark" | StudioThemeOverride;
  themeBase?: "light" | "dark";
  className?: string;
  classNames?: ClassNameOverrides;
  queryClient?: QueryClient;
}

Themes

Built-in Themes

ModelKit Studio includes 10 preset themes. You can use them by importing and passing the theme object:

import {
  ModelKitStudio,
  darkTheme,
  lightTheme,
  chocoTheme,
  oceanTheme,
  sunsetTheme,
  forestTheme,
  purpleTheme,
  crimsonTheme,
  cyanTheme,
  amberTheme,
} from "@benrobo/modelkit-studio";

// Use a preset theme
<ModelKitStudio apiUrl="http://localhost:3000/api/modelkit" theme={chocoTheme} />
<ModelKitStudio apiUrl="http://localhost:3000/api/modelkit" theme={oceanTheme} />
<ModelKitStudio apiUrl="http://localhost:3000/api/modelkit" theme={darkTheme} />

Available preset themes:

  • darkTheme - Tactical dark theme with cyan accents (default)
  • lightTheme - Clean light theme
  • chocoTheme - Warm chocolate/coffee theme with rounded corners
  • oceanTheme - Deep blue ocean theme
  • sunsetTheme - Orange and brown sunset theme
  • forestTheme - Green forest theme
  • purpleTheme - Purple/violet theme
  • crimsonTheme - Red/pink crimson theme
  • cyanTheme - Bright cyan/teal theme
  • amberTheme - Golden amber/yellow theme

Custom Theme with Type-Safe Autocomplete

Important: To get TypeScript autocomplete for custom themes, define the theme object separately with an explicit type annotation:

import {
  ModelKitStudio,
  type StudioThemeOverride,
} from "@benrobo/modelkit-studio";

// Define custom theme
const customTheme: StudioThemeOverride = {
  colors: {
    primary: "#ff00ff",
    background: "#000000",
    text: "#ffffff",
  },
  fonts: {
    body: "Inter, sans-serif",
    mono: "Fira Code, monospace",
  },
  spacing: {
    md: "20px",
  },
  interactive: {
    primaryHover: "rgba(255, 0, 255, 0.8)",
  },
};

<ModelKitStudio
  apiUrl="http://localhost:3000/api/modelkit"
  theme={customTheme}
/>;

Available Theme Properties

interface StudioThemeOverride {
  colors?: {
    primary?: string;
    secondary?: string;
    background?: string;
    surface?: string;
    text?: string;
    textSecondary?: string;
    border?: string;
    success?: string;
    warning?: string;
    error?: string;
  };
  fonts?: {
    body?: string;
    mono?: string;
  };
  borderRadius?: {
    sm?: string;
    md?: string;
    lg?: string;
  };
  spacing?: {
    xs?: string;
    sm?: string;
    md?: string;
    lg?: string;
    xl?: string;
  };
  interactive?: {
    primaryHover?: string;
    primaryMuted?: string;
    surfaceHover?: string;
    borderHover?: string;
    textHover?: string;
  };
}

All properties are optional - only override what you need. Unspecified values will use the default theme.

Styling

Import the package CSS once (e.g. in your root layout or main entry):

import "@benrobo/modelkit-studio/styles";

Studio uses Tailwind with the mk: prefix, so its classes won’t conflict with your app’s Tailwind.

Override classes:

<ModelKitStudio
  apiUrl="http://localhost:3000/api/modelkit"
  classNames={{
    container: "max-w-7xl",
    buttonPrimary: "bg-green-500",
  }}
/>

License

MIT