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

create-cytoscape-app

v0.3.1

Published

Scaffold a Cytoscape Web app: npm create cytoscape-app my-app

Readme

create-cytoscape-app

Scaffold an app for Cytoscape Web.

npm create cytoscape-app my-app

Developer Preview, published at 0.x. Read Developer Preview before you build anything you intend to ship — the limits are about what a Cytoscape Web app is trusted with, not about this tool's polish.

Non-interactive

Every prompt has a flag, and --yes never asks. This is a requirement rather than a convenience: a large share of the people this exists for drive it through an LLM, and a prompt with no flag equivalent makes that path unusable.

npm create cytoscape-app my-app -- \
  --yes --id degreeColorizer --display-name "Degree Colorizer" \
  --template panel --port 6001

| Flag | Default | | --- | --- | | (positional) | the target directory — must be missing, or empty and not a symlink | | --id | from the directory name, camelCased. A JavaScript identifier: it is the Module Federation container name, and the host rejects anything else | | --package-name | the directory name | | --display-name | from --id | | --description | a placeholder | | --version | 0.1.0 | | --port | the first usable port from 6000 — free, unclaimed by the examples or the host, and not one browsers refuse (6000 itself is X11) | | --template | panel | | --pm | npm, or pnpm | | --no-install | skip dependency installation | | --yes, -y | accept every default; never prompt |

Directory name, package name, display name and app id are four different things. Set them separately, or let each default from the one before.

Everything is validated before anything is written — a malformed id, a non-canonical version, an occupied port, an unknown flag, a non-empty or symlinked target. All problems are reported at once, and nothing is created.

Templates

| --template | What you get | | --- | --- | | panel | A right-panel component. The usual starting point | | menu | An item in the Apps dropdown | | context-menu | A panel plus a right-click action on nodes | | non-react | No UI at all — an app driven entirely by lifecycle hooks and host events | | full | All of the above together |

They are copied out of the example apps in cytoscape-web-app-examples, which are built, verified and loaded into a real host on every CI run, so a template cannot quietly rot into something that no longer works.

What you get

my-app/
├── package.json          ← your identity, written once, in the `cyweb` block
├── vite.config.ts        ← three lines
├── src/MyApp.tsx         ← the CyApp the host loads
├── src/components/       ← your UI
├── test/                 ← a smoke test that runs with no browser and no host
├── AGENTS.md             ← context for coding agents
└── README.md

Then:

cd my-app
npm run dev                       # prints the link that installs it into a host
npm run build && npx cyweb-app verify

npm run dev serves an app manifest and prints a ?installApp= link. Opening it against a running local host installs the app — nothing in the host repository is edited.

Developer Preview

The tooling is published at 0.x while the host-side security work is outstanding. An app runs inside Cytoscape Web with the host's full privileges — no sandbox, no signature verification — so what "Preview" marks is a property of the platform, not the maturity of this generator.

An app runs in the host's own browser context — same origin, DOM, storage and network identity, with no sandbox and no signature verification. An app can read the user's credentials. Install only apps you trust, and understand that publishing one asks the same of your users.

Withholding latest is what keeps the short, discoverable form of this command from working while that is still true.

License

MIT