// 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). 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: 2, common: 2, page: 2, 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 ` ${t} ${o.noindex ? '' : ``} ${o.ld ? '\n' : ''} `; } const tail = scripts => '\n\n' + scripts.map(s => '').join('\n') + '\n\n\n'; const page = (file, o, body, scripts) => fs.writeFileSync(path.join(PUB, file), head(o) + body + tail(scripts)); const REWARDS = `
${I('wallet')}

Level 1 · POL, same transaction

A Boost sold through your branch

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. A daily limit applies.

${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. 1

    Every reshare link is unique to the resharer, so each click carries whose branch it came from.

  2. 2

    The result happens: a Boost is bought on chain, or a new member confirms their email.

  3. 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. 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' }] } }, `

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.

The reshare board

Boost your ad to the top

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...

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

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}

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
  • Proof on Polygon, linked from the ledger
Boost my ad

Already a ViralAdSource member?

Sign in with your network account. Your account came across by email and your sponsor was kept.

Live ledger

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.

How rewards work

New to the network?

Join free with one account for every network site, then post your own ad here and watch it travel.

`, ['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

`, ['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.

A Boost buys placement only. Nobody needs to buy one to earn: sponsor levels pay the 5 nearest people in your network sponsor line who have a network sign-in and a linked wallet. Anyone without one is skipped and the share passes up to the next person who has. Levels left when the line runs out go to the company. If you did not arrive through someone's reshare link, the resharer share goes to the company. The split is fixed in the contract and can never change.

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.

`, ['static.js']); // ---------------------------------------------------------------- join + confirm page('join.html', { path: '/join', nav: '', noindex: true, title: 'Join the network free | ViralAdSource', desc: 'One free account for every network site.' }, `

Join the network free

One free account for every network site: InstantAdPay, LinkSpin, ViralAdSource and the rest.

By joining you agree to the Terms and Privacy. Already have a network account? Sign in.

`, ['join.js']); page('confirm.html', { path: '/confirm', nav: '', noindex: true, title: 'Confirm your email | ViralAdSource', desc: 'Confirm your free network account.' }, `

Confirming your email

One moment...

`, ['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

WhenBuyerPaidResharerSponsor levelsReward potCompanyProof
No Boosts yet.

Sign-up rewards

WhenResharerKindAmountStatusProof
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.

`, ['promote.js']); page('admin.html', { path: '/admin', nav: '', noindex: true, title: 'Admin | ViralAdSource', desc: 'Admin.' }, `

Admin

Status

Sign-ups (L2 checks)

IdStatusEmailResharerChecksAction

Pending-rewards ledger

IdToKindCentsStatusVoucher

Staging: mark a test member

Staging only. Lets a wallet post and reshare without a real network account.

`, ['admin.js']); // ---------------------------------------------------------------- legal (TrustClickz) const legal = (file, p, title, body) => page(file, { path: p, nav: '', bodyClass: 'legal', title: title + ' | ViralAdSource', desc: title + ' for ViralAdSource, run by ' + F.co + '.' }, `

Updated ${F.updated}

${title}

${body}

${F.co}. Questions: network support.

`, ['static.js']); legal('terms.html', '/terms', 'Terms', `

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.

`); legal('disclaimer.html', '/disclaimer', 'Earnings Disclaimer', `

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.

`); legal('privacy.html', '/privacy', 'Privacy', `

${F.co} runs ViralAdSource. Here is what we keep and why.

What we keep

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.

`); console.log('pages written');