AI agents
biagiojs ships first-class material for LLMs and coding agents: a curated index, a full operational guide in the npm package, and documentation structured for retrieval.
Quick links
| Resource | URL |
|---|---|
| llms.txt (site index) | /llms.txt |
| AI-GUIDE.md (full reference) | GitHub |
| Documentation | /docs/ |
| VS Code extension | biagiojs/extensions/vscode-biagio/ in the repo |
Point your agent at https://biagio.danilosprovieri.com/llms.txt for a compact map of every guide.
Mental model
biagiojs is SSG-first + islands, business-aware. Components declare business weights (conversion, seo, interaction, 0–1) and costs (cpu, network). The build decides hydration plan, preload, SEO, consent and i18n.
Golden rule: static is the desired default. Pages without islands ship zero JavaScript in production.
Agent workflow
npx create-biagiojs my-site --template blog
cd my-site && npm install
- Set
site.baseUrlto the real production URL. - Use
defineConfigfrombiagiojs/configinbiagio.config.js. - Prefer
pages/*.page.biagioor scaffold withbiagio new page …. - Use weight tables from Business weights — do not invent numbers.
- Run
biagio explain pages/index.page.biagiofor instant feedback on hydration plan. - Run
biagio build .and read the render order + hydration log. - Run
biagio doctor .before deploy.
DX commands for agents
| Command | When to use |
|---|---|
biagio new page blog/[slug] | New route with getStaticPaths boilerplate |
biagio new island counter | Client module scaffold |
biagio new collection blog | Markdown collection + content.config.js |
biagio explain <page> | Check eager/lazy/static without full build |
biagio doctor . | Pre-deploy validation incl. broken links |
Weight reference (do not guess)
| Component type | conversion | seo | interaction |
|---|---|---|---|
| Hero / main CTA | 0.8–1.0 | 0.7–1.0 | 0.5–0.9 |
| Product card | 0.6–0.9 | 0.5–0.8 | 0.3–0.6 |
| Navigation | 0.1–0.3 | 0.2–0.5 | 0.4–0.7 |
| Footer / legal | 0.05–0.1 | 0.3–0.5 | 0.01–0.05 |
| Chat widget | 0.03–0.1 | 0.1 | 0.1–0.3 |
Low conversion + high network cost → stays static (no JS).
Files agents should read first
- Getting started — config and first page
- Syntax (.biagio) — weights and hydration attributes
- Content collections — typed frontmatter, draft mode
- CLI —
explain,new, dev overlay tools - Automatic SEO — meta, sitemap, hreflang
- Consent — never load trackers without gating
- AI-GUIDE.md — exhaustive reference
Common mistakes
- Hydrating everything — defeats the framework; use weights and
biagio explain. - Skipping
baseUrl— breaks canonical and sitemap. - Loading analytics without
data-cvw-consentor islandconsent=. - Using
fonts.googleapis.comin production instead ofsite.fontsself-host. - Publishing draft content — use
draft: truein frontmatter (excluded in production builds).