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

@uigraph/sdk

v1.1.40

Published

[![npm version](https://img.shields.io/npm/v/@uigraph/sdk)](https://www.npmjs.com/package/@uigraph/sdk) [![license](https://img.shields.io/badge/license-BUSL--1.1-blue)](LICENSE)

Readme

@uigraph/sdk

npm version license

Official TypeScript SDK for UiGraph. Parse SQL and NoSQL schemas, convert Mermaid diagrams, and produce React Flow node and edge data for architecture and data-model diagrams.

Features

  • Mermaid → React Flow — flowcharts, sequence diagrams, and more
  • Context-aware conversion — apply node, edge, and group overrides after parsing
  • SQL parsing — MySQL, PostgreSQL, SQLite with dialect auto-detection
  • Schema → diagram — convert SQL AST into diagram-ready structures
  • NoSQL schemas — MongoDB, DynamoDB, and JSON schema support
  • Icon packs — AWS, Azure, and animated node icon lists
  • Multiple runtimes — full, browser, and headless entry points

Install

npm install @uigraph/sdk

Peer dependencies (install if you do not already have them):

npm install @xyflow/react zod quill

Quick start

Convert Mermaid source into React Flow data:

import { convertMermaidToReactFlow } from '@uigraph/sdk'

const mermaid = `flowchart TD
  A[Start] --> B{Decision}
  B -->|Yes| C[Done]
  B -->|No| D[Retry]
`

const { nodes, edges } = await convertMermaidToReactFlow(mermaid)

Parse SQL and work with the schema AST:

import { SqlToAstParser } from '@uigraph/sdk'

const dialect = SqlToAstParser.detectDialect(sql)
const ast = new SqlToAstParser(dialect).parse(sql)

Package entry points

| Import | Use when | |--------|----------| | @uigraph/sdk | Full SDK (Node.js or bundlers) | | @uigraph/sdk/browser | Browser environments | | @uigraph/sdk/headless | Server-side conversion without DOM APIs | | @uigraph/sdk/aws-icons | AWS icon metadata | | @uigraph/sdk/azure-icons | Azure icon metadata | | @uigraph/sdk/animated-nodes | Animated node icon metadata |

import { convertMermaidToReactFlow } from '@uigraph/sdk/browser'
import { awsIcons } from '@uigraph/sdk/aws-icons'

Documentation

Development

Requires Node.js 20+ and pnpm.

pnpm install
pnpm dev      # watch build, typecheck, and tests
pnpm test
pnpm lint
pnpm run build

Publishing a release

  1. Bump the version in package.json and merge to main.
  2. Create a GitHub Release with tag vX.Y.Z matching that version.
  3. CI publishes to npm.

The repo needs an NPM_TOKEN secret (npm Automation token) configured before the first publish.

License

This project is licensed under the Business Source License 1.1 (BUSL-1.1).

  • Source available today — you can read, modify, and redistribute the code under the terms of the license.
  • Non-production use — free for development, testing, evaluation, and internal proof-of-concept.
  • Production use — requires a commercial license from UiGraph. Production use means any use that supports the ongoing operation of your business or organization.
  • Future open source — each version automatically converts to Apache License 2.0 four years after it is first published under BUSL.

BUSL is not an OSI-approved open source license during the initial term. For commercial licensing questions, open an issue or contact the maintainers.

Related projects