New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@nl-framework/platform

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nl-framework/platform

Unified application factory for nl-framework combining HTTP and GraphQL servers with shared dependency injection context.

latest
npmnpm
Version
0.3.5
Version published
Maintainers
1
Created
Source

@nl-framework/platform

Platform adapters and bootstrap utilities that host Nael Framework modules for HTTP, GraphQL, and microservice workloads.

Installation

bun add @nl-framework/platform

Highlights

  • Unified bootstrap – launch HTTP servers, GraphQL gateways, and microservices with a consistent API surface.
  • Testing harness – spin up lightweight application instances for integration or contract testing.
  • Adapter interfaces – plug in custom transports (Fastify, Express, Dapr, etc.) without changing controller logic.

Quick start

import { NaelFactory } from '@nl-framework/platform';
import { AppModule } from './app.module';

const application = await NaelFactory.create(AppModule, {
  http: {
    port: 3000,
  },
  graphql: {
    path: '/api/graphql',
  },
});

const { http, graphql } = await application.listen({ http: 3000 });

console.log('HTTP server running on port', http?.port);
console.log('GraphQL mounted at', graphql?.url);

To shut everything down gracefully later on:

await application.close();

API surface

  • NaelFactory.create(Module, options) – boots the dependency graph and returns a NaelApplication facade.
  • NaelApplication.listen(options) – starts HTTP, GraphQL, and federation gateway servers and returns active handles.
  • NaelApplication.getHttpApplication() / getGraphqlApplication() / getGatewayApplication() – access the underlying adapters when you need lower-level control.
  • NaelApplication.get(token) / getConfig() / getLogger() – resolve services from the shared application context.
  • Types such as NaelFactoryOptions, NaelListenOptions, and NaelListenResults document the available configuration hooks.

Compatibility

RuntimeMinimum versionNotes
Bun1.1.22Primary runtime. CI, CLI scaffolding, and docs target Bun 1.1.22+.
Node.js20 (experimental)HTTP adapters run on Node, but Bun remains the recommended build/test environment.

License

Apache-2.0

Keywords

bun

FAQs

Package last updated on 06 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts