commit b7cee409ad14f2cf47e9f43093bd963fadcfb500 Author: teahubxyz Date: Wed Oct 14 15:29:04 2026 -0700 pages: the live supertestnet.lol build (main 00e93f5) with its security headers diff --git a/README.md b/README.md new file mode 100644 index 0000000..173c286 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# supertestnet/app · pages + +The built site (`npm run build` → `dist/`) that Teahub pages serves at https://supertestnet.lol, plus `_headers`. +Source is `main`. To publish: build on `main`, copy `dist/` here, commit, push. diff --git a/_headers b/_headers new file mode 100644 index 0000000..49107d0 --- /dev/null +++ b/_headers @@ -0,0 +1,12 @@ +# Same headers the old Node server (server.js on main) sent; read by Teahub pages. +/* + Content-Security-Policy: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: blob:; frame-src 'self' blob:; connect-src 'self'; object-src 'none'; base-uri 'none'; frame-ancestors 'none'; form-action 'none' + X-Frame-Options: DENY + Referrer-Policy: no-referrer + Permissions-Policy: camera=(), microphone=(), geolocation=() + Cache-Control: no-cache +/assets/* + Cache-Control: public, max-age=31536000, immutable +/recursive-preview.html + Content-Security-Policy: default-src 'none'; script-src 'nonce-local-ord-preview'; worker-src blob:; style-src 'unsafe-inline'; connect-src 'none'; img-src data:; form-action 'none'; base-uri 'none'; frame-ancestors 'self' + X-Frame-Options: SAMEORIGIN diff --git a/assets/index-1LhHTydZ.css b/assets/index-1LhHTydZ.css new file mode 100644 index 0000000..ae91484 --- /dev/null +++ b/assets/index-1LhHTydZ.css @@ -0,0 +1 @@ +:root{font-family:Arial,Helvetica,sans-serif;font-synthesis:none;--orange:#f7931a;--orange-2:#ffad42;--bg:#0f1113;--panel:#171a1e;--panel-2:#20242a;--text:#f3f5f7;--muted:#9ca4ad;--line:#30363d;--soft:#23272e;--danger:#ff9b8d;color:var(--text);background:var(--bg)}:root[data-theme=light]{--bg:#f5f3ef;--panel:#fffdf9;--panel-2:#f0ece5;--text:#1a1a1a;--muted:#6f6a63;--line:#d8d1c8;--soft:#ece7df;--danger:#a54536}*{box-sizing:border-box}html{background:var(--bg);color-scheme:dark}html[data-theme=light]{color-scheme:light}body{margin:0;background:var(--bg);color:var(--text);transition:background .18s,color .18s}a{color:var(--orange);text-underline-offset:4px}button,input,textarea{font:inherit}.file-button,button{cursor:pointer}button{border:1px solid var(--line);border-radius:8px;background:var(--panel-2);color:var(--text);padding:12px 17px;font-weight:600;transition:background .15s,border-color .15s,transform .15s}button:hover:not(:disabled){border-color:var(--orange);transform:translateY(-1px)}button:disabled{opacity:.4;cursor:not-allowed;transform:none}button.primary{background:var(--orange);color:#1c1207;border-color:var(--orange)}button.primary:hover:not(:disabled){background:var(--orange-2)}.primary span{float:right;margin-left:20px}.quiet{background:transparent;border-color:var(--line);font-size:13px}button:focus-visible,a:focus-visible,summary:focus-visible,.file-button:focus-visible{outline:3px solid var(--orange-2);outline-offset:4px}header{max-width:1240px;margin:auto;padding:24px 32px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{text-decoration:none;color:var(--text);display:flex;align-items:center;gap:10px;font-size:15px;font-weight:800;letter-spacing:1px}.mark{display:inline-block;flex-shrink:0;background:var(--orange);width:34px;height:34px;border-radius:8px}.version{font:11px monospace;background:var(--soft);color:var(--orange);border-radius:4px;padding:3px 5px}.header-actions{display:flex;align-items:center;gap:14px}.network{font:11px monospace;color:var(--muted);letter-spacing:1px}.network i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--orange);margin-right:6px}.theme-toggle{padding:8px 10px;font:11px monospace}main{max-width:1176px;padding:0 0 10px;margin:auto}.hero{display:flex;justify-content:space-between;align-items:center;padding:53px 0 36px}.eyebrow{font:11px monospace;letter-spacing:1.8px;color:var(--orange);margin:0 0 19px}h1{font-size:clamp(42px,5.5vw,70px);font-weight:500;line-height:1.02;letter-spacing:-3px;margin:0 0 24px}.intro{color:var(--muted);font-size:16px;line-height:1.65}.orbit{width:255px;height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:36px;background:radial-gradient(ellipse,color-mix(in srgb,var(--orange) 16%,transparent),transparent 70%);margin-right:65px}.cube{display:grid;place-items:center;width:110px;height:110px;border:1px solid var(--orange);box-shadow:13px 13px color-mix(in srgb,var(--orange) 18%,var(--panel)),14px 14px color-mix(in srgb,var(--orange) 48%,var(--panel));transform:rotate(-12deg);background:var(--panel-2);color:var(--orange)}.orbit span{font:10px monospace;letter-spacing:2px;color:var(--muted)}.notice{background:color-mix(in srgb,var(--orange) 7%,var(--panel));border:1px solid color-mix(in srgb,var(--orange) 24%,var(--line));border-radius:8px;padding:14px 18px;font-size:12px;color:var(--muted);line-height:1.6}.notice strong{color:var(--text)}#status{min-height:52px;padding:16px 2px;font-size:13px;color:var(--orange)}#status.error{color:var(--danger)}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0}.panel-title{display:flex;align-items:center;gap:10px;margin-bottom:22px}.panel-title h2{font-size:17px;margin:0;font-weight:500;letter-spacing:-.4px}.step{font:11px monospace;color:var(--orange);background:color-mix(in srgb,var(--orange) 10%,var(--panel));border:1px solid color-mix(in srgb,var(--orange) 28%,var(--line));border-radius:6px;padding:7px}.tag{margin-left:auto;font:9px monospace;letter-spacing:1px;color:var(--muted);border:1px solid var(--line);padding:5px;border-radius:4px}.panel p{line-height:1.6;font-size:14px;color:var(--muted)}.label{display:block;font:10px monospace!important;letter-spacing:1.5px;color:var(--muted);margin:0 0 10px}.balance{display:flex;align-items:baseline;gap:12px;font-size:37px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.balance small{color:var(--orange);font-size:13px;letter-spacing:1px}.muted{color:var(--muted)!important;font-size:12px!important;line-height:1.65}label{display:block;font-size:12px;color:var(--muted);margin:14px 0 9px}input,textarea{width:100%;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:12px;outline:none}input{font:11px monospace}textarea{resize:vertical;min-height:100px;line-height:1.5}input:focus,textarea:focus{border-color:var(--orange)}#export-wallet{margin-top:12px}.wallet-footer{border-top:1px solid var(--line);margin-top:23px;padding-top:5px}.file-button{display:inline-block;color:var(--orange);text-decoration:underline;text-underline-offset:4px}input[type=file]{font-size:11px;margin-top:4px}.wallet-footer p{margin-bottom:0}.chain-stats{display:flex;gap:64px;margin:34px 0}.chain-stats strong{font:40px monospace}#mine{width:100%}.inscribe{grid-column:1/-1}.compose-footer{display:flex;align-items:center;justify-content:space-between;margin-top:14px}#review-panel{border-top:1px solid var(--line);margin-top:22px;padding-top:14px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--bg);border:1px solid var(--line);padding:16px;border-radius:8px;font-size:13px;line-height:1.6}h3{font-size:17px;font-weight:500}.section-title{display:flex;align-items:center;justify-content:space-between;margin:40px 0 20px;gap:14px}.section-title .eyebrow{margin-bottom:8px;font-size:10px}.section-title h2{font-size:24px;font-weight:500;letter-spacing:-.7px;margin:0}#collection-count{font:12px monospace;padding:4px 8px;margin-left:7px;background:color-mix(in srgb,var(--orange) 11%,var(--panel));color:var(--orange);border-radius:5px}.collectibles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:10px;padding:35px;text-align:center;color:var(--muted);font-size:14px;line-height:1.9;margin:0}.empty span{font-size:12px;color:var(--muted)}.collectible{border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:20px;min-width:0}.collectible pre{background:transparent;border:0;padding:15px 0;min-height:68px;color:var(--text);margin:0;font:17px/1.5 Georgia,serif}.collectible .tag{display:inline-block}.collectible a{font:11px monospace;overflow-wrap:anywhere}.collectible p{margin:12px 0 0}.chain-board{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;overflow:hidden}.mempool-head,.blocks-head{display:flex;align-items:end;justify-content:space-between;gap:16px}.mempool-head strong{display:block;margin-top:4px;font-size:14px}.chain-kicker{font:10px monospace;letter-spacing:1.6px;color:var(--orange)}.mempool-list{display:flex;gap:10px;overflow-x:auto;padding:16px 0 6px}.mempool-empty{border:1px dashed var(--line);border-radius:9px;padding:14px 16px;color:var(--muted);font-size:12px;min-width:260px}.mempool-card{min-width:210px;max-width:240px;text-align:left;background:color-mix(in srgb,var(--orange) 7%,var(--panel));border-color:color-mix(in srgb,var(--orange) 32%,var(--line));padding:14px}.mempool-card strong,.mempool-card span{display:block}.mempool-card strong{font:12px monospace;color:var(--orange);margin-bottom:8px}.mempool-card span{font:11px monospace;color:var(--muted);line-height:1.55}.chain-divider{height:34px;border-left:1px dashed var(--line);margin:2px 0 10px 22px;position:relative}.chain-divider span{position:absolute;left:10px;top:8px;font:9px monospace;color:var(--muted);letter-spacing:1px}.blocks-head{margin-bottom:12px}.blocks{display:flex;gap:12px;overflow-x:auto;padding-bottom:10px}.block-card{min-width:190px;text-align:left;padding:15px;background:var(--panel-2);position:relative}.block-card:before{content:"";position:absolute;left:-13px;top:50%;width:12px;border-top:2px solid var(--orange);opacity:.55}.block-card:last-child:before{display:none}.block-card strong{display:block;font:22px monospace;margin-bottom:9px}.block-card span{display:block;font:10px monospace;color:var(--muted);line-height:1.55}.block-card .block-accent{color:var(--orange);font-weight:700;margin-bottom:6px}.inspector{margin-top:16px;scroll-margin-top:20px}.inspector p{overflow-wrap:anywhere}.inspector code{font-size:12px;overflow-wrap:anywhere}.inspector h2{font-weight:500;font-size:22px}.inspector a{font-size:12px;overflow-wrap:anywhere}.tx-links{display:flex;gap:16px;flex-wrap:wrap}.about{margin-top:40px;border-top:1px solid var(--line);padding:20px 0;color:var(--muted);font-size:12px;line-height:1.8}.about summary{cursor:pointer;color:var(--text)}.about p{max-width:900px}footer{border-top:1px solid var(--line);padding:22px 0;display:flex;align-items:center;justify-content:space-between;font:10px monospace;color:var(--muted);letter-spacing:1px}.danger{color:var(--danger)}[hidden]{display:none!important}@media(max-width:1240px){main{margin:0 32px}}@media(max-width:700px){header{padding:18px;gap:10px}.header-actions{gap:8px}.network{display:none}.brand{font-size:12px;gap:7px}main{margin:0 18px}.hero{padding:36px 0 20px}.orbit{display:none}h1{letter-spacing:-2px}.intro{font-size:14px}.workspace{grid-template-columns:1fr}.inscribe{grid-column:auto}.panel{padding:20px}.tag{font-size:8px}.collectibles{grid-template-columns:1fr}.section-title{align-items:start}.section-title h2{font-size:21px}.section-title>.muted{font-size:10px!important}.compose-footer{gap:10px}.compose-footer button{font-size:12px}.notice{font-size:11px}.mempool-head,.blocks-head{align-items:start;flex-direction:column;gap:4px}.mempool-card{min-width:180px}.block-card{min-width:175px}footer{gap:10px}}select{width:100%;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:12px;min-width:0}select:focus{outline-color:var(--orange)}.inscription-preview{display:block;width:100%;max-height:300px;min-height:120px;object-fit:contain;border:1px solid var(--line);border-radius:8px;margin:12px 0;background:#fff}#indexes,#api-explorer{margin-top:2rem}#protocol-events{max-height:30rem;overflow:auto}#protocol-events article{padding:1rem 0;border-bottom:1px solid var(--line)}#api-path{width:100%;margin-bottom:1rem}#api-response,#derived-state,.metadata-document pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;overflow:auto}#metadata{width:100%} diff --git a/assets/index-DclT5lE9.js b/assets/index-DclT5lE9.js new file mode 100644 index 0000000..72908fe --- /dev/null +++ b/assets/index-DclT5lE9.js @@ -0,0 +1,10 @@ +(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();function lo(t){return typeof t=="string"&&/^(?:\/content\/[0-9a-f]{64}i(?:0|[1-9][0-9]*)|\/r\/(?:inscription|metadata|parents|children)\/[0-9a-f]{64}i(?:0|[1-9][0-9]*)|\/r\/tx\/[0-9a-f]{64}|\/r\/blockheight|\/r\/blockhash\/(?:0|[1-9][0-9]*)|\/r\/blockinfo\/(?:0|[1-9][0-9]*|[0-9a-f]{64}))$/.test(t)}const nf=`

