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

emap2lig-webui

v0.7.1

Published

React + Mol* web GUI frontend for Emap2lig. Ships the pre-built static bundle in dist/.

Readme

emap2lig-webui

React frontend for the Emap2lig web GUI (FastAPI + Mol*). Published to npm as emap2lig-webui; the package contains only the pre-built static bundle in dist/.

Emap2lig fetches this package from npm at build time (scripts/sync_frontend.py in kiharalab/Emap2lig); nothing is written to that repository from here.

Prerequisites

  • Bun 1.4+ (package manager and script runner)
  • Node.js 22.12+ (Vite, tsc and ESLint run on Node through their shebangs)
  • Running Emap2lig backend for API calls during development

Development

bun install

# Terminal 1 — backend (from Emap2Lig repo root)
uv run --group web fastapi dev emap2lig.web.app:app

# Terminal 2 — Vite dev server (proxies /api → localhost:40427)
bun run dev

Build

bun run build
# output: dist/

To install this checkout into an Emap2lig frontend/dist/ without publishing, run the sync script from the Emap2lig repo:

# copy an existing dist/
uv run python scripts/sync_frontend.py --local

# rebuild with bun, then copy
uv run python scripts/sync_frontend.py --local --build
uv run python scripts/sync_frontend.py --local /path/to/Emap2lig-web --build

--local looks for ../Emap2lig-web or $EMAP2LIG_WEBUI. It does not change Emap2lig's .webui-version pin.

Using the npm package

# In an Emap2lig checkout: sync the version pinned in .webui-version
uv run python scripts/sync_frontend.py
# or sync and pin a specific version
uv run python scripts/sync_frontend.py 0.7.1

The tarball contains dist/ only (plus package.json and this README).

Releasing

  1. Bump version in package.json (dist/index.html carries it as a meta tag) and commit.
  2. Publish a GitHub release tagged v<version>.
  3. .github/workflows/publish-npm.yml checks the tag against package.json, lints, builds, and runs npm publish.
  4. In Emap2lig, run scripts/sync_frontend.py <version> and commit .webui-version.

Manual fallback from a workstation: npm login && bun publish.

One-time npm setup (trusted publishing)

The workflow authenticates with OIDC instead of a token. On npmjs.com open emap2lig-webui → Settings → Trusted Publisher, choose GitHub Actions, and enter user shuuul, repository Emap2lig-web, workflow filename publish-npm.yml, and leave environment empty. Under Allowed actions tick npm publish (the workflow runs npm publish; without it only npm stage publish is allowed and the publish is rejected). A new configuration expires unless its first publish succeeds within 2 days.

Versioning

The npm version is independent of the Emap2lig PyPI version; Emap2lig selects a bundle through its .webui-version pin.