
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
Lightweight TypeScript decorators for building modular class-based applications
A lightweight TypeScript decorator library for building modular class-based applications. Flambo provides utility decorators that reduce boilerplate code while maintaining clean architecture principles.
npm install flambo
yarn add flambo
Memoizes getter results after the first call. Perfect for expensive computations or one-time initializations.
class UserService {
// Without @Once
private _config: Config | null = null;
get config(): Config {
if (!this._config) {
this._config = new Config();
}
return this._config;
}
// With @Once
@Once()
get config() {
return new Config();
}
}
Simplifies environment variable handling with type conversion and default values.
class ServerConfig {
@Env(3000)
port: number;
@Env({ type: String, default: 'development' })
nodeEnv: string;
@Env({ type: 'json', key: 'DB_CONFIG' })
dbConfig: DatabaseConfig;
}
Collects decorated property names into an array. Useful for metadata collection and reflection.
class ValidationRules {
// Array can be explicitly defined for type safety
public requiredFields: string[];
@PushTo('requiredFields')
username: string;
@PushTo('requiredFields')
password: string;
// Decorator automatically creates: requiredFields = ['username', 'password']
}
import { Once, Env, PushTo } from 'flambo';
class AppConfig {
public initTasks: string[];
@Env({ type: Number, default: 3000 })
port: number;
@Once()
get databaseUrl(): string {
return this.buildDatabaseUrl();
}
@PushTo('initTasks')
async connectDatabase() {
// ...
}
}
Flambo provides lightweight decorators that enhance your classes without enforcing a specific architecture. This makes it perfect for:
MIT
Contributions are welcome! Please feel free to submit a Pull Request.
FAQs
Lightweight TypeScript decorators for building modular class-based applications
The npm package flambo receives a total of 15 weekly downloads. As such, flambo popularity was classified as not popular.
We found that flambo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.