Recursive local inscription

Live data from this browser's chain:

+ + + + +
+ SUPER TESTNET v0 +
PRIVATE LOCAL CHAIN
+
+
+

BITCOIN, WITH ROOM TO EXPERIMENT

Your own little
Bitcoin universe.

Mine a block. Inscribe a thought. See it land in your wallet.
All in your browser, all with pretend money.

+ +
Choose Inscriboor or a local test wallet to start your first loop.
+
+
01

Your test wallet

NOT CREATED
+

One wallet. A whole chain to play with.

Looking for the extension…

Install Inscriboor
  1. Download and unzip Inscriboor.
  2. Open chrome://extensions (or Brave extensions).
  3. Turn on Developer mode.
  4. Choose Load unpacked and select the unzipped extension folder.
  5. Refresh this page. The button above will change from Get Inscriboor to Connect Inscriboor.
+ + +
+
02

Make some blocks

Skip the faucet queue. Every block gives you 50 fake BTC, ready to use immediately.

BLOCK HEIGHT0
PENDING TXS0

Auto mining OFF

Keep a lab tab open; browser throttling may delay blocks. Mining also confirms your pending inscriptions.

+
03

Leave a little something

INSCRIPTION LAB

Recursive HTML/SVG scripts use local fetch and ord.render(text) in an isolated worker; ord.id is the requested inscription. No DOM or network access.

