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-setup

v4.0.4

Published

Setup Plugin for ObjectStack — Platform Setup App with area-based navigation composition

Readme

@objectstack/plugin-setup

Setup Plugin for ObjectStack — owns and composes the platform Setup App with area-based navigation.

Overview

The Setup App is the central administration interface of the ObjectStack platform (equivalent to Salesforce Setup or ServiceNow System Administration). Rather than scattering setup definitions across spec and objectql, this plugin provides clear ownership:

  • Spec → protocol schemas only
  • ObjectQL → data engine only
  • plugin-setup → owns the Setup App identity, areas, and navigation composition

Features

  • Four Built-in Areas: Administration, Platform, System, and AI — shipped as empty skeletons.
  • Contribution Model: Any plugin can contribute navigation items to Setup areas via the setupNav service.
  • Area Filtering: Empty areas are automatically filtered out at finalization.
  • Custom Areas: Plugins can contribute to custom area IDs beyond the four built-in ones.
  • I18n Labels: All labels use the I18nLabel union type for internationalization.

Usage

Register the Plugin

import { ObjectKernel } from '@objectstack/core';
import { SetupPlugin } from '@objectstack/plugin-setup';

const kernel = new ObjectKernel({
  plugins: [
    new SetupPlugin(),
    // ... other plugins
  ],
});

Contribute Navigation from Another Plugin

import type { Plugin, PluginContext } from '@objectstack/core';
import type { SetupNavService } from '@objectstack/plugin-setup';
import { SETUP_AREA_IDS } from '@objectstack/plugin-setup';

export class MyPlugin implements Plugin {
  name = 'com.example.my-plugin';

  async init(ctx: PluginContext) {
    const setupNav = ctx.getService<SetupNavService>('setupNav');

    setupNav.contribute({
      areaId: SETUP_AREA_IDS.administration,
      items: [
        { id: 'nav_users', type: 'object', label: 'Users', objectName: 'sys_user' },
        { id: 'nav_roles', type: 'object', label: 'Roles', objectName: 'sys_role' },
      ],
    });
  }
}

Exported Components

import {
  SetupPlugin,
  type SetupNavService,
  SETUP_APP_DEFAULTS,
  type SetupNavContribution,
  SETUP_AREAS,
  SETUP_AREA_IDS,
  type SetupAreaId,
} from '@objectstack/plugin-setup';

Built-in Setup Areas

| Area | ID | Icon | Order | Description | |:-----|:---|:-----|:-----:|:------------| | Administration | area_administration | shield | 10 | Users, roles, permissions, security | | Platform | area_platform | layers | 20 | Objects, fields, layouts, automation | | System | area_system | settings | 30 | Datasources, integrations, jobs, logs | | AI | area_ai | brain | 40 | Agents, models, RAG pipelines |

Architecture

┌──────────────────────────────────────────┐
│              SetupPlugin                 │
│                                          │
│  init():                                 │
│    → registers 'setupNav' service        │
│                                          │
│  start():                                │
│    → collects contributions              │
│    → merges into area skeletons          │
│    → filters empty areas                 │
│    → registers finalized Setup App       │
│                                          │
└──────────────────────────────────────────┘
         ▲                    ▲
         │  contribute()      │  contribute()
    ┌────┴────┐          ┌────┴────┐
    │ plugin  │          │ plugin  │
    │  auth   │          │security │
    └─────────┘          └─────────┘

License

Apache-2.0 © ObjectStack