TRIAL 2026-11-18
  • Python 46.9%
  • JavaScript 40.8%
  • HTML 12.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Travis Johnson 1017df934c Ham radio catalog (radios + antennas), features, eHam ratings, graph
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01X3rSFQDJYjX6bGw3aeA4iy
2026-10-28 00:48:12 -05:00
data Ham radio catalog (radios + antennas), features, eHam ratings, graph 2026-10-28 00:48:12 -05:00
schema catalog-graph: README, feature schemas, gitignore for raw scrapes/builds 2026-10-28 00:48:11 -05:00
scripts Pipeline scripts: fetchers, normalization prep, graph builder, domain rules, site builder 2026-10-28 00:48:11 -05:00
site SPA template, inventory planner core + UniFi/ham plugins, price model 2026-10-28 00:48:11 -05:00
.gitignore catalog-graph: README, feature schemas, gitignore for raw scrapes/builds 2026-10-28 00:48:11 -05:00
LICENSE catalog-graph: README, feature schemas, gitignore for raw scrapes/builds 2026-10-28 00:48:11 -05:00
README.md catalog-graph: README, feature schemas, gitignore for raw scrapes/builds 2026-10-28 00:48:11 -05:00

catalog-graph

Turns a vendor's product catalog (Shelly, Ubiquiti/UniFi, ham radio gear) into a typed "upgrade / downgrade / sidegrade" graph and a single-file browser SPA: for each product and each capability delta (+metering, +PoE budget, legacy->current, another band...), find the nearest product that realizes that delta while changing the least else, and say why you'd want it. The ham domain also carries an inventory/band-ledger planner and a hedonic price model.

Pipeline (per domain, data/<domain>/):

  1. fetch - scripts/shelly_fetch.py, scripts/ubiquiti_fetch.py, DXE/Shopify scrapes for ham -> data/<domain>/raw/ (not committed; re-fetchable) -> catalog.json
  2. normalize - scripts/shard.py splits the catalog; an LLM fills each record per schema/features*.md -> data/<domain>/features/<slug>.json (ant_prep.py / shopify_ant.py / ant_post.py for ham antennas, eham_join.py adds review ratings)
  3. graph - scripts/build_graph.py data/<domain> with domain rules in scripts/rules/<domain>.py -> graph.json; pairs_from_features.py -> pairs.json
  4. site - scripts/build_site.py data/<domain> site/<domain>.html (inlines site/template.html + inventory.js/inv_<domain>.js/pricing.js)
python3 scripts/build_graph.py data/ubiquiti
python3 scripts/build_site.py data/ubiquiti site/ubiquiti.html && open site/ubiquiti.html

The built graph.json / features/ for each domain are committed; raw scrape caches and built HTML are not. Personal inventory is stored outside the repo.

License: MIT (code). Product data belongs to the respective manufacturers.