0 / 2048 CBOR bytes · ord tag 5 · JSON is authoring format only

Native ord metaprotocol identifier. Metadata and inscription data remain independent.

+ +
+
+

04 / THE THINGS YOU MADE

Your inscriptions 0

Owned by this wallet

Your first inscription belongs here.
Fund your wallet, write some text, and make it yours.

+
+

05 / FOLLOW THE TRAIL

Chain explorer

+
+
MEMPOOLWaiting for the next block
commit + reveal transactions live here before mining
+
+
↓ mine
+
BLOCKSnewest first · click any block to inspect it
+
+
+ +
+

Indexes

+

Metadata is data; indexers are interpretation. Native metaprotocol tag 7 is authoritative; metadata.protocol remains a compatibility fallback. Raw events remain uninterpreted.

+

+

Ordered raw events

Confirmed blocks in chain order, then mempool order.

+ +

Derived state (separate from raw events)

No reducer selected.
+
+

API explorer LOCAL / IN-BROWSER

+

LocalOrdAPI reads this browser’s chain and indexes. These paths are not server URLs; the static host cannot access your lab.

+ + + +
Choose a path and press Try.
+
+
Under the hood & attribution

Real serialized Bitcoin transactions, Schnorr signatures and Taproot commit/reveal scripts, on a deliberately simplified local UTXO chain. No proof of work, Bitcoin consensus, peer network, public broadcast, or production custody. Synthetic local sats follow FIFO input-to-output ranges. Child creation and reinscription preserve the owned sat. Fees retire the input tail; this is not Bitcoin consensus.

