Files
yourprogrambuilder/README.md
T
martbost a8a1a8eec7 YourProgramBuilder, the Seed Bed (Marty 2026-11-17: "keep fleshing it out"): STAGING build
Plant a program free (referral link with {id}, link check green / yellow / red, daily recheck, reports), members save their
referral IDs in its packet, a sponsor-first link (member page / ?r= / the hub sponsor line, then the planter), the sprout meter
to REVIEW_SAVES (DEFAULT 25) -> Marty's review queue -> approved packets exported for the CTB builder / DownlineHydra wild heads
with every saved ID. Dormant old programs confirmed by their owner, old-link redirects (oldrefs), Spotlight on YPBShop (NOT
deployed; DEFAULT $10 / 1,000 views, 20/5/5/5/5, company 60), verified views with Spotlight delivery, trust pack (ledger,
contract, toasts, Telegram card, terms / disclaimer / privacy, TrustClickz only), network footer row, chatbot, promo kit,
Guides, PolHunter slot, LinkSpin tracked-link and zone hooks, AI writer through the hub. Seed-catalog look from the approved
mockup. Tests: qa/unit.test.cjs 33/33, qa/e2e.mjs 121/121 on a local anvil chain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 09:30:59 -06:00

45 lines
3.6 KiB
Markdown

# YourProgramBuilder: the Seed Bed
yourprogrambuilder.com rebuild (Marty 2026-11-17: "I like the approach on YourProgramBuilder. Go ahead and keep fleshing it out more.").
"Bring your program. The network grows it."
- **Plant**: a network member plants one program free (name, referral link with `{id}`, their own ID, what it is, free or paid to
join, optional contract address). The link check (`linkcheck.js`): green shows, yellow waits for Marty's queue, red is refused;
every live packet is rechecked daily; `REPORT_HOLD` member reports send it back to the queue. Programs already in the CTB builder
(`seed/builder.seed.json`, the DownlineHydra snapshot) and network sites are refused.
- **Sprout**: members save their referral ID in any packet (a whole pasted link works). A visitor through a member (their page
`/<username>`, or `?r=`) sees that member's link first; a signed-in member sees the nearest saved ID up their hub sponsor line;
then the planter's ID (`seedbed.sponsorLink`, DownlineHydra's wild-head rule).
- **Transplant**: at `REVIEW_SAVES` (DEFAULT 25) saves from distinct confirmed network members (the planter counts as one) the packet
enters Marty's review queue (`/admin`). Approved packets are exported by `GET /api/admin/export` in the CTB builder's form
(`{affiliateid}`) with every saved ID (username, hub id, ID). This site never writes to another site: the add on CTB /
DownlineHydra is done there.
- **Spotlight** (DEFAULTS, the decision pack is unanswered): one-time $10 = 1,000 guaranteed verified views for one packet in the
Spotlight places (top row of the bed, the strip on packet and member pages), on YPBShop (`../contracts`, NOT deployed): 20% sponsor,
5% each levels 2 to 5, 60% company, immutable split, keeper-signed orders, no owner withdraw, 48-hour SKU timelock. Members earn
free: anyone in the hub line with a linked wallet is paid (compression in `/api/my/order`).
- **Old site**: old links (`/?<old>`, `index.php`, `splashpg.php`, `lcp.php`, `join.php`, the old member pages) 301 through
`oldrefs.json` (`POST /api/admin/oldrefs`). Old member programs come in as dormant packets (`POST /api/admin/dormant`, hub id
required) that only their owner can confirm with a `{id}` link.
Network rails: hub membership + usernames (`hubpeople.js`, `hubline.js`), network sign-in (`networksso.js`, the site only needs to
be in the hub's `HUB_SSO_SITES`), hub events (`hubevents.js`), contract binds report (`hubreport.js`, `HUB_ENABLED`), trust pack
(`/ledger`, `/contract`, toasts, Telegram card per Spotlight in `proof.js`, terms / disclaimer / privacy naming TrustClickz only),
network footer row from the hub (`netsites.js`), chatbot (`chatbot.js` on the shared `chatcore` / `kb` / `netkb`), promo kit
(`/promote`, `/api/promo-kit`), Guides (`/guides/*`), PolHunter embed slot (front page steps), LinkSpin tracked saved links
(`lstrack.js`, `LS_TRACK=1` + a LinkSpin `ypb` partner) and ad zones (`LS_ZONES`), the AI writer through the hub
(`hubadwriter.js`), the DownlineHydra "New in the network" feed (`/api/spotlight-feed`, not wired on DownlineHydra yet).
MySQL is the store (`docstore.js`, `DOCSTORE_URL`); files only for local tests.
## Tests
```
node qa/unit.test.cjs # 33: link-check colours, planting rules, ID cleaning
node qa/e2e.mjs # 121: the whole product on a local anvil chain with the real YPBShop (needs forge build in ../contracts)
```
## Staging
ypb.saasy.top (Coolify, own MySQL). STAGING=1, PAYOUTS=0, HUB_JOIN=0, HUB_ENABLED=0, no mail, no contract, no Telegram.
Art: `python tools/pages.py` writes the pages; `node tools/art.mjs` renders the mark, OG image, proof cards and the promo kit.