← Selected work
2023·Personal · Public package

Firebase Express SDK

Firestore CRUD for Express

Firebase Express SDK turns common Firestore-backed API setup into configuration: describe a collection and the actions you want to expose, then let the SDK connect those operations to an existing Express application.

collection: users
GET
/api/getUsers
POST
/api/addUser

What it is

The package sits between an Express application and Firebase Firestore. A consumer supplies the Express app, Firebase service-account configuration, collection shape, and endpoint actions; the SDK handles the repetitive CRUD wiring around them.

API model

Collections define the document attributes that belong to an API surface. Actions then map a collection to an HTTP method and endpoint, making the relationship between storage and route behavior explicit in one configuration layer.

Why it exists

Small Express + Firestore services often repeat the same initialization, collection access, request plumbing, and CRUD handlers. The SDK experiments with moving that boilerplate behind a reusable package while leaving Express itself in control of the application.

Engineering notes

01

Integrate with Express instead of replacing it

Consumers pass an existing Express app into the SDK, so the package can stay focused on Firestore CRUD rather than becoming an application framework.

02

Describe routes as data

A compact action definition makes repeated collection/endpoint setup easier to inspect and reuse across a small service.

← Back to all work