Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@strav/kernel

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strav/kernel

Strav kernel — IoC container, service providers, lifecycle, config, events, helpers

npmnpm
Version
1.0.0-alpha.36
Version published
Weekly downloads
946
-92.05%
Maintainers
1
Weekly downloads
 
Created
Source

@strav/kernel

Foundation of the Strav framework: IoC container, service-provider lifecycle, configuration, event bus, helpers, encryption, storage, cache, i18n, logger, session abstraction.

Status: 1.0.0-alpha — M1 implementation in progress.

Install

bun add @strav/kernel

What's here

  • Container — register / singleton / resolve / make / bind / when / tag — auto-DI via @inject().
  • Application — provider topo-sort, boot, shutdown, signal handlers.
  • ServiceProviderregister, boot, shutdown lifecycle.
  • ConfigRepository — typed config keyed by dotted path; frozen after boot.
  • EventBusemit/emitParallel/on/once/subscribe with cancelable contract.
  • StravError hierarchy.
  • Logger — Pino-backed.
  • helpers/ — env, ULID, crypto, clock.

Subpath imports (cross-package strav use only)

The public API lives at the root barrel. Sub-paths exist so other @strav/* packages can import the subsystem they need without circular barrel chains:

import { Application } from '@strav/kernel/core'
import { EventBus }    from '@strav/kernel/events'

Consumer apps should always import from the root barrel:

import { Application, EventBus, ServiceProvider } from '@strav/kernel'

Docs

  • spec/architecture.md — container + provider contracts.
  • spec/lifecycles.md — boot / shutdown sequence.
  • guides/05-service-container.md
  • guides/06-service-providers.md
  • guides/04-application-lifecycle.md

FAQs

Package last updated on 31 May 2026

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