Skip to content

Repository files navigation

Barn

npm versionnpm downloadslicensenodeCIExplore on DeepWiki

Shared tools for the grainulation ecosystem.

Barn extracts the reusable utilities from wheat into a standalone package. Sprint detection, manifest generation, PDF builds, and 17 HTML templates for research artifacts.

Install

npm install @grainulation/barn

Or use directly:

npx @grainulation/barn detect-sprints --json

Tools

detect-sprints

Find sprint directories in a repo by scanning for claims.json files. Uses git history to determine which sprint is active.

barn detect-sprints # Human-readable output
barn detect-sprints --json # Machine-readable JSON
barn detect-sprints --active # Print only the active sprint path
barn detect-sprints --root /path # Scan a specific directory

generate-manifest

Build a wheat-manifest.json topic map from claims, files, and git history. Gives AI tools (and humans) a single file that describes the entire sprint state.

barn generate-manifest # Write wheat-manifest.json
barn generate-manifest --root /path # Target a specific repo
barn generate-manifest --out custom-name.json # Custom output path

build-pdf

Convert markdown to PDF via md-to-pdf (invoked through npx -- no local install needed).

barn build-pdf output/brief.md

Templates

17 self-contained HTML templates for sprint artifacts. Dark theme, inline CSS/JS, no external deps, mobile responsive.

TemplatePurpose
adr.htmlArchitecture Decision Record
brief.htmlSprint brief / recommendation document
certificate.htmlCompilation certificate
changelog.htmlSprint changelog
comparison.htmlSide-by-side comparison dashboard
conflict-map.htmlClaim conflict visualization
dashboard.htmlSprint status dashboard
email-digest.htmlEmail digest summary
evidence-matrix.htmlEvidence tier matrix
explainer.htmlFull-screen scroll-snap presentation
handoff.htmlKnowledge transfer document
one-pager.htmlSingle-page executive summary
postmortem.htmlSprint postmortem
rfc.htmlRequest for Comments
risk-register.htmlRisk tracking register
slide-deck.htmlSlide deck presentation
wiki-page.htmlWiki-style documentation page
cp node_modules/@grainulation/barn/templates/explainer.html ./output/

Zero dependencies

Node built-in modules only. No npm install waterfall.

Part of the grainulation ecosystem

ToolRole
wheatResearch engine -- grow structured evidence
farmerPermission dashboard -- approve AI actions in real time
barnShared tools -- templates, validators, sprint detection
millFormat conversion -- export to PDF, CSV, slides, 26 formats
siloKnowledge storage -- reusable claim libraries and packs
harvestAnalytics -- cross-sprint patterns and prediction scoring
orchardOrchestration -- multi-sprint coordination and dependencies
grainulationUnified CLI -- single entry point to the ecosystem

Releases

See CHANGELOG.md for release history.

License

MIT

About

Shared template library for the Grainulation ecosystem. 17 prompt templates, zero dependencies.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages