resourcesResource APIs
routes · validation · relationships · hooks
Describe your domain—resources, identity, storage, and access. Rockets turns that definition into a secure, documented server with the repeatable foundation already wired.
export const billing =
createServer({
auth: sharedIdentity,
repository: postgres,
resources: [
customers,
invoices,
ledger,
],
accessControl:
billingPolicy,
});Complete server surface
configuration → running capability
resources
routes · validation · OpenAPI
auth
protected endpoints · AuthorizedUser
repository
default storage · overrides
accessControl
ownership · policy
createServer reads one typed domain definition and assembles the secure, documented foundation around the code only your team can write.
resourcesroutes · validation · relationships · hooks
authprotected endpoints · one AuthorizedUser
repositoryone default · per-resource overrides
accessControlownership · roles · operation rules
openapia documented surface from the same definition
Choose the providers that fit today. Small contracts keep the rest of the application stable when infrastructure changes tomorrow.
API key
X-API-Key · app-local adapter
Firebase
Bearer ID token · shipped adapter
Built-in identity
signup · login · OTP · roles
const externalAuth = [
defineFirebaseAuth({
firebaseApp,
}),
defineApiKeyAuth(),
];
const ownedAuth =
defineRocketsAuth(
authOptions,
);TypeORM
users · pets · orders
Firestore
analytics_events
Your adapter
audit_log
const sql =
defineTypeOrmRepository(
connection,
);
const firestore =
defineFirestoreRepository();
const analytics =
defineModuleResource({
entities: [{
entity: AnalyticsEvent,
repository: firestore,
collection:
"analytics_events",
}],
});Rockets removes recurring infrastructure work while leaving domain behavior explicit, testable, and owned by your team.
Rockets is an open-source backend definition and runtime. Describe the resources, identity, persistence, and access rules for one domain, then launch a server with the repeatable application foundation already assembled.
It turns one typed configuration into registered resources, protected endpoints, persistence, policy, hooks, and OpenAPI. createServer is the launch-facing API; pre-1.0 packages may still expose lower-level registration surfaces while that facade lands.
No. Rockets materializes the server at runtime, so generated glue files do not become another codebase for your team to maintain.
Yes. Authentication and persistence sit behind small contracts. Choose the shipped providers, order multiple identity strategies, or bring an adapter that meets the same application-facing interface.
The parts that make the product yours: domain schemas, business rules, services, integrations, events, and operational decisions. Rockets owns the repeatable foundation around that behavior.
Rockets is pre-1.0 and published under the alpha dist-tag. Pin exact versions for production use and expect the public surface to keep tightening on the path to 1.0.
Start with one typed domain definition and turn it into a secure, documented server your team can extend.