Bun-First · Module-Oriented

Build autonomous backend modules with production-grade velocity.

S42-Core v3 is a 100% module-oriented framework: each module includes controllers, services, events and contracts to work independently inside high-performance Bun runtimes.

Stock42 logo Built by Stock42 LLC

v3.0.0

Current Version

3

Module Types

Bun

Native Runtime

EN/ES

Documentation

Module Runtime Lifecycle

1

Load mws modules first

2

Register share modules

3

Load full controllers and events

4

Execute middleware on-demand per route

Quickstart Terminal


                      
$

Platform Design

Corporate-grade backend architecture on Bun

S42-Core combines routing, modular loading, events, storage adapters and clustering in a cohesive developer experience.

HTTP

`Bun.serve`, native routes and hook pipeline.

Modules

`full`, `mws`, `share` with convention-based loading.

Events

Distributed registry with Redis/SQS adapters.

Data

Redis, MongoDB, SQL and SQLite integration utilities.

Module Strategy

One framework, autonomous modules

full

Domain modules with controllers, handlers, services and events.

controllers/ · events/ · models/ · services/

mws

Middleware modules with `default`, `beforeRequest` and `afterRequest` contracts.

mws/index.ts

share

Reusable contracts, helpers and shared services without route registration.

types/ · utils/ · services/

Implementation Examples

Production-ready usage patterns

Documentation Center

Complete technical docs in English and Spanish

Browse every component reference, architecture note and module contract directly from the site.