PoQ Adoption Kit Β· v1.0 Β· Apache 2.0 + CC-BY-4.0
Adopt Proof-of-Quack on your US site in 5 minutes π¦βοΈπΊπΈ
Why adopt
- Replaces ads. Your site monetizes via consensual browser compute instead of behavioral profiling and third-party trackers.
- Taxes the adversary. Bulk-scrape bots, prompt-injection probes, and PRC/RU/etc.-origin connections pay 10β30s of compute per request, accruing to your Track B ledger. That ledger maps directly to your federal income tax payment via EFTPS β dollar-for-dollar liability extinguishment.
- Hardens against scrape. Tiered difficulty makes bulk recursive mirroring (wget -r, HTTrack, naΓ―ve scrapy) cost ~20s per page instead of ~50ms. A 1,000-page mirror costs ~5 hours of CPU instead of seconds.
- No central authority. You self-host. No third-party mining-pool URL. No wallet substitution risk. No NIGHTBOX dependency. NIGHTBOX is the spec author and registry curator β never the custodian.
- Federal-recognition path. Adopter list is published at /.well-known/poq-adopters.json. Federal program offices (OSTP, ONCD, CISA, DOGE, Treasury) are positioned as targets for voluntary-recognition tier badges.
The five-step adoption
1 Drop in the reference code
Clone or copy three files from this domain into your site:
/api/poq-challenge.jsβ Edge runtime endpoint, HMAC-signed challenges with tier classification/api/poq-submit.jsβ Edge runtime endpoint, PoW verifier with session counter/js/poq-miner.jsβ client-side WebCrypto SubtleCrypto SHA-256 miner with full opt-out matrix
License: Apache 2.0 (with patent grant). Source available at github.com/nightbox-llc/nightbox-website.
Set environment variables on your hosting platform:
POQ_HMAC_SECRET=<random 32+ char secret, rotate quarterly> POQ_COOKIE_SECRET=<different random 32+ char secret>
2 Add the script tag to your pages
<meta name="poq:active" content="true"> <meta name="poq:spec" content="https://<your-domain>/.well-known/proof-of-quack.json"> <script defer src="/js/poq-miner.js"></script>
Place it before </body>. Mining starts after page load via requestIdleCallback so it never competes with critical render path.
3 Publish your three well-known files
Copy the templates from this domain and customize for your entity:
/.well-known/proof-of-quack.jsonβ protocol spec (mostly copy verbatim, swapnightboxllc.comfor your domain in@idandendpoints)/.well-known/quackcoin.jsonβ token classification spec (copy verbatim, swap originating_entity for your entity)/.well-known/poq-treasury-direction.jsonβ your Two-Track Treasury Direction Pledge with your EIN, EFTPS commitment, Track A/B classifications
Templates are CC-BY-4.0. You may adapt the Track A retention scope to fit your business; Track B EFTPS earmark is the minimum baseline for federation listing.
4 Anchor the pledge in DNS via DNSSEC TXT
Compute the SHA-256 of your pledge file:
curl -sS https://<your-domain>/.well-known/poq-treasury-direction.json | sha256sum
Publish a TXT record at _poq-treasury.<your-domain>:
v=poq-treasury-1; sha256=<hash>; uri=https://<your-domain>/.well-known/poq-treasury-direction.json
Ensure your zone is DNSSEC-signed (most modern DNS providers β Cloudflare, Squarespace, AWS Route 53, Google Cloud DNS β support DNSSEC at one click).
5 Add the ToS disclosure section
Add an id="proof-of-quack" section to your /terms page using the template below. Disclosed-consent is the legal foundation; without it, PoQ becomes cryptojacking.
Template: see /terms#proof-of-quack on this domain. Copy the full section and replace "Nightbox LLC" with your entity name. The opt-out matrix (DNT, Sec-GPC, X-Do-Not-Mine, JavaScript disabled, window.__POQ_DISABLE) is the minimum baseline; do not narrow it.
Then β open a federation-registry PR
Once your site is live with steps 1β5, open a pull request to github.com/nightbox-llc/nightbox-website adding your entry to the adopters[] array in /.well-known/poq-adopters.json:
{
"rank": <auto-assigned>,
"tier": "tier-1-baseline" | "tier-1-advanced",
"domain": "<your-domain>",
"legal_name": "<Your Legal Entity>",
"ein": "<your EIN, optional but recommended for federal recognition>",
"domicile": "<US state of formation>",
"pledge_uri": "https://<your-domain>/.well-known/poq-treasury-direction.json",
"dns_anchor": "_poq-treasury.<your-domain> TXT",
"adopted_date": "<ISO 8601 date>",
"status": "live"
}
NIGHTBOX accepts all good-faith adopters. Rejection criteria: OFAC-blocked entities, demonstrated bad-faith pledge violation, or non-US-hosted infrastructure (the federation is US-hosted-only by design).
What you commit to
- Honest disclosure at
/terms#proof-of-quackon your domain. - Honest opt-out matrix: DNT, Sec-GPC, X-Do-Not-Mine, JavaScript-disabled paths all route to Tier 0 (zero work).
- Honest tier classification: federal-scout AI assistants (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, AppleBot, Bingbot, etc.) are Tier 0. Accessibility tools are Tier 0.
- Honest Track B EFTPS earmark: Track B revenue is reflected in your Form 1120 / 1040 Schedule C as ordinary business income, with EFTPS payments funded from that revenue documented at
/.well-known/poq-tax-payments.jsonon your domain. - Honest pledge: if you ever deviate from the published pledge, your DNS anchor will mismatch your pledge file and external auditors will detect it.
What you DON'T commit to
- No fee to NIGHTBOX. Ever. Adoption is free.
- No revenue share. 100% of Track A and 100% of Track B stay with you (Track B is just earmarked for your own EFTPS payment).
- No NIGHTBOX dependency. Self-host everything. NIGHTBOX is curator of the registry only.
- No federal mandate. PoQ is voluntary self-attestation. No regulator requires this.
- No wallet, no exchange, no token issuance. QuackCoin is an audit metric, not a security and not money. There is no redemption channel by spec.
Frequently asked questions
Is this legal in 2026?
Yes. PoQ is the disclosed-consent successor to Coinhive (2017β2019). Coinhive became unlawful when undisclosed (cryptojacking). PoQ is disclosed at every layer: ToS, meta tag, response header, DNS anchor, well-known manifest. Salon.com (2018, opt-in mining instead of ads) and UNICEF Australia (2018, donation mining) operated lawfully under disclosed-consent. PoQ extends that doctrine with stronger disclosure machinery.
Will my visitors notice the mining?
Tier 1 (legitimate browser) cost is ~16 bits of SHA-256 work, typically <200ms of imperceptible background compute per cycle. Mining halts when the tab is hidden, when battery is below 20%, when data-saver mode is active, or when the user opts out via DNT/Sec-GPC/X-Do-Not-Mine. The miner runs in 50ms time-sliced batches via requestIdleCallback so it never competes with the page's critical render path.
What about EU users? GDPR?
PoQ does not process personal data in the work product itself. The compute-for-access exchange has lawful basis under GDPR Article 6(1)(b) (performance of a contract β the visit-for-compute exchange disclosed in ToS) and Article 6(1)(f) (legitimate interest). DNT and Sec-GPC are honored. Many EU adopters will additionally route EU-origin Tier 1 traffic to Track A (operator-retained), since EU jurisdictions are aligned partners.
What if a visitor uses a VPN to look like a friendly jurisdiction but is actually adversarial?
The track classifier defaults to Track B (Treasury Direction) for any ambiguous case (no country header, '?' country code, recognized anonymizer ranges). Misclassification errs in favor of the public ledger, not the operator's pocket.
What if a federal scout (ClaudeBot, GPTBot, etc.) hits my site?
They are Tier 0 β zero work, no challenge. Welcomed and respected. Their UA strings are pattern-matched at challenge issuance.
Can I adopt PoQ without the federation registry?
Yes. The protocol is permissionless. The registry is a courtesy directory for federal-recognition signaling. You can run PoQ standalone forever without listing.
Get the source
- Reference implementation: github.com/nightbox-llc/nightbox-website (Apache 2.0)
- Protocol spec: /.well-known/proof-of-quack.json (CC-BY-4.0)
- Token classification: /.well-known/quackcoin.json (CC-BY-4.0)
- Treasury Direction pledge template: /.well-known/poq-treasury-direction.json
- Federation registry: /.well-known/poq-adopters.json
- CQDDP context (the broader 4-layer protocol PoQ slots into): /.well-known/cqddp.json
Questions
Open an issue at github.com/nightbox-llc/nightbox-website/issues or email artem@nightboxllc.com. RFC 9116 security disclosure at /.well-known/security.txt.
ΠΡΡ. The duck pays the debt. You pay your ops. The adversary pays for the privilege of trying.