Skip to content

nestelia ships a set of optional packages that extend the core framework. Install only what you need.

Available Packages

PackageDescriptionPeer Dependencies
nestelia/schedulerCron jobs, intervals, timeouts
nestelia/microservicesMulti-transport microservicesioredis (optional), amqplib (optional)
nestelia/apolloApollo GraphQL code-first@apollo/server, graphql
nestelia/passportPassport.js strategiespassport
nestelia/testingIsolated test modules
nestelia/cacheResponse caching with decoratorscache-manager
nestelia/rabbitmqAdvanced RabbitMQ messagingamqplib
nestelia/graphql-pubsubRedis PubSub for GraphQL subscriptionsioredis
nestelia/drizzleType-safe SQL ORM via drizzle-ormdrizzle-orm
nestelia/event-emitterTyped async event emitter with wildcard support
nestelia/bullmqBackground job queues via BullMQbullmq

Installation

All subpaths are part of the single nestelia package. Install it once, then add only the peer dependencies you need:

bash
# Core (required)
bun add nestelia elysia

# Apollo GraphQL
bun add @apollo/server graphql graphql-ws

# Passport authentication
bun add passport

# Cache manager
bun add cache-manager

# RabbitMQ / microservices (RabbitMQ transport)
bun add amqplib

# Microservices (Redis transport) / GraphQL PubSub
bun add ioredis

# BullMQ queues
bun add bullmq

Import Paths

All subpaths are available directly from nestelia:

typescript
import { ScheduleModule } from "nestelia/scheduler";
import { Transport } from "nestelia/microservices";
import { Resolver, Query } from "nestelia/apollo";
import { AuthGuard } from "nestelia/passport";
import { Test } from "nestelia/testing";
import { CacheModule } from "nestelia/cache";
import { RabbitMQModule } from "nestelia/rabbitmq";
import { GraphQLPubSubModule } from "nestelia/graphql-pubsub";
import { DrizzleModule } from "nestelia/drizzle";
import { EventEmitterModule } from "nestelia/event-emitter";
import { QueueModule } from "nestelia/bullmq";

Released under the MIT License.