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

@objectstack/studio

v3.0.10

Published

ObjectStack Studio - A metadata-driven admin interface for managing data and configuration

Readme

ObjectStack Studio

The official ObjectStack Studio - a metadata-driven admin interface for managing data and configuration.

🎯 Overview

ObjectStack Studio provides a modern, responsive admin interface that:

  • Auto-generates UI from your metadata definitions
  • CRUD Operations with built-in validation
  • Dynamic Navigation based on registered objects
  • Real-time Updates with optimistic UI patterns
  • Dark Mode Support via shadcn/ui theming

🏗️ Architecture

The console supports two runtime modes:

MSW Mode (Default)

Runs the ObjectStack Runtime directly in the browser using MSW (Mock Service Worker), enabling full offline development.

graph TD
    Console["Console App"] -->|REST API| Network["Browser Network"]
    Network -->|Intercepted by| SW["Service Worker (MSW)"]
    SW -->|Delegates to| Kernel["ObjectStack Kernel"]
    Kernel -->|Uses| Driver["In-Memory Driver"]
    Kernel -.->|Reads| Config["objectstack.config.ts"]

Server Mode

Connects to a real ObjectStack server for production use or integration testing.

graph TD
    Console["Console App"] -->|REST API| Server["ObjectStack Server"]
    Server -->|Processes| Kernel["ObjectStack Kernel"]
    Kernel -->|Uses| Driver["Database Driver"]

🚀 Quick Start

# Install dependencies
pnpm install

# Start development server (MSW mode)
pnpm dev

# Start in server mode (connects to real backend)
VITE_RUNTIME_MODE=server VITE_SERVER_URL=http://localhost:5000/api/v1 pnpm dev

The console will be available at http://localhost:3000.

⚙️ Environment Variables

| Variable | Default | Description | |----------|---------|-------------| | VITE_RUNTIME_MODE | msw | Runtime mode: msw or server | | VITE_SERVER_URL | http://localhost:5000/api/v1 | Server URL (server mode only) |

Copy .env.example to .env.local to customize:

📁 Project Structure

apps/studio/
├── src/
│   ├── App.tsx              # Main application component
│   ├── main.tsx             # Entry point with MSW bootstrap
│   ├── index.css            # Tailwind CSS configuration
│   ├── components/
│   │   ├── app-sidebar.tsx  # Dynamic navigation sidebar
│   │   ├── site-header.tsx  # Page header with breadcrumbs
│   │   ├── ObjectDataTable.tsx  # Auto-generated data tables
│   │   ├── ObjectDataForm.tsx   # Auto-generated forms
│   │   └── ui/              # shadcn/ui components
│   ├── hooks/               # Custom React hooks
│   ├── lib/                 # Utilities
│   └── mocks/               # MSW configuration
├── objectstack.config.ts    # Metadata definitions
└── package.json

🎨 UI Components

Built with shadcn/ui and Tailwind CSS v4:

  • Sidebar - Collapsible navigation with object list
  • DataTable - Sortable, filterable data grid
  • DataForm - Dynamic form generation from field metadata
  • Toast - Notification system for user feedback

🔧 Configuration

The console reads metadata from objectstack.config.ts:

import { defineStack } from '@objectstack/spec';
import { ObjectSchema, Field } from '@objectstack/spec/data';

export const Account = ObjectSchema.create({
  name: 'account',
  label: 'Account',
  fields: {
    name: Field.text({ label: 'Name', required: true }),
    industry: Field.select({ 
      label: 'Industry',
      options: ['Technology', 'Finance', 'Healthcare']
    }),
  }
});

export default defineStack({
  objects: [Account]
});

📦 Dependencies

  • React 18 - UI framework
  • Vite - Build tool
  • Tailwind CSS v4 - Styling
  • shadcn/ui - Component library
  • MSW - API mocking for development
  • @objectstack/client - API client
  • @objectstack/runtime - In-browser kernel

🛠️ Development

# Type checking
pnpm typecheck

# Run tests
pnpm test

# Build for production
pnpm build

# Preview production build
pnpm preview

📄 License

MIT - See LICENSE for details.