@promethean-os/report-forge
v0.0.1
Published
Create terse, actionable Markdown reports from GitHub issues using a **local LLM** (Ollama by default).
Downloads
5
Readme
@promethean-os/report-forge
Create terse, actionable Markdown reports from GitHub issues using a local LLM (Ollama by default).
- Native ESM, functional style, immutable transforms.
- Flat package,
.jsextension imports in TS. - Tested with AVA.
- License: GPL-3.0-only.
Install
pnpm -w add -D @promethean-os/report-forgeCLI
report-forge riatzukiza/promethean docs/reports/promethean_issues_report.mdRequires an Ollama server (default http://127.0.0.1:11434) and optional GITHUB_TOKEN for higher rate limits.
API
import { generateReport } from '@promethean-os/report-forge'
import { ollama } from '@promethean-os/report-forge/dist/lib/ollama.js'
import { github } from '@promethean-os/report-forge/dist/lib/github.js'
const gh = github(process.env.GITHUB_TOKEN)
const issues = await gh.listIssues('riatzukiza/promethean', { state: 'all' })
const md = await generateReport({ repo: 'riatzukiza/promethean', issues }, { llm: ollama() })Philosophy
- Separation of concerns: fetch → summarize → render.
- Pure functions: transform data without mutation.
- Templates last: the LLM polishes content, not control structure.
Tests
pnpm --filter @promethean-os/report-forge testConfig
Ollama: setOLLAMA_BASEandOLLAMA_MODELvia wrapper if you forkollama()GitHub: setGITHUB_TOKEN
