@sullux/event-engine-schedules-plugin
v1.0.1
Published
Cron and delayed schedule triggers plugin for @sullux/event-engine.
Maintainers
Readme
@sullux/event-engine-schedules-plugin
Cron schedules, delayed event triggers, and resilient timer plugin for @sullux/event-engine.
Documentation
Full documentation, guides, and schema references are available at: https://sullux.com/projects/event-sourced/event-engine-schedules-plugin/
Installation
npm install @sullux/event-engine @sullux/event-engine-schedules-plugin
# or
yarn add @sullux/event-engine @sullux/event-engine-schedules-pluginQuick Start
const { EventEngine } = require('@sullux/event-engine')
const schedulesPlugin = require('@sullux/event-engine-schedules-plugin')
const main = async () => {
const engine = EventEngine({ databasePath: './events.db' })
engine.registerPlugin(schedulesPlugin)
// Register a recurring daily cron schedule
const schedule = await engine.ingress('[email protected]', {
scheduleId: 'sched_daily_backup',
cron: '0 0 * * *',
targetEventType: '[email protected]',
targetPayload: { full: true },
enabled: true,
})
console.log('Schedule registered:', schedule.id)
}
main()Contributing
Contributions are welcome! Please ensure all code adheres to project guidelines (Vanilla JS, functional factories, zero external dependencies, 100% test coverage).
yarn testLicense
MIT © 2026 Charles Sullivan
