Skip to main content

Snout Router Path

A simple, light-weight, type-safe router path implementation

Teeny tiny

A fully-featured router path implementation in less than 1kB. Out of the box, Snout Router Path comes with everything you need for almost any application.

Extensible

Got an advanced use case? Powerful features like custom parameters allow you to expand the capabilities of Snout Router Path to meet your needs.

No parser required

Other router path implementations need to parse their own DSL, which comes with unavoidable complexity. Snout Router Path avoids this by letting your language do the parsing instead.

Type safety

Don't wait until run-time to find out that you're using your routes wrong. Snout Router Path uses TypeScript type inference so you always know what your route arguments are.

Try it!

No time to read the docs? No worries.

Try Snout Router Path on CodeSandbox

Try it!

No time to read the docs? No worries. Try Snout Router Path right here.

If you want TypeScript support, you'll need to open the full sandbox.