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

@almadar/sdk

v0.3.7

Published

Almadar SDK — embed agent-generated orbital schemas in your React app. AlmadarApp component + AlmadarClient HTTP client.

Readme

@almadar/sdk

Embed Almadar agent-generated orbital schemas in your React app, and call the agent from your server.

Status: alpha (0.1.0-alpha.0). API may shift before 0.1.0. See docs/Almadar_Studio_SDK.md for the full design doc and gap list.

Install

npm install @almadar/sdk @almadar/runtime @almadar/ui @almadar/core

Peers: React 18+, react-dom 18+.

Render an orbital in your React app

'use client';
import { AlmadarApp } from '@almadar/sdk/react';
import schema from './dashboard.orb.json';

export default function Embedded({ data }: { data: Record<string, unknown[]> }) {
  return <AlmadarApp schema={schema} mode="static" data={data} height="100%" />;
}

Three render modes:

| mode | Effects | Use case | |---|---|---| | static (default) | None — pure UI with the data you pass | Static dashboards, snapshots | | mock | In-browser fake server, faker-seeded if no data | Demos, design previews | | server | Real backend at serverUrl | Production with persist/fetch/call-service |

Host plugins

@almadar/sdk/react also re-exports the host-plugin surface from @almadar/ui/runtime: a plugin is just an ordinary .orb behavior that OrbitalPluginHost runs headless against your app's own event bus and slots — nothing about it is a new kind of artifact or a sandboxed capability tier.

'use client';
import { EventBusProvider } from '@almadar/ui/providers';
import { UISlotProvider } from '@almadar/ui/context';
import { UISlotComponent } from '@almadar/ui/components';
import { OrbitalPluginHost } from '@almadar/sdk/react';
import myPlugin from './my-plugin.orb.json';

export default function Host() {
  return (
    <EventBusProvider>
      <UISlotProvider>
        <OrbitalPluginHost
          plugins={[
            {
              id: 'my-plugin',
              schema: myPlugin,
              inbound: [{ busEvent: 'MY_EVENT', orbital: 'MyPluginOrbital', trait: 'MyTrait', trigger: 'MY_EVENT' }],
            },
          ]}
        />
        <UISlotComponent slot="sidebar" />
      </UISlotProvider>
    </EventBusProvider>
  );
}

Nothing is denied by default — the plugin gets the same behavior power any preview has (in-memory persist, mock services). deny (an opt-in list of verbs like 'persist' or 'call-service') and mode ('mock' vs 'server') are host policy you set, not a built-in restriction. See docs/Almadar_Studio_SDK.md for the full design (Almadar Studio V4 §14).

Call the agent from your server

import { AlmadarClient } from '@almadar/sdk/client';

const almadar = new AlmadarClient({ apiKey: process.env.ALMADAR_API_KEY! });

const { schema } = await almadar.generate({
  prompt: 'A finance dashboard with revenue, customers, and churn KPIs',
  endUserId: 'customer-X-user-42',
  onEvent: (event) => console.log(event.type, event),
});

AlmadarClient.generate() streams SSE events (start, orbital_added, complete, …) via onEvent. The returned schema is the final OrbitalSchema you pass to <AlmadarApp />.

There is no job-polling mode — generate({ async: true }) throws AsyncUnsupportedError before any network call. For long-running generations, consume the stream via onEvent instead.

Issuing API keys

Keys are issued from Studio (/settings/sdk) on the Teams plan. See docs/Almadar_Studio_Subscriptions.md for plan details. Server-side use only — never ship sk_* to a browser.

License

BSL-1.1