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

@symbo.ls/mermaid

v3.14.709

Published

Self-sustaining server runner for Symbols projects from JSON. Renders DOMQL projects to HTML with optional brender SSR.

Readme

@symbo.ls/mermaid

Self-sustaining server runner for Symbols projects. Renders DOMQL projects from JSON to HTML, with optional brender SSR.

Works in three modes:

  1. Standalonemermaid CLI / createMermaidApp({ jsonPath }) Express app
  2. Pure renderrenderProjectHtml(data, opts) returns an HTML string in any runtime
  3. Pluggable data sourcecreateMermaidApp({ getProjectData }) lets you wire KV / API / DB

For the production hosting service (Cloudflare Workers + KV/API + custom domains), see @symbo.ls/mermaid-server which builds on top of this package.

Quick start

# Run a project from a local JSON file
npx mermaid --json ./app.json
# open http://localhost:3333

# Or as a library
node -e "import('@symbo.ls/mermaid').then(m => m.createMermaidApp({ jsonPath: './app.json' }).listen(3333))"

API

createMermaidApp(options)

Returns an Express application.

| Option | Type | Description | | ---------------- | -------- | --------------------------------------------------------------------- | | jsonPath | string | Path to local JSON file (or directory containing app.json) | | appkeyOverride | string | Force a specific appkey for all requests | | channel | string | production (default) | staging | development | | getProjectData | function | async (req, ctx) => { data, appkey?, channel?, isProd? } | | cors | boolean | Enable CORS middleware (default true) | | editor | object | { bundle: string } to inject @symbo.ls/preview-editor in non-prod |

renderProjectHtml(data, options)

Pure runtime-agnostic renderer. Returns { html, status, contentType }.

| Option | Type | Description | | ----------------------- | ------- | ------------------------------------------------------ | | appkey | string | identifier for metadata + comments | | pathname | string | request pathname | | channel | string | production | staging | development | | isProd | boolean | controls SEO indexing (custom domains only) | | req | object | Express-like request (used by bundle context) | | userId | string | injects window.__SYMBOLS_AUTH__ | | smblsIife | string | preloaded smbls IIFE source (CF Workers / build-time) | | editorBundle | string | preview-editor bundle to inject (non-prod only) | | analyzedScript | string | analytics tracking <script> to inject | | indexHtml | string | override the index.html template | | ssrCache | object | pre-computed SSR cache (skips runtime brender) | | ProjectDataService | object | passed to getBundleScript for shared-library merging |

loadJsonData(jsonPath)

Synchronously load and parse a project JSON file.

Other exports

renderNotPublishedHtml, transpileFunctionStrings, getBundleScript, getSmblsIife, normalizeRoute, resolvePageRoute, extractRouteParams, STATIC_EXT, deepDestringifyFunctions, stripFunctionStrings, generateSitemap (if brender is available), replaceVariablesInFileSync, transpileFuncql.

Environment variables

| Variable | Default | Description | | ----------- | ---------------------------------- | ---------------------------- | | PORT | 3333 | HTTP port (CLI only) | | JSON_PATH | ./app.json | JSON data path (CLI only) | | APPKEY | — | Override appkey (CLI only) | | NODE_ENV | development | Channel selection | | LOG_LEVEL | debug (dev) / info (prod) | Log verbosity | | BRENDER | enabled | Set to false to skip SSR |