Overview
Remult is a full-stack CRUD framework that provides a streamlined and efficient way to develop web applications. It uses TypeScript entities as a single source of truth for your API, frontend type-safe API client, and backend ORM. With Remult, you can easily build, maintain, and extend simple CRUD functionality in your web applications.
Features
- Zero-boilerplate CRUD API routes: Remult eliminates the need for boilerplate code by automatically generating CRUD API routes with paging, sorting, and filtering for popular frameworks like Express, Fastify, Next.js, NestJS, Koa, and more.
- Fullstack type-safety: With Remult, you can ensure type-safety for API queries, mutations, and RPC without the need for code generation. This helps to catch potential errors early and improve the overall stability of your application.
- Input validation: Remult allows you to define input validation rules once and run them on both the backend and frontend. This ensures a consistent user experience and helps to prevent invalid data from entering your system.
- Fine-grained code-based API authorization: You can easily control access to your API endpoints by defining authorization rules directly in your code. This gives you full control over who can perform what actions in your application.
- Incrementally adoptable: Remult can be adopted incrementally, allowing you to integrate it into existing projects or start new projects from scratch. You can choose to use Remult only for specific features or gradually replace existing code with Remult’s functionality.
- Production ready: Remult has been used in production applications since 2018 and is considered to be stable and reliable. Although the major version is kept at zero to gather community feedback, it is ready for use in production environments.
Installation
To install Remult, you can simply use the remult
package. It can be installed once for a monolith project or per-repo in a monorepo setup. Here is a guide to installing Remult:
- Open your terminal and navigate to your project directory.
- Run the following command to install Remult:
npm install remult
- Once the installation is complete, you can start using Remult in your project.
Summary
Remult is a powerful full-stack CRUD framework that simplifies web development by providing a single source of truth for your API, frontend type-safe API client, and backend ORM. It eliminates boilerplate code, ensures type-safety, offers input validation, and provides fine-grained API authorization. With Remult, you can build fullstack applications using TypeScript code that is easy to follow, refactor, and integrate into any project. It is production-ready and can be adopted incrementally for existing or new projects.