Ross ROSS = Recommend OSS · open-source software intelligence for agents

tabatkins/railroad-diagrams

:steam_locomotive: A small JS+SVG library for drawing railroad syntax diagrams, like on JSON.org. Now with a Python port! observed · 2026-08-28

github.com/tabatkins/railroad-diagrams · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

69/100

  • Activity 81
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 5106
  • days_rel: n/a
  • days_push: 114
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1762 stars · 158 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A small JS and Python library for generating railroad (syntax) diagrams as SVG or Unicode text, like those on JSON.org. It visually represents grammars in a more readable form than regular expressions or BNF.

Use cases

  • generate railroad diagrams for a language grammar
  • visualize BNF grammar as syntax diagrams
  • create SVG syntax diagrams like JSON.org
  • render grammar diagrams as unicode text
  • document a DSL with syntax diagrams
  • embed railroad diagrams in documentation

When to choose

  • you need attractive SVG railroad diagrams for a grammar
  • you want both JavaScript and Python support
  • you need text-based (unicode) diagram output as well

When to avoid

  • you need diagrams that auto-size precisely to long text labels
  • you need interactive or editable diagram tooling
  • you need general-purpose charting or graph visualization

Facets

library · maturity stable

graphics documentation parser documentation parsers developer-tools web-development python cross-platform railroad-diagrams svg syntax-diagrams grammar-visualization unicode-text-diagrams nodejs

2 sources

Member repositories

RepositoryRoleHealth v2
tabatkins/railroad-diagramsmain69

For agents

markdown · JSON · MCP: product_card(name="tabatkins/railroad-diagrams")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem