jlnstack

Introduction

Type-safe route builder for Next.js-style routing

Routes

Routes is a framework-agnostic, type-safe path builder optimized for Next.js file-based routing. Define your routes once and get full type inference when building path strings.

Why Routes?

  • Type-safe paths — Autocomplete route segments and params with full TypeScript inference.
  • Framework agnostic — Outputs plain strings. Use with any router, fetch, or redirect.
  • Next.js optimized — First-class support for typed routes and dynamic segment conventions.

On this page