A collection of libraries for NestJS developers.
NestKit is a set of focused modules for NestJS APIs. Each package solves one problem well and installs on its own, so you add only what you need and nothing you do not.
| Package | What it does | Version |
|---|---|---|
@cisstech/nestjs-expand |
Dynamic resource expansion: let API clients pull related resources on demand, in a single request. | |
@cisstech/nestjs-pg-pubsub |
Real-time pub/sub over PostgreSQL LISTEN/NOTIFY, with no extra message broker to run. |
Both modules support NestJS 10 and 11.
Guides and API for every module are hosted at cisstech.github.io/nestkit.
- Supercharging NestJS APIs: a deep dive into Dynamic Resource Expansion
- Building real-time applications with PostgreSQL and NestJS
Clone and install:
git clone https://github.com/cisstech/nestkit
cd nestkit
yarnThe sample application reads its configuration from a .env file at the repository root:
# PostgreSQL
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=your_database
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/your_database
# Redis (for the distributed lock service)
REDIS_HOST=localhost
REDIS_PORT=6379Start the services and serve the demo:
docker-compose up -d
yarn start- The documentation app is served at http://localhost:4200/.
- The sample API documentation is served at http://localhost:3000/api/doc.
Contributions are always welcome. Please read our CONTRIBUTING.md first, then submit ideas as pull requests or GitHub issues. Make sure your code style matches the rest of the project and that the unit tests and linter pass.
NestKit is free to use. As the maintainer, I put a lot of time into answering questions, fixing issues and adding features around a full-time job. If the project saved you or your team time, a star on the repository supports its maintenance and future work.
MIT © Mamadou Cisse