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/glossary-react

v0.1.5

Published

A picture for every term in the biolibs glossary, drawn from the real engines, with a tooltip that shows the picture and the definition together and a sheet for a biologist to review them

Readme

@biolibs/glossary-react

A picture for every term in @biolibs/glossary. A definition alone asks a reader to build the picture themselves, and some readers cannot, or should not have to. Here every term has one, and nothing shows a term's words without it.

npm install @biolibs/glossary-react @biolibs/glossary react react-dom

A term in running text

import "@biolibs/glossary-react/glossary.css";
import { Glossed, Term } from "@biolibs/glossary-react";

<p>Each <Term slug="primer">primer</Term> binds one strand.</p>
<p><Glossed text="PCR copies the stretch between two primers." /></p>

Hovering a Term, or moving to it with the keyboard, shows its picture, then its one-sentence definition, with the paragraph and the reason a press away, and whether a biologist has reviewed it. It is shown by the stylesheet and needs no script. Glossed does this for the first mention of each term in a piece of text.

The pictures

import { TermCard, TermDiagram, hasPicture } from "@biolibs/glossary-react";

<TermDiagram slug="gel-electrophoresis" />      // the picture, framed, with a caption
<TermDiagram slug="pcr" decorative />           // the bare drawing
<TermCard slug="sticky-end" full />             // picture, sentence, paragraph and reason
hasPicture("pcr");                              // true

They are SVG drawn in code. Wherever a picture shows something the engines can work out — a complement, where an enzyme cuts, where a band runs on a gel — it is worked out by them as it is drawn, so a picture cannot disagree with the code. Every picture says in words what it shows, for somebody who cannot see it, and bases are drawn as letters as well as colours.

A test fails if any term has no picture.

The sheet a biologist reviews

import { ReviewSheet } from "@biolibs/glossary-react";

<ReviewSheet />                   // every term
<ReviewSheet only="none" />       // only the ones nobody has reviewed

Every term with its picture and all its words, whether it has been reviewed as it stands, and the fingerprint of what is on screen. A review is recorded against that fingerprint, so it covers the words and the picture together, exactly as they were read.

Colours

glossary.css takes its colours from the Bionet theme's variables where a page has them, and falls back to plain ones where it does not, so the pictures follow light and dark.

License

MIT