pathpida

TypeScript friendly internal link client for Next.js

0 followers

Pathpida is a code-generating client for making Next.js and Nuxt.js internal links type-safe. Pathpida can be used with Zero configuration, Zero runtime, and you can start using pathpida right away!
pathpida gallery image
pathpida gallery image
pathpida gallery image
pathpida gallery image
Launch tags:Productivityβ€’Developer Toolsβ€’GitHub
Launch Team
OS Ninja
OS Ninja
Explore and Learn Open Source using AI
Promoted

What do you think? …

すばる / subaru
Hello hunters πŸ‘‹ If you’re struggling with type-safety of internal links in Next.js or Nuxt.js, pathpida is for you πŸ˜‰ πŸ“– Story When we used internal links in Next.js and Nuxt.js, we needed to write the links as strings. It was impossible to statically check if these links were reachable, and testing them was very difficult πŸ˜• Pathpida solves these problems as type-safe routing by code generation! There is an HTTP client wrapper called aspida that provides type safety in TypeScript. Pathpida introduced here is an internal linking version of this. πŸ’‘ Features β€’ Type safety. Automatically generate type definition files for manipulating internal links in Next.js/Nuxt.js. β€’ Zero configuration. No configuration required can be used immediately after installation. β€’ Zero runtime. Lightweight because runtime code is not included in the bundle. β€’ Support for static files. Static files in public/ are also supported, so static assets can be safely referenced. βš™οΈ How pathpida works? Pathpida creates an object that summarizes all the paths from the file structure in the pages/ directory. The paths in the object contain pathname as a string and query imported from the page file.