
Security News
Risky Biz Podcast: AI Agents Are Raising the Stakes for Software Supply Chain Security
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.
najm-event
Advanced tools
Optional events (event bus) plugin for Najm framework with decorator-based event handling and async event emission.
bun install najm-events
import { On, Events } from 'najm-events';
// Listen to events with the @On decorator
@Service()
class UserService {
@On('user.created')
async handleUserCreated(data: any) {
console.log('User created:', data);
}
}
// Inject event methods using @Events decorator
@Controller('/api/users')
class UserController {
@Events() private events!: any;
@Post('/create')
async createUser(@Body() userData: any) {
// Create user logic here
const user = await this.userService.create(userData);
// Emit event
this.events.emit('user.created', user);
return user;
}
}
@On() and @Events()FAQs
Event .
We found that najm-event 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.
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
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.