Remix Routes

screenshot of Remix Routes
remix

Typesafe routing for your Remix apps.

Overview

remix-routes is a tool that automatically generates typesafe helper functions for manipulating internal links in your Remix apps. It also works seamlessly with remix-modules.

Features

  • Automatic generation: remix-routes generates typesafe helper functions for manipulating internal links in your Remix apps, saving you time and reducing the risk of errors.
  • Compatible with remix-modules: remix-routes works seamlessly with remix-modules, allowing you to easily integrate it into your Remix app.
  • Query string manipulation: remix-routes allows you to easily append query strings to your internal links.
  • Typed query strings: You can define the type of query strings by exporting a type named SearchParams in your route file.
  • Runtime params checking: remix-routes can be combined with zod and remix-params-helper to add runtime checking for params in your routes.
  • Route type definitions: remix-routes exports all route type definitions for your convenience, making it easier to work with routes in your app.
  • Command Line Options: remix-routes provides command line options for watching changes and automatically rebuilding, enabling strict mode, and specifying the output path for the generated typescript declaration file.
  • TypeScript Integration: remix-routes includes a TypeScript plugin that helps with navigating between route files.

Summary

remix-routes is a valuable tool for managing internal links in your Remix apps. It creates typesafe helper functions, making it easier to manipulate and append query strings to your links. With its seamless integration with remix-modules, it offers a comprehensive solution for working with routes in your app. Additionally, it provides command line options and TypeScript integration for added convenience and productivity. Overall, remix-routes is a powerful tool that enhances the development experience for Remix app developers.

remix
Remix

Remix is a modern JavaScript framework that focuses on building fast and performant web applications. It emphasizes a combination of server-rendered content and client-side interactivity, offering a robust architecture for creating scalable and maintainable projects.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.