Commit Graph

53 Commits

Author SHA1 Message Date
martbost 0a30b1da60 Link-domain pool by channel + safety checks, hosted page images + provider allowlist, Reports pages and zones sections
Item 1 (domains.js): every short link domain in linkDomains gets a channel (email / messaging / social / reserve)
via the new linkDomainChannels site setting ("host:channel,..."; default order email, messaging, social, email,
reserve). Checks every 6 h + Admin > Link domains "Check now": Google Safe Browsing v4 when GSB_API_KEY is set
(unknown otherwise), URIBL + SURBL DNS lists (answer = listed, NXDOMAIN = clean, 127.0.0.1 or errors = unknown),
and a TelegramBot-UA reachability probe. Flagged or listed = BURNED: out of domains.live() (no new links or
pages on it, existing /r/ codes still resolve), admin told once via telegramAdminChatId or ADMIN_EMAIL.
State in DATA_DIR/domains.json. New: GET /api/my/link-hosts, GET+POST /api/admin/domains, admin pane.
/api/my/pages now hands out hosts from domains.live().

Item 2 (pages.js, formrestyle.js): POST /api/my/pages/upload (raw image body, multipart, or JSON base64) for
png/jpg/webp up to 2 MB, 50 per member, magic bytes checked, sharp re-encode when installed, stored under
DATA_DIR/uploads/pages/<owner-hash>/<id>.<ext>, served at /u/pages/... immutable for a year; delete via
POST /api/my/pages/images/<id> {remove}. Pages editor: Upload image button beside the image field + a strip of
the member's images. Provider allowlist (17 autoresponders, Sendy by /subscribe path) exposed as `providers`;
the editor says "Recognised: AWeber" or "Unknown provider: plain post to <host>" at paste time; pub() carries
formProvider. Unknown hosts still allowed when parse-or-refuse passes.

