China-oriented PC components product facts repository.
This repository keeps two product-fact sources side by side:
open-db-upstream/open-db/- upstream BuildCores OpenDB (nested submodule)open-db-cn/- China market incremental product facts (reviewed additions)
The union of these two directories is the effective CN product-facts view.
open-db-upstream/- nested git submodule trackingbuildcores/buildcores-open-dbopen-db-cn/- CN incremental facts (same category-style layout)schemas/- schema definitionstools/build_product_facts.py- builds combined index from upstream + CN layersviewer/- static viewer for generated index
- No retail prices, promotions, or inventory in product facts.
- Every real product must map to one stable
product_idin downstream identity mapping. - CN incremental facts must keep source evidence and pass review before promotion.
This repo no longer merges upstream directly into main.
Use nested submodule updates instead:
./scripts/sync_upstream.shThis updates the pointer of open-db-upstream to latest upstream commit.
python tools/build_product_facts.pyOutput:
dist/product_facts/index.jsondist/product_facts/index.csvdist/product_facts/stats.json
python -m http.server 8000
# open http://localhost:8000/viewer/