I am looking for a JavaScript library to create railroad diagrams similar to those at json.org and h2 database grammar:

railroad diagram

  • Preferring a JS library. A ws would work depending on the requirements.
    – Brett Ryan
    May 23, 2016 at 7:11

1 Answer 1


You're probably looking for Tab Atkins' railroad-diagrams.

  • Perfect, thanks! Just what I was after.
    – Brett Ryan
    Jun 8, 2016 at 3:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.