Item 3 (zonereport.js, pages.summary): /api/my/reports returns {spins, pages, zones} (spins still spread at the
top level) for the chosen days; Pages and Zones sections on /reports with 30-day bars, totals, per-item tables,
phone width checked. Zone numbers are a read-only view over zones.json (zones.js untouched).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-10 11:28:47 -05:00
martbost 0938e89fbe Wallet: payout rows name the buyer (@username) instead of member #N (Marty 2026-10-09)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 10:06:23 -05:00
martbost 4be26989da Join angle pages: above-the-fold layout (heading over the video, lead and bullets beneath, card on the right, sticky)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 08:55:59 -05:00
martbost 616e8e5878 Join hooks: the five LinkSpin angles are server-known (squeeze layout, og copy, angle cookie, link stats) and the page shows the angle video with a join call to action
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 08:49:24 -05:00
martbost bda5bcb2a9 Promo texts: the last payout-led line rewritten to the links hook
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 07:06:21 -05:00
martbost a63aa40322 Fresh LinkSpin-only hook angles (links, pages, zones, audiences, stack): join-page hooks, promo angle list, five new hook videos on Spaces, link tokens remapped; old IAP-style hook keys kept alive for shared links
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 07:00:28 -05:00
martbost 3eda2fe0cc Blog surfaced (header nav, home strip, footer) + five seed articles with kit-derived covers and the seed/publish tooling; zones: network tier default OFF until NAS is switched on at the end of testing
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-09 06:24:55 -05:00
martbost 0a6e219229 Promo tools: the five LinkSpin hook videos (16:9 + 9:16 + poster on Spaces) with matched angle links and captions
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 18:15:48 -05:00
martbost c515a01441 Pages domain: member pages publish at the root of site.pagesDomain (lookfirst.page), /p/<slug> kept everywhere; the pages host serves nothing else (/ -> app, unknown paths 404); Pages screen shows the new URLs
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 17:40:05 -05:00
martbost 92c5b777da First-party retargeting: audiences (automatic 'My visitors' fed by pages + zones, custom pixel audiences via /p.js + /p.gif, ls.vid cookie + 24 h soft key), include/exclude audience targeting on banner/text/login campaigns, zone tag sends credentials with CORS echo, audience-targeted campaigns never syndicate, Audiences panel on Zones and selector on Ads
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 16:42:02 -05:00
martbost b379f4adda Promo tools for LinkSpin: copy rewritten to the real product and ladder (rotator/pages/zones, $10 door to $500, 1 credit = 1 cent, 2/5 qualification), IAP hook videos removed (LinkSpin's in production), new 14-piece banner kit under /kit (kie.ai key visuals + Rajdhani/Manrope typesetting) with generator scripts in tools/
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 16:22:51 -05:00
martbost f64b7e1dec More panes inside the Control Room: /tools mounts the shell (rail, topbar, strip), legacy site.css layered under cr.css + tools.css light restyle, CR tabs for Start/Promo tools/Training/Pipeline/My line/Profile, shell-owned sign-in; Promo tools gets its own rail entry
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 16:14:12 -05:00
martbost ef06cd4baa /my redirector as an external script (CSP allows no inline scripts)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 15:40:10 -05:00
martbost 8ec82bd282 Retire the classic /my dashboard: control-room screens take over (links/ads/credits/wallet/team), leftover panes (welcome tour, line broadcast, pipeline, promo tools, training, profile) live at /tools as 'More' in the rail; /my redirects by #pane; every link and email retargeted
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 15:37:00 -05:00
martbost 4ac95bd0c0 Zones: ad-blocker proofing. House creatives served as /art/house-<slot>.svg (EasyList blocks any URL with an IAB size token like -728x90.), zone owners told not to wrap the tag in ad-named elements
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 15:00:50 -05:00
martbost c328d03fa0 tools: niche hero generator (kie.ai prompts per niche) + packer, so sets can be regenerated or extended
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 14:43:18 -05:00
martbost 9f4c913ae6 Pages: niche hero SETS (4 photographic heroes per niche served from /niches, thumbnail picker in the Look panel, design.hero index) + new Gaming niche
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 14:41:29 -05:00
martbost f59b3d2771 Pages: split 'Brand | Tagline' titles from the scan (brand names the site, tagline is the headline; generic 'Home'/'Welcome' dropped) instead of printing the raw title with its separator
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 14:21:34 -05:00
martbost d0639aea9e Zones table: wider Quality column, wrapping status pill, action buttons no longer overlap; side panel drops below the table under 1400px
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 07:45:11 -05:00
martbost a0f843d921 Signed /api/partner/registry: InstantAdPay pushes member rows live; new people become shell accounts with their line, existing shells gain username/wallet/sponsor
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 07:25:17 -05:00
martbost d215c025b0 /api/me sponsor fallback also capped at the on-chain member count (the Credits screen activates from /api/me)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 06:47:06 -05:00
martbost ab65439ad4 Sponsor fallback never names a position the contract does not have yet: on a fresh contract the first member joins with sponsor 0 and becomes #1 (Marty's activate(1) reverted 'Unknown sponsor')
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 06:41:54 -05:00
martbost 55584a7007 Wallet sends carry an explicit gas limit from the server's estimate (wallets that cannot estimate showed 'unable to get a gas fee' on buy and activate); Control Room rail expanded by default with a remembered Collapse toggle
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 06:25:06 -05:00
martbost 547c7ba465 Pre-launch whitelist LS_TESTERS: only listed emails/usernames can request or verify a sign-in code; public pages stay visible with the curtain down (Marty 2026-10-08)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-08 06:16:12 -05:00
martbost a6bfa1ba42 Page designer on the Branded Voice design system: palette x design (dark/light/editorial/ignition) x layout (stacked/split hero) + six niche presets with house hero images, procedural split visual with price chip, Look panel in the editor; ad zones + banner campaigns gain 336x280, 250x250, 125x125, 120x600 with house banners
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 16:40:21 -05:00
martbost 75d95d84d6 Scanner and rotator accept bare domains (scheme added for them); clearer scanner error
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 16:27:17 -05:00
martbost 27b3727a9f Link domains are never curtained: spin links redirect and the mini-sites answer while linkspin.app stays covered (Marty wants to test traffic before launch)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 16:24:26 -05:00
martbost f26b3d6391 No font ligatures on the public pages and shell: JetBrains Mono merged '//' so pasted URLs looked like 'https: /site' (Marty 2026-10-07)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 16:15:30 -05:00
martbost eab7106e65 Closed sign-ups no longer block the email code for members who already have an account (Marty was refused on production)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 16:11:09 -05:00
martbost 8b0e68fb0d Site switch coachMail: 0 turns the stall-nudge mailer off (pre-launch production carries imported shell accounts that must not be nudged)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 16:05:18 -05:00
martbost 63440f7213 LinkSpin badge set replaces the InstantAdPay images (v3); feed descriptions without emoji; legacy Qualified Start calculator uses the flat $25-$500 ladder and the legacy composer drops the retired ad types; share image ring redrawn
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 09:19:02 -05:00
martbost 3c52e2704a Contract, live ledger, terms, privacy and disclaimer on the Instrument scheme; contract page shows chain totals and never falls back to another contract's source; terms and privacy updated for links, pages, zones and leads; share images point at the LinkSpin image; toolkit banners use the LinkSpin house set
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 09:15:03 -05:00
martbost a50640c890 Credits screen in the Control Room (/credits): package picker from the catalog, POL quote, link wallet, buy with the sponsor hold and balance pre-flight, switch on payouts, card on-ramp, purchases from the chain; first-run username step in the shell; new join page on the Instrument scheme with sponsor chip, hook angles rewritten for LinkSpin, bare /join route; legacy angle OG copy corrected
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 09:09:38 -05:00
martbost dfb677bb09 New public home on the Instrument scheme: working demo (paste up to three pages, get a live spin link on a link domain, email code to keep it; demo spins are per browser, five per IP per hour, expire after 24 h unless claimed at sign-in), live strip from the chain and the rotator, the three free tools, the split card, the six-package ladder read from the catalog, LinkSpin share image; pub.css for every public page
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 08:58:57 -05:00
martbost ad744d8c0f Site host from one module: host.js exports SITE_HOST/SITE_URL and every module, email, Telegram post, QR, ad click URL and OG tag reads it (no more hard-coded test hostname); public pages carry {{SITE_URL}} filled at serve time; frame check carries the curtain pass for our own hosts so a test ad can point at a spin link; stale IAP sitemap removed
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-07 08:52:04 -05:00
martbost 6da444c790 Invite page: inline HTML escape (esc was not in scope)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 19:45:36 -05:00
martbost 15f663a56d Invite link: GET shows a sign-in button, POST spends the token (link previews were consuming it)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 19:34:34 -05:00
martbost 418b89956c Tester invite: admin-minted one-time sign-in link (/api/admin/invite -> /welcome/<token>, 24 h, creates the account, bypasses the sign-up gate)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 19:21:42 -05:00
martbost 75758bf9ee Tiles get sparklines and delta chips (CR.tile/sparkline/delta): Reports unique + bots by day, Links 7-day clicks, Ads 7-day hourly views; bar charts capped in width, peak highlight only with 3+ days
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 19:14:37 -05:00
martbost 6091f0b82a Instrument scheme across the Control Room: light workspace on a blueprint grid, dark chrome rail/topbar/status strip, signal-orange primary, gradient charts, corner-bracket tiles, LED readouts, gauges; /api/my/strip
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 19:10:03 -05:00
martbost 274c8fd78c Ads screen in the Control Room shell: buy banner/text/login ads, delivery across viewer, zones and network, earn viewer; login-ad gate after sign-in; member types limited to the three; welcome credits granted from the shell too
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 18:11:17 -05:00
martbost cfb9ed13d0 Zones guardrails: origin lock to the declared site, warm-up then earning, hold under 40% viewable, admin Zones pane with pause
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 17:38:08 -05:00
martbost e36b590788 Zone endpoints pass the curtain (embeds on members' sites must load while the app is curtained)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 17:21:08 -05:00
martbost e66a38dd74 Zones: ad slots on members' own sites (LinkSpin campaign > Network Ad Space > house waterfall, viewable-impression credits, /zones screen)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 17:20:19 -05:00
martbost 53f5d51821 Pages: bridge, review and squeeze pages from a scan plus an angle; parse-or-refuse forms; member-owned leads with CSV; served at /p/<slug> on every domain under a real CSP; lead event on the postback rails
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 16:06:11 -05:00
martbost 8e1ddb892f Control Room: shared shell with in-shell sign-in, Reports, Team and Wallet screens; postback rails (click ids, macros, lsid attribution, conversions, outbound + inbound postbacks with SSRF guards)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 15:52:07 -05:00
martbost 688d3c4bb5 Control Room front end, first screen: /links workspace on the rotator API (tokens in cr.css)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-29 14:59:10 -05:00
martbost ca89d15c2a A curtain in front of the whole app
Work in progress should not be readable by anyone who wanders in. CURTAIN=<secret> puts a
contentless "Coming soon" card in front of every request — pages, APIs, the rotator, the
link domains — with noindex headers and nothing that names the product or what it does.

Opening the site once with ?k=<secret> drops a cookie that lifts it for that browser.
Unsetting CURTAIN opens the site again, so this never has to be picked back out of the code.

It sits at the very top of the request handler, ahead of the rotator and the link-domain
sites, so there is no path around it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-19 04:31:56 -05:00
martbost 0374b04f0d Default-deny outbound mail and a sign-up gate
This is a test area on a testnet contract, but it was seeded on 15 Sep with a copy of
InstantAdPay's live member list and it carried a working SendGrid key. On 18 Sep the
coach's stall nudges fired on schedule and emailed 95 real people from it. One of them
clicked through and opened a fresh account two hours later.

Nothing was misconfigured. Every send site checked mailer.hasKey(), the key was there,
so every send site got a yes. The default was wrong, not the plumbing.

OUTBOUND=on is now required before anything can leave: hasKey() is false without it,
send() rejects outright, and the two mailing loops (coach nudges, lead drip) never start.
SIGNUPS=closed shuts the three registration doors and reports signupsOpen:false, which
also drops the email-code card from the UI. Members already here keep their dashboards.

A missing env var means silence now, not delivery.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-19 04:29:08 -05:00
martbost 00ab223ce6 LinkSpin marks: wordmark in every header, LinkSpin logo and icon files, split brand strings replaced 2026-09-16 04:41:16 -05:00