Stop Writing Your Routes
summary
Claims that routes no longer need to be written: a plugin generates typed routes from the filesystem so editors get auto-complete for route names and immediate TypeScript errors instead of runtime 404s. Implementation uses unplugin-vue-router to emit an auto-generated route d.ts compatible with Vite/Rollup/Webpack; an earlier heavy generic-based approach slowed dev servers past ~50 routes and was replaced by a simpler name→params map. Pages can also export data loaders that dedupe requests and support SSR.
AI-written summary · about
chapters (16)
- 0:00Intro
- 0:42Designing API's is hard
- 1:52Errors are hard to make
- 2:17Avoid context switch
- 2:42Catter for different user experiences
- 4:13API Ergonomics
- 6:10Erasing an API
- 6:57Weird Ever-Changing API's
- 7:51Where different parts of the app come together
- 8:55Can routing be simplified?
- 10:05Reduce code repetition without compromising flexibility
- 11:15Typed routes
- 13:41Back to the basics
- 14:45Unplugin-Vue-Router
- 19:20Data Loading
- 22:35Summary








