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

@northgraindata/dsui-adapter-sdk

v0.4.0

Published

![DSUI Adapter SDK — Connect your stack to DSUI.](https://raw.githubusercontent.com/northgraindata/dsui/main/packages/adapter-sdk/assets/banner.png)

Readme

DSUI Adapter SDK — Connect your stack to DSUI.

Documentation · Example adapter · Source · Plugin SDK

DSUI Adapter SDK

Build typed integrations that bring your data and infrastructure tools into DSUI. Define connections, resources, actions and pages; DSUI handles execution and rendering.

Package name: @northgraindata/dsui-adapter-sdk.

Get started

Install the public SDK package:

bun add @northgraindata/dsui-adapter-sdk

Import @northgraindata/dsui-adapter-sdk/styles.css once in the consuming app to load the shared UI and adapter component styles. Those UI primitives ship inside this package; no separate DSUI UI package is needed. DSUI also ships a tested SDK copy for runtime extension builds. See the release policy.

Start with the example adapter. It includes a connection schema, resource, action, page, custom browser component and tests. The DuckDB adapter is a larger reference implementation.

Define a resource

Resources describe reads from an external system. This small example exposes the configured endpoint; replace the query with your integration's read operation.

import { defineResource } from "@northgraindata/dsui-adapter-sdk";

interface Context {
  config: { baseUrl: string };
}

export const endpoint = defineResource({
  id: "endpoint",
  query: async (_input: undefined, context: Context) => ({
    url: context.config.baseUrl,
  }),
});

Register the resource in defineAdapter. See the example composition root for connection methods, context creation, health checks, actions and pages.

What you can build

| Capability | Purpose | | --- | --- | | Connections | Validate service configuration with Zod schemas. | | Resources | Expose typed reads from the connected system. | | Actions | Declare validated mutations and operations. | | Pages | Compose a service interface from shared UI primitives. | | Components | Add reusable compositions or custom browser components. | | Health checks | Report the availability of your integration. |

Runtime and compatibility

DSUI builds configured adapter sources and executes them in an adapter-host subprocess. Review third-party adapter code before installing it; process isolation does not make the source build a sandbox.

The host checks apiVersion against ADAPTER_API_VERSION, independently from the npm package version. Legacy definitions use the sdkVersion compatibility marker. Check the API contract and required host capabilities for the DSUI runtime you target.

Plugin authors can use the Plugin SDK, which also exposes shared page components from this SDK.

Develop in this repository

From the repository root, after installing dependencies:

bun run --filter @northgraindata/dsui-adapter-sdk test
bun run --filter @northgraindata/dsui-adapter-sdk typecheck

Run affected adapter tests and typechecks when changing SDK behavior. See CONTRIBUTING.md for repository checks and contribution guidance.

License

Apache License 2.0, developed by Northgrain Data.