Hello everyone! Gram v1.4.0 is here!

What started out as a small scheduling tweak ended up transforming the entire engine! It took time, this update had been simmering on low heat since this summer, but the result is well worth the wait. Gram 1.4.0 marks a major milestone with a complete overhaul of recipe timing, the arrival of the run sheet and the gram plan command, absolute settings parity across all surfaces, a new modular architecture for views paired with a modernized HTML view, and a deep revamp of the Playground.

(To update your setup, simply run gram upgrade in your terminal, or npm install -g @gram-lang/cli if you’re discovering Gram).

Recipe scheduling rooted in the real world

Ever since the early days of Gram, tapping into timing data felt essential. But let’s be honest: the previous result was often a bit too theoretical, and frankly quite confusing. The Gantt chart looked great on screen (and was a fun technical challenge to build), but in practice, it was pretty much unusable.

Not to mention the disconnect from real life: between a 12-hour dough rise, slow maceration, or long simmering, nobody stays glued to the stove. You go to work, step out, go to sleep. And above all, you almost always have a very concrete goal in mind: serving the meal at table on a specific day and at a precise time (like your next dinner with friends).

In earlier versions, scheduling was fragmented and overly theoretical. Gram 1.4.0 brings all of this together into a unified and far more robust system:

The new @gram-lang/scheduler package

To give scheduling the precision it needs, the engine was extracted from @gram-lang/kitchen into a dedicated package. @gram-lang/scheduler treats time as pure mathematics: constraint solving, backward planning (ALAP), named tracks for shared cookware, and calendar projection—completely detached from syntax parsing or rendering concerns.

The run sheet replaces the Gantt chart

Farewell, horizontal Gantt bars. Enter the run sheet, designed like a genuine culinary prep sheet. The recipe is broken down into kitchen visits, spread across your days (D-2, D-1, D-Day, or real calendar dates).

Each visit is an actionable three-part card:

  1. Mise en place: exactly what you need to take out for this session (ingredients, equipment, earlier prep already in stock).
  2. Action: the ordered recipe steps to execute right away.
  3. Before leaving the kitchen: storage instructions and the exact time or delay until your next visit.

The gram plan command

To drive this planning directly from your terminal, say hello to the new gram plan command:

gram plan sourdough-bread.gram --serve "2026-11-15 12:30"

This command automatically computes backward planning (ALAP – As Late As Possible) so your dish hits the table right on time:

  • Working around your schedule (--available): no more setting a 3:30 AM alarm just to stretch and fold dough because a theoretical timer said so. You can define your availability windows (e.g. --available "08:00-22:00" or fri=18:00-22:00, also configurable in .gram/config.yaml). If a step includes passive time with tolerance (~_{8-16h} for a slow cold proof, for example), the scheduler mathematically adjusts resting time so your interventions fall squarely when you’re awake and around, or lets you know if that’s impossible.
  • Exporting to your calendar (--ics): add --ics kitchen.ics to generate a complete calendar file with notifications ahead of each kitchen visit, including what to take out right in the event description. Your calendar already pings you for meetings; now it can remind you to preheat the Dutch oven!
  • Finding the ideal slot (--find): not sure when to host that multi-course dinner this weekend? --find 2026-11-14/2026-11-15 scans your usual meal times and ranks serving slots that fit seamlessly into your schedule.

Three mise en place strategies (--mise-en-place)

Should you scale everything before turning on the oven, or prep each station on the fly? The --mise-en-place option now gives you the choice:

  • per-section (default): classic brigade organization, mise en place happens right before each recipe section.
  • upfront: take out and weigh everything during the very first visit.
  • per-day: take out everything needed for the day during that day’s first visit.

Ending inconsistencies: complete settings parity

Before this release, an annoying friction lingered: some settings only existed in the CLI, others were missing in the VS Code extension, or carried slightly different names in the Playground, sometimes with subtle differences in behavior.

Gram 1.4.0 establishes complete settings parity. Every parameter applicable to a recipe or its views is now declared from a single source of truth in the engine:

  • Every setting exists everywhere: showing comments (--comments), disabling rest times (--rests), mise en place mode (--mise-en-place), scaling factors (--scale), or stock bases (--stock) share the exact same name, accept the same values, and produce the identical result in the CLI, in VS Code, and on the web.
  • Automated parity tests now ensure no surface can introduce or change a setting without all others benefiting from it immediately.

A modular views architecture and a modernized HTML view

