-
v.1.1.0
Stablereleased this
2026-08-16 23:02:43 +02:00 | 1032 commits to main since this releaseNew Features
- CLI / Import: Support importing recipes directly from YouTube videos and Shorts via
gram import:- Uses Gemini multimodal video understanding to analyze cooking videos and generate structured
.gramrecipes. - Automatically populates
title:,author:(channel name), andsource:metadata from YouTube. - Automatically normalizes YouTube Shorts URLs to standard video formats.
- Added
--max-duration(default 20 minutes) to prevent accidental token overconsumption on long videos. - Displays upfront video duration and estimated token cost when
YOUTUBE_API_KEYis configured.
- Uses Gemini multimodal video understanding to analyze cooking videos and generate structured
- CLI / AI: Explicit AI model and provider selection for all AI commands (
gram import,gram db lint,gram db enrich):- Added
--model,--provider, and--pick-modelCLI flags to inspect or override the active model per run without altering persistent config. - The CLI now displays the active AI provider, model, and configuration source before execution.
- Isolated provider API keys so credentials configured for a specific provider are never leaked or reused when switching providers.
- Fixed
gram importhanging in non-interactive environments when--outputwas used without--yes.
- Added
- CLI / Database: Added physical coherence and sanity checks across
gram db validateandgram db enrich:gram db validatechecks calorie consistency against Atwater estimates (4 kcal/g protein/carbs, 9 kcal/g fat, 7 kcal/g alcohol).gram db validatechecks sub-macro coherence (sugars exceeding total carbs, fat sub-types exceeding total fat).gram db validateenforces category-based density sanity ranges and unit weight bounds.gram db enrichconstrains AI estimates within physical limits and prompts self-verification of Atwater consistency.gram db enrichpasses known ingredient categories to the AI to reduce guesswork.
- CLI / Database:
gram db enrichnow walks you through an interactive review before writing AI estimates toingredients.yaml:- Preview, accept, edit, or skip AI-proposed density, unit weight, and nutrition values per ingredient.
- Unedited AI values are tagged with
# [LLM]iningredients.yamlto track provenance. - Added
--report(-r) to preview needed database enrichments without writing changes, matchinggram db lint --report(replaces--dry-run/-n). - Added
--yes(-y) to accept all estimates automatically for non-interactive scripting. - Automatically falls back to accepting values with a warning when executed in non-interactive (non-TTY) environments.
- CLI / Import: Added integrity guardrails and diagnostic reporting to
gram import:- Validates compiled AST tokens against AI output to detect lost ingredients or truncated steps, aborting instead of writing corrupted files (overridable with
--force). - Reports uncorrected AI generation errors with actionable diagnostics.
- Identifies imported ingredients missing quantities and lists their line numbers for easy manual completion.
- Reports unknown database ingredients and unweighed units when an ingredient database is present.
- Prevented hallucinated placeholder metadata in
author:andsource:fields. - Redirected progress indicators to
stderrso stdout redirection (gram import ... > recipe.gram) produces clean recipe files.
- Validates compiled AST tokens against AI output to detect lost ingredients or truncated steps, aborting instead of writing corrupted files (overridable with
- Nutrition & Rendering: Support flexible nutrition serving bases (per portion and per 100 g) alongside whole-recipe totals:
- Declaring
portions:in recipe frontmatter now calculates per-portion nutrition and keeps values constant when scaling recipes. - Added a standardized
per-100gnutrition basis calculated from raw assembled recipe mass. - Added the
--nutrition <auto|total|per-portion|per-100g>option togram view,gram export, andgram print. - Added nutrition basis toggles in the web playground and VS Code live preview.
- Localized all nutrient names and table headers across supported languages (French and English).
- Declaring
Bug Fixes & Improvements
- Parser & Kitchen: Fixed an issue where multi-word composite ingredients marked with
&(e.g.@juice{1}<@&unwaxed lemon{}) were duplicated in the shopping list instead of being combined into a single purchase item. - Analyzer & Language Server: Improved nutrient calculation completeness and editor hover precision:
- Saturated, monounsaturated, polyunsaturated fats, and alcohol are now included in recipe nutrition totals instead of being omitted.
gram db enrichcan now propose monounsaturated and polyunsaturated fat values during ingredient enrichment.- Fixed the editor hover tooltip incorrectly displaying sodium in grams instead of milligrams.
- Analyzer: Fixed recipe total mass and section weights to include ingredients defined as relative percentages of another ingredient (e.g.
@water{60% @&flour}).
Downloads
-
Source code (ZIP)
2 downloads
-
Source code (TAR.GZ)
5 downloads
- CLI / Import: Support importing recipes directly from YouTube videos and Shorts via
-
v.1.0.1
Stablereleased this
2026-08-07 20:24:57 +02:00 | 1064 commits to main since this release1.0.1 - 2026-08-07
Bug Fixes & Improvements
- Fixed the
--helpdescription ofgram checkto clarify that it also checks database completeness by default, unless--skip-dbis used. - Reduced the AI provider costs of running
gram import:- Prompt caching is now enabled, so retries reuse the cached prompt instead of paying full price.
- The command now sends a minimized recipe payload instead of the full raw webpage data.
- The self-correction loop no longer spends retries on informational warnings (like missing database ingredients).
- Formatting is now handled locally instead of spending an AI call to fix it.
- Improved the quality and correctness of recipes generated by
gram import:- Fixed an issue where English words would leak into non-English recipes.
- Fixed grammatical errors (dropped articles) around ingredient and cookware references in non-English output.
- Descriptive adjectives (like "boneless skinless") are now correctly extracted as preparation steps instead of creating unwieldy ingredient names.
- Corrected the generated syntax for multi-word cookware references.
- Fixed an issue where the target language was sometimes incorrectly inferred.
- Improved decoding of accented characters and punctuation from the source recipe.
- Improved the CLI guidance printed after running
gram import:- It now correctly points to
gram db syncas the recommended next step. - It accurately reports any remaining compiler warnings (e.g., missing ingredients) instead of silently discarding them.
- It now correctly points to
- Fixed
gram initto ensure the interactive AI provider setup accurately offers the currently recommended models (e.g., llama4).
Downloads
-
Source code (ZIP)
3 downloads
-
Source code (TAR.GZ)
6 downloads
- Fixed the
-
released this
2026-08-06 13:30:28 +02:00 | 1098 commits to main since this releaseGram 1.0.0 is officially here! 🍊🎉
Hi everyone! Today is a big milestone: Gram v1.0.0 is officially out!
Following up on the last beta version, where I focused on test coverage and internal monorepo stability, there aren't really any new features in this release. Instead, this official 1.0 is more of a devlog update: it's all about setting up a proper, long-term home for Gram with a brand-new website, refreshed documentation, a new logo, and a switch to self-hosted infrastructure.
Recently, I shared Gram on Reddit, and the warm response and feedback I received really blew me away. Seeing people genuinely interested in the project (at least among food-loving devs!) gave me a huge boost of motivation to polish the last details, rebuild the site, and push this official 1.0 out the door. Thank you so much to everyone who reached out!
A Brand-New Website & Documentation
The most visible change with this release is that I completely rebuilt the website from the ground up using Astro and Starlight.
This switch allowed me to clean up the layout and overall organization of the documentation. Beyond the technical rework, I also took the opportunity to heavily revise the French documentation. Instead of keeping a strict line-by-line translation of the English manual, large parts of it have been rewritten to read much more naturally and fluidly.
I also added a dedicated blog to the site! I'll be using it to post news, project updates, and devlog articles. Finally, I took another pass at how Gram is introduced on the homepage so new visitors can get what the project is about right away. If you have any feedback on the new site or docs, please let me know!
A Fresh New Logo
Gram also has a new logo! Yes, it's already version #2... I redesigned it from scratch to keep it clean and readable even when scaled down to a tiny browser tab favicon.
The orange icon is a direct nod to my very first web project years ago. For retro gaming fans, it's also a (more or less) subtle tribute to the Japanese Dreamcast logo — my very first home console. It doesn't have anything to do with cooking, but it puts a smile on my face and brings back fond memories every time I look at it. So I guess that was reason enough to redesign it 😅
Self-Hosted Infrastructure & Open Collaboration
To keep Gram independent and maintain full control over it, I moved the canonical git repository from Codeberg to my own self-hosted Forgejo instance on a server located in France (git.gram-lang.org).
Setting up this whole infrastructure — server configuration, CI runners, and site deployment — took quite a bit of work, but having full ownership over the hosting environment gives me much more freedom to manage the project properly going forward.
That said, I want contributing to be as friction-free as possible. On the main Forgejo instance, you can log in directly using your GitHub account via OAuth, so there's no need to fill out a registration form or create yet another password. The repository is also automatically mirrored in real-time to both Codeberg and GitHub. I know creating accounts on new forges can be annoying, so feel free to open Issues or PRs on GitHub or Codeberg if you prefer — I'll keep an eye on all of them.
What's Next?
With
v1.0.0, the foundations should be clean, reliable, and ready. Reaching this milestone feels great, and now I'm eager to get back to writing code!My backlog is already filled with ideas, syntax improvements, and new features I can't wait to work on. I'll also be writing more general blog posts about Gram as a project, its roadmap, and where things are headed next.
Please give
v1.0.0a try, take a look at the new website, and feel free to reach out with any feedback. Happy cooking, and à bientôt !Downloads
-
Source code (ZIP)
3 downloads
-
Source code (TAR.GZ)
8 downloads
-
Source code (ZIP)
-
v.1.0.0-beta.5 Pre-release
released this
2026-07-26 10:26:43 +02:00 | 1229 commits to main since this releaseRelease Notes - v1.0.0-beta.5
Cleaning up the codebase
Hi! Let's cut right to the chase: this beta 5 is about making sure the whole engine actually holds together reliably.
As a solo developer working on Gram and learning as I go, the project has quietly turned into a pretty sizable monorepo (
parser,kitchen,analyzer,renderer,cli,lsp,format). Recently, I ran into a — reportedly — classic problem: tweaking a line in one package would randomly break something else three packages away.Before adding any more features or syntax additions, I thought it would be preferable to stop and build a proper safety net. So for this release, I spent some time digging through the codebase, fixing edge cases, and locking down test suites and golden files across every package.
Along with all that internal cleanup, this release packs many changes covering a brand-new code formatter, interactive Gantt charts right in VS Code, SSRF security guards, full rendering parity between Markdown, HTML, and printable HTML (
gram print), and some long-overdue unit fixes for French recipes.
Formatting & VS Code Tools
- Standalone Formatter (
@gram-lang/format): Extracted the formatting logic into its own package with 13 canonical rules.gram formatin the CLI and Format on Save in VS Code now use the exact same engine. - Frontmatter Safety:
gram formatwon't mess with casing inside frontmatter metadata blocks anymore (so emails likeJean@Example.comstay as-is). - Spacing Cleanup: Fixed
#cookwareat line starts being misread as section headers, and enforced exactly one blank line before## Sectiontitles. - VS Code Gantt View: You can now open a real-time Gantt chart panel right inside VS Code to inspect your recipe timelines while typing.
Parser & Syntax Fixes
- Sigil Swallow Bug: Fixed a nasty bug where bare mentions like
@ingredientor#cookwarewithout{}swallowed subsequent items or timers further down the line. - TextMate Highlighting: Aligned the VS Code syntax highlighter so it stops matching names at
@,#,~,^, and&, fixing color bleed across lines. - Fraction Edge Cases: Fixed decimal numerators (
1.5/2no longer gets truncated to0.5) and properly rejected zero denominators (1/0no longer turns intonull/Infinity). - Headerless Recipes: Fixed LSP crashes and missing symbols on recipes that don't start with a
## Sectionheader.
Engine & Calculation Fixes
- ALAP Scheduling across Empty Sections: Empty or comment-only sections no longer mess up ALAP timing for following steps.
- Named Track Chaining: Chaining steps on the same passive track (
~_oven{...}) no longer triggers false conflict warnings. - Indirect Cycles: The compiler now catches indirect circular dependencies between sections and warns you about them.
- Scaling Fixes:
gram scalenow scales cookware properly, eliminates float rounding noise like110.00000000000001, and rejects extreme multipliers cleanly instead of crashing. - Timer Warnings: Unrecognized time units now produce proper warnings instead of fake durations.
CLI & Security Hardening
- SSRF Protection in
gram import:gram importnow refuses to fetch local or private addresses (localhost, internal IPs, cloud metadata), even across HTTP redirects. - API Key Isolation: Fixed a bug where an API key could leak to the wrong provider if multiple keys were set in your environment.
- Safer DB Enrichment:
gram db enrichrejects physically impossible AI suggestions (like absurd densities) and won’t claim success if nothing was written to disk. - Clean Terminal Output: Invalid DB entries now print warnings to
stderrinstead ofstdout, so pipinggram build | jqworks reliably again.
French Unit Fixes
livre: Now uses the French metric pound (500g) instead of the imperial pound (453.59g).tasse: Now uses the French cup (250mL) instead of the US liquid cup (236.58mL).quart: "Un quart d'heure" is no longer misidentified as a liquid quart volume in French recipes.pinte: Emits an explicit unknown-unit warning instead of guessing a wrong number.- Language Awareness:
language:in.gram/config.yamlnow actually drives unit resolution and supermarket category sorting.
Rendering & Parity
- Full Format Parity: Markdown (
toMarkdown), HTML, and printable HTML (toPrintHTML/gram print) now show the exact same information:- Markdown recipes now include full nutrition tables.
- Recipe comments render as numbered footnotes in both Markdown and print output.
- Gross vs. net weight notes (e.g. "1 avocado" vs usable flesh) show up everywhere.
- Mixed unit warnings ("100g" + "1 cup") are grouped consistently across all exports.
- XSS Neutralization: Raw HTML tags (
<and&) are now escaped intoMarkdownand timing tooltips. - Print View Fixes: Fixed sodium showing up in grams instead of milligrams in print view (
toPrintHTML), and fixed blank nutrition warnings.
Language Server Resilience
- No More Editor Crashes: A malformed
ingredients.yaml, a remote workspace, or a failed background reload will no longer crash the entire VS Code extension session. - Fresh Buffer Operations: Formatting, renames, and code actions now operate directly on live editor state rather than stale disk files.
What's Next?
I feel like taking the time to do this cleanup was absolutely necessary at this stage. It actually gives me much more confidence for everything I want to implement after the V1 launch.
On a more personal note, I have to say that I'm having an absolute blast building Gram. Watching this project come to life, mature, and become more robust and genuinely useful makes me happier than ever ☺️
I feel like the feature set for the official V1 launch is now complete. Obviously, there are a million more features I want to add in the future, but I'm forcing myself to stay disciplined and stick to this first major milestone. It's certainly not 100% perfect, but when I look back at where this project started compared to where it is today... it feels pretty great!
My main goal now is to prepare for the official V1 release: revamp the documentation homepage to introduce Gram better, and iron out the last few bugs that I may find.
The next steps will arrive very quickly. I've already populated the backlog (over on Projects) with plenty of issues and big features planned to make Gram even more powerful down the road.
Until then, please give
beta.5a spin, don't hesitate to share the project with people around you and let me know if you run into anything! À bientôt !Downloads
-
Source code (ZIP)
2 downloads
-
Source code (TAR.GZ)
7 downloads
- Standalone Formatter (
-
v.1.0.0-beta.4 Pre-release
released this
2026-07-23 10:26:29 +02:00 | 1330 commits to main since this releaseRelease Notes - v1.0.0-beta.4
It's About Time !
Welcome to beta 4! For this release, I focused entirely on one of the trickiest parts of the Gram engine: time and retro-planning.
After testing the parser against a bunch of real-world recipes, I realized the timing logic was a bit opaque, and sometimes even completely wrong... So, I decided it was time (no pun intended) to rethink how it should work in a real kitchen environment. The calculations are now much more robust, and more importantly, they finally align with reality. The documentation has been updated to reflect all this!
Smarter Passive Timers
The way Passive Timers (
~_) interact has changed. You should really start naming them, because their names now dictate how they are scheduled:- Different Names (Parallel): Putting one prep in the fridge for 1h and another for 20min? No problem, they overlap.
- Same Name (Sequential): Baking something in the "Oven" at 180°C for 30min, THEN at 160°C for 1h? If they share the exact same name, Gram automatically sequences them. No more overlapping baking steps breaking the space-time continuum!
Visualizing Time: Gantt Chart & Tooltips
Previously, section retro-planning (like
## Section ~{-2h}) was mostly just there to look pretty in the code. It didn't really impact the engine's core scheduling. Well, now it does! The parser strictly uses these offsets to compute the timeline.To prove all this math works, I finally added a Gantt Chart view to the Playground. It's a feature I've talked about since the early stages of this project, and building it is exactly what helped me realize the old timing calculations were way off 😅. You can now visually check your recipe's timeline, see exactly how your retro-planning offsets shift the steps, and debug everything at a glance.
Bonus: In the HTML preview, hovering over any time badge will now reveal a detailed tooltip breaking down exactly how that specific time was calculated (Active, Prep, Total). It's incredibly useful for understanding the parser's underlying logic!
Just-In-Time Prep (ALAP)
Gram now uses ALAP (As Late As Possible) scheduling. Instead of prepping things early and leaving them sitting on the counter, the engine pushes passive timers backwards from the end of the recipe. It calculates the exact moment to start a prep so it's ready just-in-time.
(Side note:cookTimeis now calledidleTimeeverywhere. It just makes more sense).
What's changed
- Core API:
runPipelineis now exported from@gram-lang/clito make programmatic usage way easier. - Strict Timelines: Section retro-planning (e.g.
## Section ~{-2h}) now enforces a strict signed-duration syntax. Oh, and you can used(days) as a unit now! - Fractions: Fixed bugs where scaled fractions looked weird. Things like
0.5will now cleanly render as1/2. - Shopping Lists: The shopping list now correctly preserves your recipe's original ingredient alias instead of forcing the database's canonical name.
What's Next?
I have to admit, I've had a bad habit of constantly wanting to add "just one more feature" before the V1 launch, which keeps pushing the release back. It's time for some discipline: no new features for now.
If you're curious about what's coming later, I've added a list of ideas I want to implement to the repository's Projects tab (and more will be added soon).
Instead, my entire focus is shifting to a massive codebase review and optimization pass for
beta.5. The project has grown significantly, so this is going to be a huge undertaking, but it's now or never. I really hope (and strongly intend) for beta.5 to be the final beta before the stable V1 release!Until then, please drop by the playground, test the Gantt chart, and try to break the timeline! À plus 🖖
Downloads
-
Source code (ZIP)
4 downloads
-
Source code (TAR.GZ)
6 downloads
-
v.1.0.0-beta.3 Pre-release
released this
2026-07-14 16:00:38 +02:00 | 1393 commits to main since this releaseCleaning up a few messes left behind by the beta.2 release! Everything should be running smoothly again with this quick maintenance update.
What's Changed:
- Fixed accurate line number reporting for syntax errors in gram check.
- Downgraded the minimum VS Code version requirement to 1.75.0.
- Automated npmjs packages publication in CI.
- Improved documentation clarity.
Downloads
-
Source code (ZIP)
2 downloads
-
Source code (TAR.GZ)
7 downloads
-
v.1.0.0-beta.2 Pre-release
released this
2026-07-13 19:42:42 +02:00 | 1408 commits to main since this releaseRelease Notes - v1.0.0-beta.2
Preparing for a final release, Marketplace, and npm!
The final push is officially on! Since the last release, I've hit pause on new features to conduct a massive architectural audit and stress test of the entire project.
Preparing the engine for this milestone is only half the battle. I also needed to ensure the codebase was flawlessly secure and polished before its grand debut. While they aren't available just yet, the 1.0 launch will mark the official publication of the core packages on npmjs and the release of the VSCode extension on the Marketplace. First impressions matter!
Speaking of grand debuts, the project finally has an official home: gram-lang.org is live!
Massive Testing & A Peek into the Future
The number of automated tests has been drastically increased across the board to ensure the engine is rock-solid. As part of this,a strict, language-agnostic conformance suite has been introduced. It will make things much easier if (or when...) this project is eventually migrated to Rust!
In the meantime, the entire monorepo has been upgraded to TypeScript 7, which already brings massive speed benefits to the toolchain.
API Documentation & Dev Experience
For the developers out there, a comprehensive "API Reference" section has been added to the documentation. It covers the programmatic APIs of the parser, kitchen, analyzer, renderer, and i18n packages, making it easier than ever to integrate Gram into your own tools and applications.
What's New & What's Changed
Syntax Enhancements (Yes, Breaking Changes Again...)
I know, I know, more syntax changes. But I promise these make the language significantly more ergonomic:
- The Temperature Sigil (
^): I am saying goodbye to the°sigil. While typing°is super easy on my native AZERTY keyboard, I realized it is an absolute nightmare to type on a standard US QWERTY keyboard! To make Gram truly universal, temperatures now use the^sigil (e.g.,^{180C}). - Passive Timers (
~_): The passive timer marker has been changed from~&to~_. This fixes a cognitive inconsistency: the&symbol is strictly used as a reference marker everywhere else in the language, so using it for background timers was confusing. - Fractions: The parser now natively supports mixed-number ASCII fractions (like
1 1/2) as well as Unicode vulgar fractions (like½or¾).
CLI Upgrades, Polish & Security
- Tolerant Ingredient Database: Previously, a single invalid entry in your
ingredients.yamlwould hard-crash the entire CLI. Now, the parser is tolerant: it skips the corrupted line, loads all valid entries, and displays a clean warning, making manual editing much safer! - Accented Ingredients Fix: Fixed a frustrating bug where non-Latin or accented characters (like crème fraîche) in ingredient names were incorrectly stripped out, causing custom densities to be silently ignored. Unicode is now fully supported!
- Massive CLI Speedups:
gram formatnow processes your files concurrently, andgram db syncuses a new length-based pre-filtering algorithm to drastically speed up similarity searches. - Global Verbose Flag: Added a
--verbose(or--debug) flag to all CLI commands to print full stack traces when you need to troubleshoot. - Strict Type Safety: A crusade against
anytypes in the compiler resulted in the eradication of over 240 of them and the introduction of strict discriminated unions. The engine's determinism is now mathematically proven. - Unified Diagnostics:
gram checkand the Language Server now share a single, unified warning severity map. By default, the CLI will only fail on actual structural errors (use--strictif you want the old, unforgiving behavior). - VSCode Extension Speed: Fixed some race conditions with completions and added debouncing. Also, editing your
ingredients.yamlnow live-reloads diagnostics in the editor without needing a restart! - Security Hardening:
.envfiles are now written with strict0600permissions. Strict runtime Zod validation for configurations has also been added, andgram importhas been hardened with timeouts and payload limits to protect against bad AI responses. - Deterministic HTML: The HTML renderer no longer uses
Math.random()for footnote anchor IDs, ensuring the output is perfectly byte-stable.
What's Next?
I think the final release will be ready very soon.
Thank you for following along on this journey (even if I'm probably talking to an empty room!). If you want to chat or break the new syntax, feel free to drop by the repository. A bientôt ! 🤙
Downloads
-
Source code (ZIP)
3 downloads
-
Source code (TAR.GZ)
8 downloads
- The Temperature Sigil (
-
v.1.0.0-beta.1 Pre-release
released this
2026-07-05 18:57:37 +02:00 | 1464 commits to main since this releaseRelease Notes - v1.0.0-beta.1
The Documentation Overhaul & Perfecting Parity
Welcome to the second beta of Gram! Since the last release which introduced the CLI and completed the initial ecosystem, my primary focus has been entirely on one massive, long-overdue task: The Documentation.
I've completely rewritten the documentation from scratch and migrated it to Vitepress. During this exhaustive review of every single Gram feature, I uncovered several inconsistencies and edge-case bugs in how the core engine behaved compared to how it should behave.
Taking the time to fix all of these means we've now achieved total parity between the documentation and the engine. What you read is (hopefully) exactly what Gram does.
On a more personal note, the documentation is now fully translated into French, my native language. While this might not fundamentally change the project for most users, it was an important milestone for me to have the language explained in my own mother tongue!
The New Integrated Playground
The legacy standalone playground is gone. In its place is a brand-new, advanced Vue 3 Playground integrated directly into the Vitepress documentation site.
It natively uses the official VSCode grammar (via Shiki) to ensure 100% consistency with your local environment. It's also been substantially upgraded with new features, letting you instantly test recipe scaling, Baker's Math etc. Additionally, the HTML Preview view has been completely redesigned. It is now much more pleasant to read and provides significantly more information at a single glance.You can try it out here: https://abiwab.codeberg.page/gram/play
A Much Smarter Scaling Engine
One of the biggest internal upgrades in this release is the new centralized
ScaleEngineinside@gram/kitchen. Scaling recipes (--scale) and computing Baker's Percentages is now vastly more robust and safe.
The engine now validates your scale targets before computing anything—it will explicitly reject fixed ingredients (@=), relative quantities, or mismatched units with a clear error instead of silently returning corrupted math. A sub-recipe's own total (e.g. "2 lemons") is now a valid scale target itself!
What's New & What's Changed
Culinary Terminology Alignment (Breaking Changes)
To make Gram more intuitive for cooks and less confusing for developers, I've aligned the internal API and terminology with actual culinary concepts:
- Timers: We no longer use computer-science terms like "Synchronous" and "Asynchronous".
- Regular timers (
~{10min}) are now Active timers (requires the cook's attention). - Background timers (
~&{2h}) are now Passive timers (idle time like resting or baking). - Note for Tool Builders: The AST node property
isAsynchas been renamed toisPassive, and CSS classes have been updated accordingly.
- Regular timers (
- Physical Engine: Internal analyzer APIs have been renamed for clarity. For example,
enableMassNormalizationis nowenableMassStandardization, andenableYieldManagementis nowenableYieldCalculation.
Syntax Enhancements
- Bare Preparations: You no longer need to add empty quantity braces to attach a preparation to an ingredient or cookware. You can now write
@butter(melted)or#pan(20cm)completely naturally.
Under the Hood Bug Fixes
- Shopping List Aggregation:
unit_weightconversions (e.g.@avocado{1}) are now handled perfectly with Yield calculations. The shopping list now correctly regroups entries by canonical IDs—merging aliased ingredients (e.g.,beurreandbutter) and cross-unit quantities (e.g.100gand1 cup) into a single gram total! - Baker's Math Fixes: Fixed the
@*auto-detection and added strict safety checks to prevent relative-quantity ingredients from being used as the 100% base.
Oh, and a New Logo! 🍊
You might have noticed Gram now sports a shiny new orange logo. Why an orange? It's actually a nostalgic callback to the very first programming project I built many, many years ago. I recently stumbled upon that old asset and figured it was a perfect fit for a food-related project like this one. Simple as that!
What's Next?
The documentation was the last major mountain to climb before V1, and I'm thrilled it's finally done.
Moving forward, my focus will shift almost entirely to bug hunting and optimizations. I might slip in one more small feature—something in the same vein as "relative quantities"—but I haven't decided yet whether that will land before the stable V1 release or in a future update.
To the massive crowd of exactly zero people currently using this alongside me: thank you for your unwavering support! I know I'm basically talking to myself in an empty room right now since the project is still very under the radar, but building Gram has been an incredibly fun ride. If you somehow stumbled upon this repository, feel free to drop a star, break the code, and say hi. Cheers! 🤙
Downloads
-
Source code (ZIP)
3 downloads
-
Source code (TAR.GZ)
6 downloads
- Timers: We no longer use computer-science terms like "Synchronous" and "Asynchronous".
-
v.1.0.0-beta.0 Pre-release
released this
2026-06-29 12:13:00 +02:00 | 1562 commits to main since this releaseRelease Notes - v1.0.0-beta.0
The Missing Piece: Gram CLI and the Road to V1
The whole ecosystem is finally coming to life. I'm introducing the official Gram CLI—the final piece of the puzzle that connects the language syntax, parser, kitchen analyzer, and ingredient database all together.
Gram has finally reached a state that feels truly functional—at least, I hope so! All the core components are talking to each other, hopefully creating a unified recipe management system without too many hiccups. Hitting this milestone marks the transition into the beta phase. From here on out, my focus will shift to hunting down the inevitable bugs, fine-tuning the current features, and polishing the overall experience to get everything ready for the final
v1.0.0release.Say Hello to the Official Gram CLI (
@gram/cli)The new CLI is, for now, the most practical tool for managing, compiling, and interacting with your recipes straight from the terminal.
Project & Recipe Management
gram init: Scaffold a workspace (including AI provider setup).gram import: Scrape and translate recipes from any URL into native.gramsyntax.gram build/scale/diff: Compile, scale (with visual diffs), or view a semantic "git diff" of your recipes.gram format&watch: Auto-format your code and run a real-time validation daemon.gram print&export: Generate print-ready HTML or markdown versions.
Interactive Cooking & Search
gram cook: Your terminal cooking assistant, complete with a step-by-step interface and live background timers.gram shop: Generate smart shopping lists sorted by supermarket aisles.gram view: Render recipes beautifully right in your terminal.gram suggest: Find recipes based on your fridge's contents using an alias-aware search engine.
AI-Powered Database
gram db sync&merge: Automatically track new ingredients or integrate external community databases.gram db lint: Clean up semantic duplicates and plural mistakes.gram db enrich: Use AI to fetch missing nutrition facts, densities, tags, and categories.
The Next-Gen VS Code Experience & Language Server
I've completely overhauled the VS Code Extension, which now ships with a full Language Server (LSP) built right in.
- Dynamic Live Preview & Macros: A real-time WebView panel renders your recipe as you type. It also integrates a Macros panel, and hovering over any ingredient reveals its complete nutritional table.
- Smart Autocompletion & Navigation: You'll get contextual suggestions for ingredients, intermediate declarations, and canonical units. I've also added advanced navigation features like Go to Definition, Find All References, and Rename Symbol (fingers crossed they work smoothly on your projects).
- Intelligent Assistance: The extension now provides real-time diagnostics, CodeLens actions, and Quick Fixes. It even uses fuzzy matching to suggest corrections for misspelled ingredients based on your database.
What's New & What's Changed
Language Evolution (Breaking Changes)
The core grammar has gotten some updates to be a bit more intuitive and permissive.
- Syntax Adjustments: I've made a few symbol changes to make the grammar cleaner and easier to read. Here is a quick before/after comparison:
Feature Before (v0.10.0) Now (v1.0.0-beta) Single-word ingredients, cookware & intermediates @salt{}@salt(braces are optional)Temperatures !{200°C}°{200°C}Async Timers ~{10min}&~&{10min}Retroplanning {T-2d}~{-2d}Aliases [alias]:alias- Top-Level Support: You can now write comments and recipe steps globally, anywhere in the document (even before the first
## Section). - Identity Refinement: The
@gram/compilerpackage has been renamed to@gram/kitchento better fit the Gram language vibe. Visual tooling, documentation, and example recipes have all been updated to match these new grammar rules.
Under the Hood Improvements
- Architecture & Performance: I've wrapped up a major architecture refactoring and ESM migration, which brings some nice performance bumps and cleaner code across the monorepo.
- Nutrition Standardization: The
saltoutput field in NutritionMetrics has been renamed tosodiumto align perfectly with the ingredient database schema. - General Polish: I've also pushed a ton of smaller fixes, tweaks, and overall improvements across the board to ensure everything runs as smoothly as possible.
A Personal Note
Reaching this
betais a pretty big deal for me. After all these months of thinking, designing, and coding, seeing everything click together into something somewhat functional is incredibly rewarding. Gram started as an idea, and now it's a real tool that actually works! I know there's still a lot to improve and refine (and probably quite a few edge cases I haven't thought of yet), but this is a huge step forward, and I'm genuinely excited to see where it goes from here. Cheers 🤙Downloads
-
Source code (ZIP)
3 downloads
-
Source code (TAR.GZ)
5 downloads
-
v.0.10.1-alpha Pre-release
released this
2026-06-14 19:57:36 +02:00 | 1679 commits to main since this releaseRelease Notes - v0.10.1
A small maintenance update to keep the project's foundations clean and fast:
- Housekeeping: Completely cleaned up and updated all project dependencies.
- Turborepo: Implemented Turborepo to significantly speed up and simplify the workspace build process.
(No new features or breaking changes in this release).
Downloads
-
Source code (ZIP)
3 downloads
-
Source code (TAR.GZ)
6 downloads