Built from and inspired by Supertestnet’s testnet_generator, inscriptions-online, and vanilla-js-browser-wallet. node_faker was evaluated for future RPC compatibility.

Transaction library: tapscript by Christopher Scott (CC-BY-1.0). Supertestnet CC0 license · noble-curves license · noble-hashes license.

+
SMALL CHAIN. BIG POSSIBILITIES.
+
+ \ No newline at end of file diff --git a/licenses/noble-curves.txt b/licenses/noble-curves.txt new file mode 100644 index 0000000..9297a04 --- /dev/null +++ b/licenses/noble-curves.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022 Paul Miller (https://paulmillr.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/licenses/noble-hashes.txt b/licenses/noble-hashes.txt new file mode 100644 index 0000000..9297a04 --- /dev/null +++ b/licenses/noble-hashes.txt @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2022 Paul Miller (https://paulmillr.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/licenses/supertestnet-CC0.txt b/licenses/supertestnet-CC0.txt new file mode 100644 index 0000000..0e259d4 --- /dev/null +++ b/licenses/supertestnet-CC0.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/licenses/tapscript.txt b/licenses/tapscript.txt new file mode 100644 index 0000000..0e259d4 --- /dev/null +++ b/licenses/tapscript.txt @@ -0,0 +1,121 @@ +Creative Commons Legal Code + +CC0 1.0 Universal + + CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE + LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN + ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS + INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES + REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS + PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM + THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED + HEREUNDER. + +Statement of Purpose + +The laws of most jurisdictions throughout the world automatically confer +exclusive Copyright and Related Rights (defined below) upon the creator +and subsequent owner(s) (each and all, an "owner") of an original work of +authorship and/or a database (each, a "Work"). + +Certain owners wish to permanently relinquish those rights to a Work for +the purpose of contributing to a commons of creative, cultural and +scientific works ("Commons") that the public can reliably and without fear +of later claims of infringement build upon, modify, incorporate in other +works, reuse and redistribute as freely as possible in any form whatsoever +and for any purposes, including without limitation commercial purposes. +These owners may contribute to the Commons to promote the ideal of a free +culture and the further production of creative, cultural and scientific +works, or to gain reputation or greater distribution for their Work in +part through the use and efforts of others. + +For these and/or other purposes and motivations, and without any +expectation of additional consideration or compensation, the person +associating CC0 with a Work (the "Affirmer"), to the extent that he or she +is an owner of Copyright and Related Rights in the Work, voluntarily +elects to apply CC0 to the Work and publicly distribute the Work under its +terms, with knowledge of his or her Copyright and Related Rights in the +Work and the meaning and intended legal effect of CC0 on those rights. + +1. Copyright and Related Rights. A Work made available under CC0 may be +protected by copyright and related or neighboring rights ("Copyright and +Related Rights"). Copyright and Related Rights include, but are not +limited to, the following: + + i. the right to reproduce, adapt, distribute, perform, display, + communicate, and translate a Work; + ii. moral rights retained by the original author(s) and/or performer(s); +iii. publicity and privacy rights pertaining to a person's image or + likeness depicted in a Work; + iv. rights protecting against unfair competition in regards to a Work, + subject to the limitations in paragraph 4(a), below; + v. rights protecting the extraction, dissemination, use and reuse of data + in a Work; + vi. database rights (such as those arising under Directive 96/9/EC of the + European Parliament and of the Council of 11 March 1996 on the legal + protection of databases, and under any national implementation + thereof, including any amended or successor version of such + directive); and +vii. other similar, equivalent or corresponding rights throughout the + world based on applicable law or treaty, and any national + implementations thereof. + +2. Waiver. To the greatest extent permitted by, but not in contravention +of, applicable law, Affirmer hereby overtly, fully, permanently, +irrevocably and unconditionally waives, abandons, and surrenders all of +Affirmer's Copyright and Related Rights and associated claims and causes +of action, whether now known or unknown (including existing as well as +future claims and causes of action), in the Work (i) in all territories +worldwide, (ii) for the maximum duration provided by applicable law or +treaty (including future time extensions), (iii) in any current or future +medium and for any number of copies, and (iv) for any purpose whatsoever, +including without limitation commercial, advertising or promotional +purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each +member of the public at large and to the detriment of Affirmer's heirs and +successors, fully intending that such Waiver shall not be subject to +revocation, rescission, cancellation, termination, or any other legal or +equitable action to disrupt the quiet enjoyment of the Work by the public +as contemplated by Affirmer's express Statement of Purpose. + +3. Public License Fallback. Should any part of the Waiver for any reason +be judged legally invalid or ineffective under applicable law, then the +Waiver shall be preserved to the maximum extent permitted taking into +account Affirmer's express Statement of Purpose. In addition, to the +extent the Waiver is so judged Affirmer hereby grants to each affected +person a royalty-free, non transferable, non sublicensable, non exclusive, +irrevocable and unconditional license to exercise Affirmer's Copyright and +Related Rights in the Work (i) in all territories worldwide, (ii) for the +maximum duration provided by applicable law or treaty (including future +time extensions), (iii) in any current or future medium and for any number +of copies, and (iv) for any purpose whatsoever, including without +limitation commercial, advertising or promotional purposes (the +"License"). The License shall be deemed effective as of the date CC0 was +applied by Affirmer to the Work. Should any part of the License for any +reason be judged legally invalid or ineffective under applicable law, such +partial invalidity or ineffectiveness shall not invalidate the remainder +of the License, and in such case Affirmer hereby affirms that he or she +will not (i) exercise any of his or her remaining Copyright and Related +Rights in the Work or (ii) assert any associated claims and causes of +action with respect to the Work, in either case contrary to Affirmer's +express Statement of Purpose. + +4. Limitations and Disclaimers. + + a. No trademark or patent rights held by Affirmer are waived, abandoned, + surrendered, licensed or otherwise affected by this document. + b. Affirmer offers the Work as-is and makes no representations or + warranties of any kind concerning the Work, express, implied, + statutory or otherwise, including without limitation warranties of + title, merchantability, fitness for a particular purpose, non + infringement, or the absence of latent or other defects, accuracy, or + the present or absence of errors, whether or not discoverable, all to + the greatest extent permissible under applicable law. + c. Affirmer disclaims responsibility for clearing rights of other persons + that may apply to the Work or any use thereof, including without + limitation any person's Copyright and Related Rights in the Work. + Further, Affirmer disclaims responsibility for obtaining any necessary + consents, permissions or other rights required for any use of the + Work. + d. Affirmer understands and acknowledges that Creative Commons is not a + party to this document and has no duty or obligation with respect to + this CC0 or use of the Work. diff --git a/recursive-preview.html b/recursive-preview.html new file mode 100644 index 0000000..7f78e6a --- /dev/null +++ b/recursive-preview.html @@ -0,0 +1 @@ +

diff --git a/recursive-preview.js b/recursive-preview.js
new file mode 100644
index 0000000..6c0e98b
--- /dev/null
+++ b/recursive-preview.js
@@ -0,0 +1,16 @@
+// Trusted renderer only. Inscription JavaScript runs exclusively in the worker.
+addEventListener('message', function start(event) {
+  if (event.source !== parent || event.data?.type !== 'local-ord' || !event.ports[0]) return;
+  removeEventListener('message', start);
+  const port = event.ports[0];
+  document.getElementById('markup').innerHTML = event.data.markup;
+  const url = URL.createObjectURL(new Blob([event.data.worker], { type: 'text/javascript' }));
+  const worker = new Worker(url);
+  worker.onmessage = ({ data }) => {
+    if (data.type === 'render') document.getElementById('recursive-output').textContent = String(data.text).slice(0, 65536);
+    else if (data.type === 'fetch') port.postMessage(data);
+  };
+  worker.onerror = () => { document.getElementById('recursive-output').textContent = 'Recursive script failed.'; };
+  port.onmessage = ({ data }) => worker.postMessage(data);
+  addEventListener('pagehide', () => { worker.terminate(); port.close(); URL.revokeObjectURL(url); }, { once: true });
+});