Each example is live. Its content is encrypted in this page's source and unlocks when its jar is paid.
The jars take real payments: 2¢ in USDC on Base, sent straight to Sidejar's wallet. Every penny goes toward Sidejar's development, so thank you! Each wallet can pay each demo once. To try one without paying, press Simulate payment.
New to this? See how to pay. A new collection wallet may show a "high-risk" warning. This should go away in time as trust builds; here's what to check.
Simulating is exactly what a determined cheater could do from the browser console. Sidejar's content protection is honor-level: it stops casual readers, View Source and search engines. See the docs.
1. Blurred, then into focus
The preview is scrambled first, then blurred, so the real words are never in it. Paying brings the real text into focus.
The first 40 words, fading out. This one is not encrypted: a teaser can only show real words if they're in the page. To keep the rest private, show the opening as normal text and encrypt only the rest (demos 6 and 7).
Most of what we read online is paid for twice: once by our attention, and again by our data. The writer, meanwhile, sees almost none of it.
A stablecoin in a wallet changes the shape of the problem. A signed message can move exactly twenty cents from a reader's wallet to the writer's, and someone else pays the fraction of a penny of gas.
None of this needs a new platform. It needs one small tag at the bottom of a page.
<!-- Not encrypted: a teaser can only show real words if they're in the page. -->
<sidejar-content for="d2" onlocked="Sidejar.teaser">
<template>
<p>Most of what we read online is paid for twice…</p>
…
</template>
</sidejar-content>
3. Placeholder lines
Grey skeleton lines about as long as the content. Nothing readable at all.
<script>
// Your own preview: the blur, plus a note of your own.
function blurWithNote(content) {
return Sidejar.blur(content) +
'<p class="note">2 more paragraphs for supporters</p>';
}
</script>
<p>Most of what we read online is paid for twice…</p> <!-- readable opening -->
<sidejar-content for="d6" onlocked="blurWithNote" onpaid="Sidejar.decrypt">
<template>sj1.…</template> <!-- the rest, encrypted -->
</sidejar-content>
7. A paywall, styled with state classes
<sidejar-content> carries sidejar-locked, sidejar-unlocking,sidejar-unlocked or sidejar-failed (and the same in data-state). The overlay below is plain CSS on those classes.
Most of what we read online is paid for twice: once by our attention, and again by our data. The writer, meanwhile, sees almost none of it.
A three-chapter story. Each chapter's jar lives inside the chapter before it, so it only appears once that one is paid, and each chapter previews differently: placeholder lines, then a blur that comes into focus, then scrambled text. All three are encrypted, one inside the next.
The simplest case: a thank-you note shown after a tip. It's readable in View Source, which is fine for a thank-you.
Thanks for the tip! It went straight to the writer's wallet.
<sidejar-content for="d10">
<template><p>Thanks for the tip!</p></template>
</sidejar-content>
11. Your own button label
Use label with {price} filled in, or put anything inside the tag. Write<sidejar-pay …></sidejar-pay>, never />: HTML has no self-closing custom tags.
☕ Buy me a coffee
<!-- Text with the price filled in -->
<sidejar-pay to="0x…" price="0.02" item="tip-1"
label="Tip the author {price}"></sidejar-pay>
<!-- Anything inside the tag (shown as-is) -->
<sidejar-pay to="0x…" price="0.02" item="tip-2">☕ Buy me a coffee</sidejar-pay>