SchedulerOfficial
UI-free in-process task scheduling and runtime schedule sources for BitaKit.
bitakit · Plugin for every BitaKit app
- Type
- Package
- Needs a build
- Kind
- Plugin
- BitaKit
- Works with
- Any app
- Every BitaKit app
- Versions
- 2
- versions
- Publisher
- bitakit
- Official
Preview
1 picture

About
@bitakit/scheduler
UI-free, in-process scheduling for BitaKit. Tasks are executable feature code; schedules and sources are data. Croner owns cron/date/timezone scheduling in Node and browsers.
Read AGENTS.md for the complete package contract, source lifecycle, discovery,
manual server composition and tracing. Runnable examples live in examples/; after building,
run node packages/scheduler/examples/server/main.ts --once from the repository root.
Source responsibilities: define.ts declares tasks/schedules; discovered.ts adapts the shared
contribution expansion; engine.ts owns execution and reconciliation; sources.ts reads data
and URLs; server/index.ts reads/watches Node files; plugin.ts binds Core lifecycle/events.
On serverless hosts a cron route calls runDue({ within }): it runs each schedule's latest slot
in the window and hands the task its schedule and slot, so the task can claim each slot once.
This is not a durable queue: no persistence, exactly-once, leader election or closed-tab guarantee. Install the plugin in the runtime that owns the work; server and browser runtimes are independent.
Information
- Publisher
- bitakit · Official
- Type
- PackageNeeds installation: add it to the app's code and build the app.
- Kind
- Plugin
- Works with
- Every BitaKit app
- npm package
- @bitakit/scheduler (opens in a new tab)
- Categories
- Workflows