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

laranex-schema-viewer-ui

v0.4.0

Published

The unified laranex-schema contract and the shared ERD viewer for Laravel, Python and Node.js: a React component, a standalone static bundle, JSON Schema, validator, graph builder and conformance fixtures.

Readme

Laranex Schema Viewer UI

One JSON contract, one shared viewer, many frameworks: the laranex-schema contract and the ERD viewer shared by the Laravel, Python and Node.js schema viewers.

The contract is specified in docs/contract.md; hosts integrate the viewer as described in docs/integration.md; planned work is in ROADMAP.md; see AGENTS.md for the architecture and development workflow.

import { SchemaViewer } from 'laranex-schema-viewer-ui';
import 'laranex-schema-viewer-ui/styles.css';

<SchemaViewer document={laranexSchemaDocument} />;
import { validateDocument, buildGraph, canonicalJson } from 'laranex-schema-viewer-ui/contract';
import { dbml, mermaid, markdown, json } from 'laranex-schema-viewer-ui/export';

The viewer's Download dialog exports a connection as Mermaid, DBML, Markdown or a scoped JSON document, the diagram as SVG or PNG, and the whole viewer as one offline HTML file, all in the browser; see docs/exports.md.

The viewer displays the comparisons, migration tracks and inferred associations a document stores (Compare and Migrations tabs, difference marks on the diagram, inferred marks on foreign-key edges) and never computes them; see docs/views.md.

The viewer is a development-only tool: never expose it or its snapshots in production, and require authentication even in local development. docs/embedding.md shows how to add it to an existing React, Next.js, Vue, Angular, FastAPI or Node.js application as a protected development page; docs/security.md is the policy.

Hosts without Node.js serve node_modules/laranex-schema-viewer-ui/dist/viewer/ as static files (including its favicon.svg and favicon.ico) with a snapshot.json beside index.html, or use <laranex-schema-viewer src="snapshot.json">. Using the viewer (layout, connections, line ends, column details, shortcuts and deep links) is described in docs/viewer.md.

Its icons, brand mark, favicon and line ends come from Laranex Laravel Schema Viewer, drawn in this package's own theme colors (see NOTICE); docs/parity.md compares the two viewers feature by feature.

License

MIT. See LICENSE and NOTICE.