// Writes public/*.html from one place (one source of copy + legal facts per site). Run after editing: node tools/pages.mjs
// Copy rules: no em dashes, no income promises ("Ad credits buy advertising, not income."), never an earnings cap,
// wallets = "SafePal or any other crypto wallet", one-time Boosts, never a subscription. Numbers that Marty has not set are
// filled in live from /api/config by the page scripts (data-cfg spans) and labelled as proposals there.
import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const PUB = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', 'public');
const SITE = 'https://viraladsource.com';
const V = { css: 1, common: 1, page: 1, chat: 1 };
const F = { co: 'TrustClickz', updated: 'November 16, 2026' };
const FONTS = 'https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap';
const I = n => ``;
const cfg = (k, d) => `${d}`; // filled from /api/config
function head(o) {
const t = o.title, d = o.desc, url = SITE + o.path;
return `
The buyer came in through your reshare link. The contract pays you ${cfg('cut', '20%')} of that Boost in POL in the same transaction as the sponsor line. Nobody holds it; anyone can check it on Polygonscan.
${I('verify-shield-check')}
Level 2 · POL from the reward pot
A verified new member from your branch
Someone brand new to the whole network joins through your link and confirms their email. Once the checks pass, ${cfg('signup', '$0.25')} in POL is paid from the reward pot to your wallet, up to ${cfg('cap', '10')} a day. Bigger tiers are credited at once and withdrawable after ${cfg('lockDays', '14')} days.
${I('ledger-list')}
Level 3 · ad credits
Real views from your branch
Views are the easiest thing to fake, so they earn ad space only: ${cfg('creditsPer', '10')} credits per ${cfg('creditsViews', '100')} verified views, spent on your own ad. Ad credits buy advertising, not income.
How a reward is verified
1
Every reshare link is unique to the resharer, so each click carries whose branch it came from.
2
The result happens: a Boost is bought on chain, or a new member confirms their email.
3
Real-time checks: brand new on the network hub, not the resharer's own device, IP or wallet, no throwaway email, daily cap, fraud score.
4
The site signs a voucher for the reward. The contract checks the signature and pays. Voucher and payment both show on the public ledger.
Where the POL comes from: ${cfg('pot', '10%')} of every Boost goes into the reward pot by the contract, so rewards can never exceed what came in. Visits alone never create new money.
`;
// ---------------------------------------------------------------- front page
page('index.html', { path: '/', nav: '/', title: 'ViralAdSource | Every ad has a source. Watch yours travel.',
desc: 'Post a text ad free. Anyone can reshare it with their own link, and every reshare grows a new branch. See the whole family tree of your ad: who passed it on, how far it went, where the views came from.',
ld: { '@context': 'https://schema.org', '@graph': [{ '@type': 'WebSite', name: 'ViralAdSource', url: SITE + '/' }, { '@type': 'Organization', name: 'ViralAdSource', url: SITE + '/', logo: SITE + '/art/icon-192.png' }] } }, `
Part of the Crypto Team Build Network
Every ad has a source. Watch yours travel.
Post a text ad free. Anyone can reshare it to their own people, and every reshare grows a new branch. You see the whole family tree of your ad: who passed it on, how far it went, where the views came from.
One free account across the network. Sign in with InstantAdPay or LinkSpin.
How an ad spreads from its source
Not five levels down your own team. Out through anyone who thinks it is worth passing on.
${I('post-write')}
01 · Post
Write your ad at the source
A headline, two lines and your link. One active ad is free. Your link can be a LinkSpin spin link so every click is tracked.
${I('reshare')}
02 · Reshare
Others pass it on
Members reshare ads they like to their own pages and lists with their reshare link. Each reshare is a new branch on your tree.
${I('branch')}
03 · Credit flows back
Resharers are rewarded for results
Real views earn ad credits. A verified new member or a Boost sold through a branch pays that resharer in POL on Polygon. Shares alone never pay: results do.
Boosted ads first, then this week's movers by new reshares and verified clicks. Open an ad to reshare it with your own link.
Loading the board...
Featured with credits
Members who earned ad credits through their reshares spend them here.
Post at the source, track it in LinkSpin
Point your ad at one of your LinkSpin spin links. One free ad then rotates every page you promote, and every branch of your tree shows up in your LinkSpin Reports as its own source.
Only your own spin links can be picked. LinkSpin confirms it on every save.
Each reshare link tags the click with the resharer, so LinkSpin shows which branch brought each sign-up.
Sign in once with InstantAdPay or LinkSpin. Your network account already works here.
Your ad's family tree, live
Most ad sites give you a view count. Here you see the route: which reshare carried your ad furthest, which branch went quiet, and which page of yours the clicks landed on.
Branch by branch: who reshared, when, and what each branch brought in
Furthest reach: how many steps from the source
Clicks by page when your link is a LinkSpin spin link
A share alone is never paid, because anyone can claim a share. What your branch actually causes is paid, and the bigger the result, the stronger the proof.
${REWARDS}
Boost the source
Want a head start? A Boost puts your ad at the top of the reshare board for ${cfg('boostDays', '7')} days, so more people see it and pass it on. One-time, never a subscription.
Paid in POL by smart contract with SafePal or any other crypto wallet. The split is in the contract and every payment is on the public ledger.
Boost
${cfg('boostUsd', '$5')}
paid once in POL at the live rate
Top of the reshare board for ${cfg('boostDays', '7')} days
${cfg('levels', '5 x 5%')}: sponsor line share, paid in the same transaction
${cfg('cut', '20%')} to the resharer whose branch sold it, ${cfg('pot', '10%')} to the reward pot
Every Boost and every split, each linked to its Polygon transaction, and every sign-up reward.
Hunt it on PolHunter
A find code hides in one of the three "How an ad spreads" steps.
`, ['front.js']);
// ---------------------------------------------------------------- an ad through a reshare link
page('ad.html', { path: '/s/', nav: '', noindex: true, title: 'An ad on ViralAdSource', desc: 'A text ad on ViralAdSource. Reshare it with your own link and grow a new branch.' }, `
On ViralAdSource
Loading the ad...
Pass it on
Reshare this ad with your own link. Your link is unique to you, so everything that comes through it is booked to your branch. A share alone is never paid: only verified results are.
`, ['adpage.js']);
// ---------------------------------------------------------------- my ad tree (dashboard)
page('my.html', { path: '/my', nav: '/my', noindex: true, title: 'My ad tree | ViralAdSource', desc: 'Your ad, its family tree, your reshare links, ad credits and rewards.' }, `
My ad tree
Sign in
Use your network account (one account across the network), or sign with your wallet: a free signature that cannot move funds.
Wallet: SafePal or any other crypto wallet on Polygon. Not a member yet? Join free.
Post your free ad
Your source link
Family tree
no ad yet
Branch
Step
Reshares under it
Views
Clicks
Sign-ups
Boosts
Post your ad, then share your source link. Every reshare shows up here.
Views and clicks are verified (one per visitor per 24 hours). Sign-ups are new network members who confirmed their email. When your link is a LinkSpin link, LinkSpin Reports split clicks and sign-ups by branch (s2 = resharer, s3 = reshare link).
Ads I reshared
Ad
Step
Views
Clicks
Sign-ups
Boosts
Link
Open any ad on the reshare board and tap "Reshare this ad".
Credits and rewards
When
What
Amount
Status
Nothing yet.
Ad credits buy advertising, not income. Nothing is promised.
`, ['wallet.js', 'my.js']);
// ---------------------------------------------------------------- boost
page('boost.html', { path: '/boost', nav: '/boost', title: 'Boost your ad | ViralAdSource', desc: 'A one-time Boost puts your ad at the top of the reshare board. Paid in POL; the contract splits it in the same transaction.' }, `
One-time, never a subscription
Boost the source
A Boost puts your ad at the top of the reshare board for ${cfg('boostDays', '7')} days per Boost, so more people see it and pass it on.
Boost
${cfg('boostUsd', '$5')}
paid once in POL at the live rate
Where the POL goes
The VASShop contract splits every Boost in the buyer's own transaction. Nobody holds it.
Sponsor levels pay people in your network sponsor line who have bought a Boost; anyone who has not is passed over and the share goes up the line (up to 20 places). A level nobody qualifies for goes to the company. If you did not arrive through someone's reshare link, the resharer share goes to the company.
Pay with SafePal or any other crypto wallet on Polygon. Anything you send above the exact price comes back in the same transaction. A Boost buys advertising, not income.
`, ['wallet.js', 'buy.js', 'boost.js']);
// ---------------------------------------------------------------- rewards
page('rewards.html', { path: '/rewards', nav: '/rewards', title: 'How resharers are rewarded | ViralAdSource', desc: 'A share alone is never paid. Boosts sold, verified new members and real views through your branch are, and every reward is checked first.' }, `
Results only
Three ways a reshare is rewarded
A share alone is never paid, because anyone can claim a share. What your branch actually causes is paid, and the bigger the result, the stronger the proof.
${REWARDS}
What can hold a sign-up reward
The person was already in the network (on any network site).
Their email was never confirmed, or it is a throwaway address.
The sign-up came from your own device or connection.
You reached the daily cap.
The sign-up looks automated: filled in seconds, many from one connection.
A held sign-up is looked at by a person. A rejected one never pays.
Where to see it
Your rewards and credits are on My ad tree. Every paid reward and every Boost split is on the public ledger with its Polygon transaction.
`, ['join.js']);
// ---------------------------------------------------------------- ledger + contract
page('ledger.html', { path: '/ledger', nav: '/ledger', title: 'Live ledger | ViralAdSource', desc: 'Every Boost, every split and every sign-up reward on ViralAdSource, each with its Polygon transaction.' }, `
Proof, not promises
Live ledger
Boosts and their splits
When
Buyer
Paid
Resharer
Sponsor levels
Reward pot
Company
Proof
No Boosts yet.
Sign-up rewards
When
Resharer
Kind
Amount
Status
Proof
No rewards yet.
`, ['ledger.js']);
page('contract.html', { path: '/contract', nav: '', title: 'The contract | ViralAdSource', desc: 'VASShop on Polygon: who it pays, the reward pot and its rules, live from the chain.' }, `
VASShop on Polygon
The contract
Every Boost is paid to the contract, which splits it in the same transaction. Sign-up rewards come only from the reward pot, which only Boosts fill.
Loading...
The rules it enforces
Every purchase needs an order signed by the site's keeper key, naming the buyer's sponsor line and the resharer. Each order can be used once.
The resharer cut, the sponsor levels, the reward pot slice and the company are paid in the buyer's own transaction. A payment that cannot be delivered waits in the contract for that wallet to claim.
A sign-up reward needs a keeper-signed voucher, used once, under the per-reward cap and the per-wallet daily cap, and never more than the pot holds.
No proxy, no owner withdrawal of the pot, no self-destruct. The owner is Marty's Tangem hardware wallet.
`, ['contract.js']);
// ---------------------------------------------------------------- promote + admin
page('promote.html', { path: '/promote', nav: '', title: 'Promote ViralAdSource | Promo kit', desc: 'Links, creatives and copy for ViralAdSource with your network username.' }, `
Promo kit
Promote ViralAdSource
Your links, creatives and copy, filled in with your network username.
ViralAdSource (viraladsource.com) is run by ${F.co}. By using the site you agree to these terms.
Accounts
You sign in with your network account or your wallet. One free text ad per member. You keep your wallet's keys; nobody here will ever ask for your recovery phrase.
Your ad and your link
Your ad and link must be yours or ones you have the right to use and must lead to a lawful page that loads. No adult content, malware, phishing, deceptive offers, hate or anything illegal where you or your visitors live. No link shorteners other than your own LinkSpin spin links. We can pause or remove an ad that breaks these rules.
Reshares
Anyone can reshare a live ad with their own reshare link. Resharing never earns anything by itself. Rewards are given only for the verified results described on the Rewards page and only after the checks there pass. We can hold, reject or reverse a reward we believe came from fraud, self-dealing, automation or a duplicate person, and we can close accounts that try.
Ad credits
Ad credits are advertising on this site for your own ad. They have no cash value, cannot be sold, transferred or withdrawn, and can expire if the program changes.
Boosts and payments
A Boost is a one-time purchase paid in POL on Polygon through the VASShop smart contract, which splits the payment in the same transaction as shown on the Contract page. Blockchain payments are final and cannot be refunded or reversed. Nothing here is a subscription.
No promise of income
What you buy is advertising. We do not promise any income, views, sign-ups or results. See the Earnings Disclaimer.
Changes
We can change these terms and the program's numbers going forward; a change never alters a payment already made on chain.
ViralAdSource sells advertising. Ad credits buy advertising, not income. Nothing is promised.
Any POL paid to resharers or sponsors depends entirely on what other people choose to buy or do. Most people earn nothing or very little. Do not spend money you cannot afford to lose, and never treat a Boost as an investment.
Crypto prices change. A reward or payment priced in dollars is paid in POL at the price when it is paid; its value can go down afterwards. Network fees apply to every transaction.
Any example on this site is an illustration of how the contract splits a payment, not a prediction of what you will receive.
${F.co} runs ViralAdSource. Here is what we keep and why.
What we keep
Your wallet address and network username, to run your account and pay what the contract pays.
Your text ad and the reshare links you make, with their counts.
For someone who joins here: their email (to confirm it and to create their network account), the reshare link they came through, and hashed device and connection keys used for fraud checks. We never store raw IP addresses.
Visit and click records with hashed visitor keys, kept 15 days, to count verified views and clicks.
Sharing
Your account is part of the network: your username, wallet and sponsor are shared with the network hub so one account works on every network site. We do not sell personal data. Blockchain transactions are public by nature.
Your choices
Ask network support to delete your data; the network hub removes it from every network site, except what the blockchain or the law keeps.