38.10K
total weekly downloads
71 packages
create-nwire
Scaffolder for new Nwire projects. Run `pnpm create nwire <name>` or `npm create nwire <name>` to bootstrap.
@nwire/amit-design-system
A vue3 library project base. Intended to quickstart your library development without all the configuration hassle.
@nwire/amqp
Nwire — RabbitMQ-backed EventBus adapter. Topic exchange pub/sub with optional durable queues — same EventBus contract as @nwire/nats.
@nwire/api
Koa.js companion for REST API
@nwire/apollo
Nwire — Apollo Server (v4) interop adapter. actionResolver(action) plugs a Nwire ActionDefinition into a GraphQL schema as a field resolver; nwireApolloContext({ runtime }) adds the runtime + a seeded envelope to Apollo's per-request context; mountNwireOn
@nwire/app
Nwire — managed Container with plugin lifecycle, framework hooks, and DI. Composes apps + plugins, boots in order, exposes a Container, fires framework hooks at every lifecycle transition.
@nwire/auth
Nwire — authorization contract + middleware. Authorizer interface (throw-on-deny) + authzMiddleware. Per-action `policy` tag is opaque to the framework; the authorizer decides what each tag means.
@nwire/auth-better-auth
Nwire — better-auth adapter. Wraps a configured better-auth instance as an IdpAdapter so canonical resolvers (SignIn/SignOut/Register/Refresh/Me/etc.) work against better-auth's database-first auth backend. For self-hosted apps that don't want a separate
@nwire/auth-logto
Nwire — Logto auth adapter. Verifies Logto-issued JWTs via JWKS; maps Logto claims (sub, email, roles, scope) to the canonical User; runs sign-out + refresh via Logto's OIDC endpoints. Sign-in is the hosted UI redirect flow; this adapter does not implemen
@nwire/bullmq
Nwire — BullMQ-backed QueueTransport for production. Redis-backed durable queues + delayed jobs (timer scheduler) + failed-jobs board.
@nwire/bus
Nwire — cross-service event bus contract. EventBus interface + InMemoryEventBus default. Production adapters land as @nwire/nats, @nwire/bus-redis, @nwire/bus-kafka.
@nwire/bus-amqp
Nwire — RabbitMQ-backed EventBus adapter. Topic exchange pub/sub with optional durable queues — same EventBus contract as @nwire/bus-nats.
@nwire/bus-nats
Nwire — NATS-backed EventBus adapter. Core pub/sub OR JetStream (at-least-once + DLQ) — same EventBus contract.
@nwire/cache
Nwire — key/value cache contract + InMemoryCache (TTL) default + cachePlugin. Adapters (Redis/Valkey/Upstash) live in separate packages.
@nwire/cli
Nwire CLI — branded TUI. Dev, run, please, build, test, fmt, lint, check, ps, logs, cache, ls, studio. One surface for the whole framework.
@nwire/config
Nwire — typed configuration layer. env reader with coercion + aggregated fail-fast, defineConfig slices, loadConfig registry. Laravel/Adonis-grade configuration for @nwire apps.
@nwire/container
Nwire — DI container contract + Awilix-backed default. Generic over TCradle; ships scope hierarchy, lazy cradle proxy, lifetimes, disposers via Awilix.
@nwire/container-awilix
Nwire — Awilix-backed Container adapter. Production-grade DI with proper scoping + cradle injection.
@nwire/cron
Nwire — cron interface factory. Dispatch actions on a schedule (croner-backed).
@nwire/data-drizzle
Nwire — Drizzle ORM adapter. Provider that registers a Drizzle client on the container, manages the connection pool lifecycle, and exposes optional readiness checks + telemetry. No Repository wrapper — handlers get the real Drizzle API.
@nwire/dead-letter
Nwire — DLQ contract + InMemory default. Production adapters: @nwire/dlq-mongo, @nwire/dlq-bullmq. The runtime routes exhausted-retry failures here.
@nwire/drizzle
Nwire — Drizzle ORM adapter. Provider that registers a Drizzle client on the container, manages the connection pool lifecycle, and exposes optional readiness checks + telemetry. No Repository wrapper — handlers get the real Drizzle API.
@nwire/endpoint
Nwire — production process lifecycle. Wraps any Node server (Express, Fastify, Koa, Nest, Nwire interfaces) with K8s-grade graceful shutdown, http-terminator drain, and lightship readiness/liveness probes. Standalone — no framework dependency beyond @nwir
@nwire/envelope
Nwire — universal message envelope. messageId, correlationId, causationId, tenant, userId. Zero-dep; every nwire package depends on this.
@nwire/errors
Compatibility shim around @nwire/handler error definitions. New code should import the canonical singletons (Unauthorized, Forbidden, NotFound, Conflict, Gone, BadRequest) directly from @nwire/handler.