A quick, healthy reminder: Gram is, first and foremost, a culinary data compiler. But because admiring compiled JSON at dinner time has never fed anyone, views remain essential to translate that data into practical tools for cooks. They aren’t set in stone, and more views are already on the stove.

In the meantime, introducing the run sheet was the perfect opportunity to thoroughly reorganize how views work under the hood:

  • A modular registry (src/views/<id>/): each view is now an independent, self-contained module validated by a strict contract. This layout makes it easy to add new representations down the road without touching the tools that consume them.
  • A cleaner, more interactive HTML view: the default HTML layout has been completely redesigned and gained practical in-kitchen touches: tracking intermediate preparations, cross-highlighting ingredients in steps, and interactive checkboxes to mark off finished steps to track your progress, etc.
  • A new plain-text format and revamped gram view: recipes can now be rendered in clean, structured plain text (toText / gram export --format text), featuring tidy borders and neatly aligned ingredient columns. The terminal gram view command now relies on this unified engine, with proper color support.
  • Unified nutrition table: nutrition facts now display 100 g and per-serving values side by side, alongside reference intake values. Sodium is now expressed in a more intuitive way as equivalent salt in grams.
  • Native CSS scoping (@scope): every view scopes its styles to its own root element via standard CSS @scope, guaranteeing zero style leakage when embedded into external web pages.

A completely overhauled Playground

The online Playground has been reimagined from the ground up for a much cleaner and smoother experience:

  • Views front and center: final recipe outputs (Recipe view, Run sheet) are instantly accessible via tabs across all formats (interactive HTML, Markdown, plain text, print preview), while technical inspectors (AST tree, compiled JSON) have their own dedicated menu.
  • The “Settings” drawer: opened with a single button, it gathers all recipe controls into logical sections: scaling (by portion count or target ingredient amount), scheduling and rests, step display and comments, baker’s percentages (%), physical mass conversions, and stock management. Your preferences are automatically remembered across sessions.

Managing transitions and deprecations towards 2.0

Retiring Gantt and reshaping several core parts of the engine (and AST output) called for a clean, predictable deprecation policy. The goal is a strict Semantic Versioning framework leading up to a future v2.0: version 1.4.0 breaks zero existing behavior. All your current recipes and scripts will keep working without changes.

However, to prepare smoothly for major version 2.0.0, several outdated items are now formally deprecated:

  • The Gantt chart (toGanttHTML, gram.showGantt) in favor of the run sheet.
  • Legacy flat timing metrics in compiled JSON (steps[].timings, metrics.totalTime, etc.), replaced by the dynamic recipe.schedule structure.

All deprecations are transparently tracked in the machine-readable deprecations.yaml registry and enforced in CI. A complete guide is available on the dedicated deprecated features page.

Odds and ends

Beyond these big milestones, a few quality-of-life polish items to make life easier in the kitchen:

  • Natural formatting for long durations: preparations spanning more than 24 hours (sourdough starters, curing) are now displayed in days and hours (1d 1h instead of 25h 6m), with minutes using the standard min abbreviation (1h 30min), respecting each locale’s conventions.
  • 100% internationalization: any lingering English terms in Markdown or HTML output (Instructions, Ingredients, Metadata, Total Mass, optional…) now speak your project’s configured language (Étapes, Ingrédients, Masse totale, optionnel…).
  • Sensible Markdown icons: temperatures in Markdown exports now show a thermometer (🌡️ 180 °C) instead of a flame. Resting dough in the fridge at 4 °C next to a flame icon was, after all, a bit counterintuitive!
  • Passive cookware conflict detection: the compiler now warns you (PASSIVE_OVERLAP_SAME_COOKWARE) if two passive steps attempt to use the same equipment (#oven) simultaneously without a shared named track.
  • Scaling cited preps: portion scaling (applyScale) now accounts for intermediate quantities cited inline within steps (Use &dough{100g}).
  • Paper printing: the print stylesheet for the run sheet calibrates one day per page, prevents step breaks mid-sentence, and includes real checkboxes meant for a pencil. Standard recipe view printing now closely mirrors what you see on screen.
  • Concise CLI errors: interrupted commands display a clean single-line error message (pass --verbose to inspect the full stack trace).
  • Editor stability: fixed a race condition in the language server that could cause a desynchronized preview during fast typing on recipes with imports.

Culinary scheduling and real-world time management are intricate problems, so edge cases might have slipped through despite extensive testing. If you run into any unexpected behavior with your recipes, please don’t hesitate to open an issue on the repository—your feedback is invaluable to help me polish the engine!

Check out the full changelog for the complete list of changes in this release.

Happy cooking with Gram 1.4.0!