Skip to main content

RapidREST

A high performance TypeScript framework for rapidly building RESTful APIs and web apps in minutes.

RapidREST is a battle-tested, opinionated, TypeScript framework for rapidly building RESTful API services and apps. Offering a robust feature set with best-in-class performance in an easy to use decorator based framework, it's never been easier to build scalable API services and web apps with Node.js.

A complete REST API in under 50 lines

No hand-written handlers, no manual route registration, no boilerplate database code. Just add a data model and a route class, then let RapidREST do the rest!

RapidREST even generates a complete OpenAPI spec.

src/models/Pet.ts
import {
DatabaseDecorators, BaseMongoEntity
} from '@rapidrest/service-core';
const { Column, DataStore, Entity } = DatabaseDecorators;

@DataStore('mongo')
@Entity()
export class Pet extends BaseMongoEntity {
@Column()
public name: string = "";

@Column()
public species: string = "";

constructor(other?: any) {
super(other);

if (other) {
this.name = "name" in other ? other.name.trim() : this.name;
this.species = "species" in other ? other.species : this.species;
}
}
}

Built for speed

Runs on the high-performance native HTTP library uWebSockets.js so the framework stays out of the way under load.

Decorator-driven, zero boilerplate

Automatically inject dependencies and wire API endpoints with decorators in code — no central app/router or registration files to maintain.

Database Support

Whether you prefer MongoDB or SQL, the built-in ORM layer and CRUD endpoints eliminates the boilerplate needed to build data-driven APIs and apps.

Auth & RBAC

Security first principles with auth and a powerful RBAC/ACL system for per-URL/class/document access control built-in — no separate library to bolt on.

OpenAPI Docs

Automatically generates OpenAPI documentation from your code and serves the spec via common endpoints `/openapi.json`, `/openapi.yaml`

Cache System

The Redis based built-in caching system provides automatic caching of queries, documents, and server rendered React pages. Simply add `@Cache` to your model and you're done!

RapidREST is incredibly fast

RapidREST delivers best-in-class performance out of the box for common workloads compared to other popular frameworks.

Requests per second on single record database read test `get_pet`.
Full methodology & more endpoints →

Battle Tested + Batteries Included

Originally developed to serve as the foundation for the award-winning Game Backend as a Service platform AcceleratXR, RapidREST is a battle-tested framework that has been used in real production at scale. The framework is meticulously designed to offer everything needed to deliver high-quality production-grade RESTful services and apps in minutes.

  • HTTP Engine built on uWebSockets.js for raw speed
  • RBAC & ACLs URL, class-based and document-level protection
  • Database Integration built-in Mongo & ORM (SQL) layer
  • Data Caching cache queries, documents, pages, and more
  • OpenAPI automatically generates OpenAPI docs from your code
  • Server-rendered React unify your front-end and back-end code

From nothing to running in three steps

1
npx @rapidrest/cli generate server my-api

Scaffold a project

2
rapidrest generate route Pet --model

Add a model + CRUD routes

3
rapidrest dev

Run it!

Ready to ship your API?

Get a running RapidREST project in under a minute.

Get Started