mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-04-06 10:26:49 +00:00
2.0 KiB
2.0 KiB
Comprehensive API & Architecture Reference Available
Another agent has written a complete reference document covering the entire webinstall.dev + webi-installers public API, architecture, and internals.
Where to find it
The full documentation is at:
/Users/aj/.claude/projects/-Users-aj-Projects-claude-webinstall-dev/memory/api-reference.md
What it covers
- Three domains — webinstall.dev, webi.sh, webi.ms: routing, hostname logic
- All API endpoints — /api/releases, /api/installers, /api/stats, /api/debug
- Every query param, path param, header, response format
- JSON and TSV response schemas with examples
- User-Agent detection — exact regex patterns, OS/arch/libc mapping tables
- CLI vs browser detection — how the same URL serves scripts or HTML
- Installer script generation — complete flow from HTTP request to rendered script
- Bootstrap templates — curl-pipe-bootstrap.tpl.sh/.ps1 structure and variables
- Package structure — releases.js, install.sh, install.ps1 patterns
- Release normalization — how OS/arch/ext are auto-detected from filenames
- Platform fallback chains — arm64→amd64, armv7l→armv6l, triplet matching
- 28 template variables — complete reference with examples
- Security & validation — input sanitization, shell injection prevention
- Statistics tracking — file-based stats paths and formats
- Configuration — env vars, URL derivation, dotenv files
- Dual-purpose HTML/script trick — how webi.sh serves both browsers and shells
- Install path conventions — ~/.local/opt, ~/.local/bin, envman integration
- Complete request flow examples — browser, curl|sh, and API call traces
Source codebases analyzed
/Users/aj/Projects/claude/webinstall.dev/(main branch) — the Express server/Users/aj/Projects/claude/webi-installers/(main branch) — installer packages + core _webi/ infrastructure
Read the full doc before making architectural decisions for the Go rewrite.