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 🙏

© 2025 – Pkg Stats / Ryan Hefner

biofabric-ascii

v0.0.1

Published

layout graphs biofabric style, in ascii

Downloads

13

Readme

biofabric-ascii

render graphs biofabric style in the terminal.

Graph layout is a facinating computer science problem, meaning, there is no solution, and you could spend your life studying it. I know enough to keep away from any more of those. But I need to render A graph... Ideally, in the terminal!

biofabric is a method of laying out a graph as with nodes as lines instead of points. This means you can layout a graph on a simple grid, nodes become horizontal lines, and edges become vertical lines.

see also maxodgen/biofabric

Here is a random graph with 40 nodes and 60 random edges.

@++++---^                                                 h
 ||||++-|-----------------------------^                   o
 |v||v|+|                             |                   r
 v-||-|||------------^----------^     |                   c
   || ||++-----------|----------|---^ |                   j
   |v-v|-|+---------^|          |   | |                   N
   |   | ||+++------||----------|---|-|-------^           k
   |   | ||v||+-----||^--------^|-^-|-|-------|--^        f
   v---|-||-|||++   |||        || | | |       |  |        z
       | || |||v|++-|||--------||-|-|-|-------|--|-^      L
       | || ||| |||++||--------||-|-|-|------^|--|-|--^   s
       | v|-|||-|||v-+|        || | | |      ||  | |  |   v
       |  | ||| |||   ++^      || | | |      ||  | |  |   M
       |  | ||| |||    |+@+----||-|-|^|      ||  | |  |   H
       |  | ||| |||    |  |+   || | |||      ||  | |  |   I
       |  | ||| |||    |  |v++-||-|-|||------||-^| |  |   t
       |  | ||v-|||----|--v-||++|-|-|||------||-||-|--|^  x
       |  | ||  |||    |    ||v-++|-|||------||-||^|  ||  B
       |  | ||  |||    |    ||   |++|||      || ||||  ||  g
       |  | ||  |||    |    ||   | |++|^---^ || ||||  ||  n
       |  | ||  |||    |    ||   | |  +++  | || ||||  ||  i
       |  | ||  |||    |    ||   | |    |+ | || ||||  ||  d
       |  v-||--|||----|----||---|-|----|v-|^|| ||||  ||  A
       |    |v--|||----v----||---|-|----|-+|||| ||||  ||  q
       |    |   |||         v|---|-|----|-v+||| ||||  ||  J
       |    |   |v|----------|---|-|----|---+|| ||||  ||  e
       |    |   | |          v---|-|----|----+| ||||  ||  D
       v    |   | |              | |    |     | ||||  ||  y
            |   | |              | |    |     + ||||  ||  b
            |   | |              | |    |      ++|||  ||  l
            |   | |              | |    |      v-+++-^||  C
            |   v |              | |    |            |||  w
            |     |              v |    |            |||  u
            |     |                v----|-----------++||  K
            |     |                     |           | ++  G
            |     |                     |           v     p
            v-----|---------------------v---------------^ E
                  v-------------------------------------+ a

Horizontal lines connect all the edges for a node. + indicates the start of an edge, and ^ and v indicate it's direction. self-references are represented as @.

Laying out the graph is reduced to choosing an order for the nodes. This means sorting a one dimentional list, not mapping points into 2d space so that lines between them minimally overlap. This is a much simpler problem!

Depending on what type of graph you have, choose an ordering that displays that well. For example, if you have a DAG, a topological sort might work well, or if you have a cyclic graph, you could try taking the node with the highest degree (or some more clever centrality measure) and then adding it's high degree neiboughers etc. (this is what biofabric recommends)

Support for undirected graphs is not implemented yet.

License

MIT