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

@asteby/metacore-sdk

v2.4.0

Published

Metacore frontend SDK — federated addon loader, slot registry, typed manifest & API client.

Downloads

366

Readme

@asteby/metacore-sdk

Frontend SDK for the Metacore framework. It is the typed contract every host application and every addon shares — manifest types, federated addon loader, slot registry, action registry, and a typed API client.

The TypeScript types are mirrored from the Go source of truth (pkg/manifest/) via tygo; they are guaranteed to match APIVersion = 2.0.0.

Install

pnpm add @asteby/metacore-sdk

Peer dependencies: react >= 18, @tanstack/react-query >= 5 (only required for the React entry).

Entry points

| Subpath | Exports | |---|---| | @asteby/metacore-sdk | Manifest types, API client, federation loader, slot/action registries. | | @asteby/metacore-sdk/react | React bindings — provider, hooks, capability gates. |

Usage

Manifest types

import type { Manifest, Capability, ToolDef } from '@asteby/metacore-sdk'
import { METACORE_API_VERSION } from '@asteby/metacore-sdk'

declare const manifest: Manifest // strict structural type, mirrored from Go.
console.log(METACORE_API_VERSION) // "2.0.0"

Federated addon loader

import { loadAddon } from '@asteby/metacore-sdk'

const addon = await loadAddon({
  scope: 'billing',
  url: '/addons/billing/remoteEntry.js',
})

addon.register({ /* AddonAPI host bindings */ })

Slot and action registries

import { slotRegistry, actionRegistry } from '@asteby/metacore-sdk'

slotRegistry.contribute('dashboard.widgets', () => <RevenueWidget />)
actionRegistry.register('invoice.send', async (ctx, payload) => { /* … */ })

Typed API client

import { createMetacoreClient } from '@asteby/metacore-sdk'

const client = createMetacoreClient({
  baseURL: '/api/metacore',
  getToken: () => session.accessToken,
})

const installations = await client.installations.list()

Key types

| Type | Source | What it shapes | |---|---|---| | Manifest | src/generated/manifest.ts | The full manifest document. Mirrored from Go via tygo. | | ModelDefinition | src/generated/manifest.ts | One entry of model_definitions[] — table name, columns, soft-delete and org-scoping flags. | | ColumnDef | src/generated/manifest.ts | A column inside a model — name, type, size, default, indices, ref. | | Capability | src/generated/manifest.ts | { kind, target, reason }. | | ActionFieldDef | src/generated/manifest.ts | A field declared inside a manifest action. Reused by <DynamicForm> and the action dispatcher. | | ToolDef | src/generated/manifest.ts | LLM-facing tool with input_schema, extraction_hint, normalize, validation. | | AddonAPI | src/api.ts | Host bindings injected into an addon's register() call. | | ActionModalProps | src/action-registry.ts | Props passed to action modals registered via actionRegistry.register(). |

The runtime-react package consumes AddonAPI, the action registry and the slot registry from this package. Dynamic UI components live in @asteby/metacore-runtime-react and are documented in docs/dynamic-ui.md.

Regenerating types

When the Go manifest changes:

pnpm --filter . codegen     # at the repo root — runs tygo
pnpm --filter @asteby/metacore-sdk build

src/generated/manifest.ts is gitignored when stale; commit the regenerated file alongside the Go change.

License

Apache-2.0