
Security News
/Company News
Securing the Financial Frontier: How Capital One Uses Socket for Open Source Security
Capital One is partnering with Socket to proactively secure its open source supply chain.
@galaxy-stack/orbit-core
Advanced tools
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 1,170 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.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.

Security News
Socket CTO Ahmad Nassri discusses how to keep AI agents from bypassing package blocks, limit credential access, and monitor their actions.

Security News
GPT-6 Astra tried to plant malicious code in simulated open source projects using fake GitHub accounts and deceptive PRs during an assigned CTF challenge.