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/plugin-ui

v4.0.5

Published

ObjectStack CLI plugin for Object UI — oclif-based UI toolchain commands (os ui dev, os ui build, etc.)

Readme

@objectstack/plugin-ui

oclif plugin for Object UI — Build applications from JSON schemas.

Previously published as @object-ui/cli. See MIGRATION.md for upgrade details.

Installation

With ObjectStack CLI (recommended)

npm install -g @objectstack/cli @objectstack/plugin-ui

# Commands are auto-discovered under `os ui`
os ui dev
os ui build --help

Standalone (backward compatible)

npm install -g @objectstack/plugin-ui

# Legacy bin still works
objectui dev app.json

Commands

objectui init [name]

Create a new Object UI application with a sample schema.

objectui init my-app
objectui init my-app --template form
objectui init . --template dashboard

Options:

  • -t, --template <template> - Template to use: simple, form, or dashboard (default: dashboard)

Templates:

  • simple: A minimal getting started template
  • form: A contact form with validation
  • dashboard: A full dashboard with metrics and charts

objectui dev [schema]

Start a development server with hot reload. Opens browser automatically.

objectui dev app.json
objectui dev my-schema.json --port 8080
objectui dev --no-open

Arguments:

  • [schema] - Path to JSON/YAML schema file (default: app.json)

Options:

  • -p, --port <port> - Port to run the server on (default: 3000)
  • -h, --host <host> - Host to bind the server to (default: localhost)
  • --no-open - Do not open browser automatically

objectui build [schema]

Build your application for production deployment.

objectui build app.json
objectui build --out-dir build
objectui build --clean

Arguments:

  • [schema] - Path to JSON/YAML schema file (default: app.json)

Options:

  • -o, --out-dir <dir> - Output directory (default: dist)
  • --clean - Clean output directory before build

objectui start

Serve the production build locally.

objectui start
objectui start --port 8080
objectui start --dir build

Options:

  • -p, --port <port> - Port to run the server on (default: 3000)
  • -h, --host <host> - Host to bind the server to (default: 0.0.0.0)
  • -d, --dir <dir> - Directory to serve (default: dist)

objectui serve [schema]

Start a development server (legacy command, use dev instead).

objectui serve app.json
objectui serve my-schema.json --port 8080

Arguments:

  • [schema] - Path to JSON schema file (default: app.json)

Options:

  • -p, --port <port> - Port to run the server on (default: 3000)
  • -h, --host <host> - Host to bind the server to (default: localhost)

objectui lint

Lint the generated application code using ESLint.

objectui lint
objectui lint --fix

Options:

  • --fix - Automatically fix linting issues

Note: Run objectui dev first to generate the application before linting.

objectui test

Run tests for the application using Vitest.

objectui test
objectui test --watch
objectui test --coverage
objectui test --ui

Options:

  • -w, --watch - Run tests in watch mode
  • -c, --coverage - Generate test coverage report
  • --ui - Run tests with Vitest UI

Note: Run objectui dev first to generate the application before testing.

Quick Start

  1. Create a new application:

    objectui init my-dashboard --template dashboard
    cd my-dashboard
  2. Start the development server:

    objectui dev app.json
  3. Lint your code (optional):

    objectui lint
  4. Run tests (optional):

    objectui test
  5. Build for production:

    objectui build app.json
  6. Serve the production build:

    objectui start

Your app will be running at http://localhost:3000!

Example Schema

{
  "type": "div",
  "className": "min-h-screen flex items-center justify-center",
  "body": {
    "type": "card",
    "title": "Hello World",
    "body": {
      "type": "text",
      "content": "Welcome to Object UI!"
    }
  }
}

Learn More

Compatibility

  • Node.js: ≥ 18
  • TypeScript: ≥ 5.0 (strict mode)
  • @objectstack/spec: ^3.3.0
  • @objectstack/client: ^3.3.0
  • Tailwind CSS: ≥ 3.4 (for packages with UI)

Links

License

MIT — see LICENSE.