pkg:clod/com.clodhub/level-schedule 0.11.0 A list of levels that advance on a timer, with a rule for what happens after the last one (double, repeat or stop). Levels are {label, values}, so the same component schedules poker blinds, antes or any stepped stake. Tournaments and timed games raise their stakes on a clock. This component turns an unpaused clock reading (milliseconds) into the level in force, its values, the next level and the time until it. A level is `{label, values}` where `values` is any set of named whole numbers (poker blinds are `{sb, bb}`); all levels share the same names. After the last listed level one of three rules applies: `double` multiplies every value by `multiplier` for each further level (the recipe's blinds rule), `repeat` keeps the last level's values going, `stop` freezes at the last level and reports it as final. The clock itself belongs to `game-clock`; this component only reads the number it is given. Examples A hold'em tournament with 16 listed blind levels, ten minutes each, doubling after. A turbo game with five-minute levels. A fixed-structure game that stops rising at the last level. A non-poker game stepping a target score with `values: {target}`. Package URL: pkg:clod/com.clodhub/level-schedule@0.11.0 Class: Level schedule (pkg:clod/com.clodhub/level-schedule-class@1.1.0): Timed levels with rising values, such as tournament blinds. Any component of this class can fill a recipe slot that asks for it. Category games/tournaments; https://clodhub.com/classes/level-schedule-class.txt; 0 other components of this class: https://clodhub.com/components.txt?class=pkg%3Aclod%2Fcom.clodhub%2Flevel-schedule-class Provides (1) - level-schedule (com.clodhub/level-schedule 1.0.0): Stakes that rise on a timer. A level is {label, values}: the values are whatever the game steps up (blinds, an ante, a target score); the component never looks inside them except to scale them. TypeScript, `implementation/server/levels.ts`. Methods named `ScheduleApi.` are members of the object createScheduleApi returns: the tournament's view, with the clock reading as the only argument. components that use it: https://clodhub.com/components.txt?requires=com.clodhub%2Flevel-schedule Requires (0) - none Settings (3) The installer collects three settings. `levelSeconds` is how long each level lasts (whole number of seconds; default 600). `afterLastLevel` is `double`, `repeat` or `stop` (default `double`). `multiplier` is the factor used by `double` (whole number, default 2). The levels themselves are data supplied by the recipe or the rules file, for example the `blinds.levels` section of the house rules. - levelSeconds: integer; optional, default 600 - afterLastLevel: string (slug); optional, default "double" - multiplier: integer; optional, default 2 Depends on components: none How to use in a recipe A recipe uses it through a slot of class Level schedule (pkg:clod/com.clodhub/level-schedule-class 1.1.0), naming pkg:clod/com.clodhub/level-schedule as the slot's preferred component or substituting it for another component of the class. The recipe connects what it provides (level-schedule) to the slots that use it. The recipe sets levelSeconds, afterLastLevel and multiplier; any it leaves out takes its default. - as a slot in recipe.json components: {"id":"level-schedule","class":{"name":"pkg:clod/com.clodhub/level-schedule-class","version":"1.1.0","digest":"99e1541627ab2d88624b358c5e49a2a9a71b048113bf8680bffad3958bddcdbe"},"preferred":{"name":"pkg:clod/com.clodhub/level-schedule","version":"0.11.0"}} - in place of another component of the class: clod fetch level-schedule@0.11.0 --store store --from https://clodhub.com, then clod design RECIPE@VERSION --store store --answers answers.json --substitute SLOT=level-schedule@0.11.0 --out definition.json Used by recipes: pkg:clod/com.clodhub/ourpoker-recipe 0.13.0 (slot level-schedule) For developers: how an application uses it The game keeps a level clock (from `game-clock`, which freezes it while paused) and calls `currentLevel(schedule, levelClockMs)` when a round starts, as the recipe's `levelFor` and `blindsFor` did, and `msUntilNext` for the on-screen countdown. `tournament` requires this interface. `createScheduleApi(schedule)` is the form a tournament calls: `levelAt(elapsedMs)` and `describe(elapsedMs)` (the level in force, the next level and the milliseconds until it), plus `levelInfo(level)` for a game that deals at a given level (the poker rules read `values.sb` and `values.bb`). `scheduleFromRules(rules)` builds the schedule from the house rules file: `blinds.levels` as `{sb, bb}` levels, `level_duration_seconds`, and the doubling from `after_last_level`; explicit settings override the rules. `examples/blinds.ts` is the same by hand. Single platform: server TypeScript; clients receive the already computed level and countdown in the game view. Accounts and services No deployed service and no accounts; local library functions only. How it is checked `tests/web.test.ts` builds the poker blinds schedule from `tests/fixtures/house-blinds.json` (the blinds section of the house rules, test data only) and checks every listed level, the level boundaries, the doubling rule for levels 17 to 19, plus `repeat` and `stop` with a small schedule, countdowns, validation errors, and the cap on very large values. It also checks `levelAt` and `describe` (boundaries, next level, the end of a stop schedule, past the last level, plain data) and of `levelsFromRules` and `scheduleFromRules` (the house rules, other sections and field names, refusal of missing or mixed values). - `node --test tests/web.test.ts` (web, required-local; tools: node 26.5) Updates Patch updates replace the files only. The component keeps no data. Changing the level list in a running game moves everyone's level the next time the level is read. Tags: games, level, schedule, tournaments Targets: client none; server none Publisher: George McIntyre (george-mcintyre) Guardians: Level N Ltd (guardian key 08775f20) Source: clodhub/level-schedule release v0.11.0; digest sha256:866ef966b2fab151e41b856cf4bb16289c01d4aa48fb62aae040f6e8fcd013f6 Release: features Line 0.11: no security releases Quality: Integration-tested, certified Known vulnerabilities: none known (checked 2026-11-26 at OSV); https://clodhub.com/api/components/level-schedule/0.11.0/vulnerabilities Downloads: 1 in 30 days; 1 of this version Classes: https://clodhub.com/classes.txt; this component as JSON: https://clodhub.com/api/components/level-schedule/0.11.0 Bundle download: GET https://clodhub.com/api/components/level-schedule/0.11.0/bundle returns a link valid for one hour Implements: pkg:clod/com.clodhub/level-schedule-class@1.1.0 99e1541627ab2d88624b358c5e49a2a9a71b048113bf8680bffad3958bddcdbe com.clodhub/level-schedule 1.0.0 entry modules: server server/index.ts shared behaviour suites: shared Platforms: server Toolchains: node >=26.5.0 <27.0.0 Frameworks: none Styles: scope none; 0 namespaces; 0 conflicts Licence: Apache-2.0; 0 upstream sources, 0 exact dependencies, 22 files (listed on the details page) Suitable for jobs: level-schedule profile any: cost none; load none; regions any; compliance none Notes: Pure library; no provider limits apply. Data migration: this component keeps no data Maintainers: Level N Ltd; https://github.com/clodhub/level-schedule/issues; updates https://github.com/clodhub/level-schedule/releases (manual) What you download level-schedule-0.11.0.tar, from release v0.11.0 of clodhub/level-schedule: 22 files - Documents and manifests (8): CONTRACT.md, INSTRUCTIONS.md, LICENCE, NOTICE, PROVENANCE.md, SOURCE.md, ... - Source code (2): server/ (2) - Tests (2): fixtures/ (1), web.test.ts - Interface documents (1): level-schedule.json - Class files: the class's interfaces and shared checks (3): level-schedule-class/ (3) - Examples (1): blinds.ts - Diagrams (5): definition.json, examples/ (1), output/ (3) Installing copies 2 of them into the application under components/level-schedule/: server 2 Not included: the values of its settings, which the recipe writes; any secret The archive is a release file on the publisher's public GitHub repository; ClodHub keeps this page and a pointer to the release, not the code. clod checks the archive's sha256 fingerprint before anything is copied, and installing runs none of the package's code. Versions - 0.11.0 features (2026-11-26T11:28:16.050Z) sha256:866ef966b2fab151e41b856cf4bb16289c01d4aa48fb62aae040f6e8fcd013f6 Links Details (package foundations, upstream sources, exact dependencies, styles, class inventories, files): https://clodhub.com/components/level-schedule/details.txt?version=0.11.0 Page: https://clodhub.com/components/level-schedule; JSON: https://clodhub.com/api/components/level-schedule/0.11.0; connections diagram: https://clodhub.com/api/components/level-schedule/0.11.0/connections.svg Copyright Level N Ltd 2026