binarytorch / larecipe
Living documentation for Laravel apps. Your coding agents write the docs and keep them current; every reader, human or agent, gets the current answer.
Fund package maintenance!
Requires
- php: ^8.3
- illuminate/console: ^12.62|^13.0
- illuminate/contracts: ^12.62|^13.0
- illuminate/database: ^12.62|^13.0
- illuminate/http: ^12.62|^13.0
- illuminate/routing: ^12.62|^13.0
- illuminate/support: ^12.62|^13.0
- illuminate/view: ^12.62|^13.0
- laravel/mcp: ^1.0
- laravel/prompts: ^0.3
- league/commonmark: ^2.10.3
- opis/json-schema: ^2.4
- phiki/phiki: ^2.2
- symfony/html-sanitizer: ^7.2|^8.0
- symfony/process: ^7.2|^8.0
- symfony/yaml: ^7.2|^8.0
Requires (Dev)
- laravel/ai: ^1.2
- laravel/pint: ^1.18
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^4.0
- pestphp/pest-plugin-arch: ^4.0
- pestphp/pest-plugin-laravel: ^4.0
Suggests
- laravel/ai: Ask AI for readers and the larecipe:sync docs agent (^1.2)
- nikic/php-parser: Symbol-level sources (App\Billing\Invoice::refund) for drift detection
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 3.x-dev
- v3.0.1
- v3.0.0
- 2.x-dev
- v2.9.1
- v2.9.0
- v2.8.1
- v2.8.0
- v2.7.0
- v2.6.1
- v2.6.0
- v2.5.0
- v2.4.4
- v2.4.3
- v2.4.2
- v2.4.1
- v2.4.0
- v2.3.0
- v2.2.3
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.3
- v2.1.2
- v2.1.1
- v2.1.0
- v2.0.0
- v1.4.0
- v1.3.6
- v1.3.5
- v1.3.4
- v1.3.3
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.5
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.2.0
- v1.1.0
- v1.0.1
- v1.0.0
- dev-readme-downloads-badge
- dev-drop-version-pin
- dev-release/3.0.1
- dev-readme-liveness
- dev-readme-contributors
- dev-readme-screenshot
- dev-remove-competitive-notes
- dev-trim-planning-notes
- dev-release/3.0.0
This package is auto-updated.
Last update: 2026-10-19 13:29:51 UTC
README
Docs that keep up with your code
LaRecipe lives inside your Laravel app. Your coding agents write the docs and update them with every change.
People get a fast, beautiful site; agents get Markdown, llms.txt and MCP.
See it live ยท Get started ยท Upgrade from v2 ยท Changelog
๐ Get started
composer require larecipe/larecipe php artisan larecipe:install
Open /docs. Your docs site is ready, and your coding agents (Claude Code, Codex, Cursor, Gemini, Copilot) are set up to keep it current.
๐ How it works
- Each page lists the code it describes.
- Your agent updates the affected pages before it pushes.
- If it forgets, a hook holds the push and names the pages.
- You review docs and code in the same pull request.
What your agent sees when it forgets:
$ git push LaRecipe: this push changes code that 1 docs page describes, and it was not updated: - docs/billing.md (sources: app/Billing/**) Update it with the larecipe-update-docs skill, run php artisan larecipe:validate, show the user the docs diff and wait for approval, then commit and push again.
โจ Features
For readers
- A fast site, light and dark, right to left, phone to desktop. Just beautiful ๐!
- Search in the browser, with no service to run
- Versions, languages and private docs
- Live references read from your running app
- Ask AI, with answers that cite your pages
For agents
- Every page as Markdown
llms.txtandllms-full.txt- An MCP server
- A skill for your docs
See it live at larecipe.saleem.dev โ The LaRecipe docs are built with LaRecipe.
โฌ๏ธ Upgrading from LaRecipe 2
composer require larecipe/larecipe php artisan larecipe:upgrade
It starts as a dry run with a report. Add --apply to convert, then let your agent finish with the larecipe-upgrade-v2 skill. Read the upgrade guide.
๐ Requirements
PHP 8.3+ and Laravel 12.62+ or 13. Ask AI needs laravel/ai.
๐ Contributors
This project exists thanks to all the people who contribute. Contribute.
Work on LaRecipe locally
composer install pnpm install pnpm build # the prebuilt UI in dist/ vendor/bin/pest # PHP tests pnpm test # UI tests pnpm test:browser # browser tests against the workbench
๐ License
MIT. Made by Saleem Hadad.
โญ If LaRecipe saves you time, star the repo.
