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

@biolibs/bionet-demo

v0.1.10

Published

A lab that shows what Bionet is: a made-up freezer, and a tour that uses its tools on it

Readme

@biolibs/bionet-demo

A lab that shows what Bionet is, and a walk through it. The lab is made up and real at the same time: it is opened on a key held in memory, founded, and filled by the same signed entries a person's app writes, so the tools, the scene and the history all work on it for real. Closing the window forgets the lot.

npm install @biolibs/bionet-demo @biolibs/bionet-theme react react-dom

The whole thing

import "@biolibs/bionet-theme/theme.css";
import "@biolibs/bionet-scene/scene.css";
import "@biolibs/bionet-tools/tools.css";
import "@biolibs/glossary-react/glossary.css";
import "@biolibs/bionet-demo/demo.css";
import { Demo } from "@biolibs/bionet-demo";

<Demo />

Thirty-one stops, from the room down to one tube and back again. Before any machine is used it stops at a desk: the primers the PCR needs are not in the freezer at the start, so the walk designs them for the gene, shows every length that was weighed, and has them arrive as tubes. It walks to each machine before using it — across the room, up to the thermocycler, and only then in front of it — because a tool is a thing on a bench in the lab and not a screen that replaces it. The stage's first view looks from the same direction the room was looking, so the two are the same machine from the same side.

At each machine it goes through every view: the machine, what is under its lid, what it displays, what is in the tube, and what came out. The PCR's tube is watched over four stops — the strands parting, the primers landing, the first copies running on too far, and the third cycle where the product's own length first appears. Each stop mounts the real tool, opened on what the stop is about, so anybody can take the controls at any point. Nothing is a recording.

The lab on its own

import { demoLab } from "@biolibs/bionet-demo";

const demo = await demoLab();
demo.lab.snapshot().lab?.parts.map((one) => one.name);   // pGene, pWren backbone — the primers arrive during the walk

demo.source goes straight into LabProvider. demo.tubes, demo.instruments and demo.places name what is in it, for anything that wants to point at a particular tube or machine.

The molecules

import { demoMolecules } from "@biolibs/bionet-demo";

const { pGene, backbone, forward, reverse } = demoMolecules();

Made, not pasted: built from a number that is written down, with the gene and the two sites put where the tour needs them and every other site patched out, so a site on one of these plasmids is always one somebody planted. pGene is a small plasmid holding one gene between an EcoRI site and a BamHI site; backbone is a bigger plasmid already cut with the same two, waiting as a linear piece with sticky ends. The package's tests check that the enzymes still cut where the tour says, that the primers are still the pair the design tool gives for the gene and still make one product of 780 bases, and that the pieces still close into one circle — so a demo that quietly stopped being true would fail the build rather than be shown to somebody.

The walk on its own

import { DemoTour, demoTour } from "@biolibs/bionet-demo";

demoTour(demo).map((step) => step.title);
<DemoTour demo={demo} />

A step is where to be, what to say, and what to do there. Three of them record a run — the PCR, the digest that keeps the gene, and the ligation — so the lab really changes as the walk goes on, and the last stop is true. They check the lab first, so going back and forward over a step does not do it twice, and Start again opens a fresh lab.

License

MIT.