
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@galaxy-stack/orbit-core
Advanced tools
Core framework for Orbit - DI Container, Module System, Router
Part of the Orbit framework — a NestJS-style backend framework for Bun.
bun add @galaxy-stack/orbit-core
Package cốt lõi của Orbit framework, cung cấp nền tảng cho toàn bộ hệ thống.
DEFAULT (singleton), REQUEST, TRANSIENTreflect-metadata để extract type từ constructorimport { Injectable, Inject } from '@galaxy-stack/orbit-core';
@Injectable()
class UserService {
constructor(
@Inject('DATABASE') private db: Database
) {}
}
imports, controllers, providers, exportsforRoot() và forRootAsync()import { Module } from '@galaxy-stack/orbit-core';
@Module({
imports: [DatabaseModule],
controllers: [UserController],
providers: [UserService],
exports: [UserService],
})
class AppModule {}
@Controller(), @Get(), @Post(), etc.@Body(), @Query(), @Param(), @Headers()import { Controller, Get, Post, Body, Param } from '@galaxy-stack/orbit-core';
@Controller('users')
class UserController {
@Get(':id')
getUser(@Param('id') id: string) {
return { id };
}
@Post()
createUser(@Body() data: CreateUserDto) {
return data;
}
}
app.use()OnModuleInit: Sau khi module được khởi tạoOnModuleDestroy: Trước khi module bị hủyOnApplicationBootstrap: Sau khi app khởi độngOnApplicationShutdown: Khi app shutdown/v1/users, /v2/usersX-API-Version: 1import { Version, VERSION_NEUTRAL } from '@galaxy-stack/orbit-core';
@Controller('users')
@Version('1')
class UserControllerV1 {}
@Controller('users')
@Version(['2', '3'])
class UserControllerV2 {}
import { BunFactory, Module, Controller, Get } from '@galaxy-stack/orbit-core';
@Controller()
class AppController {
@Get()
hello() {
return { message: 'Hello Orbit!' };
}
}
@Module({
controllers: [AppController],
})
class AppModule {}
const app = await BunFactory.create(AppModule);
await app.listen(3000);
Request → Middleware → Guards → Pipes → Controller → Interceptors → Response
↓
Service Layer
↓
Repository/DB
FAQs
Core framework for Orbit - DI Container, Module System, Router
The npm package @galaxy-stack/orbit-core receives a total of 4,561 weekly downloads. As such, @galaxy-stack/orbit-core popularity was classified as popular.
We found that @galaxy-stack/orbit-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.