Zero bytes sent.
No server stores your paste.
The URL IS the paste. High-density WebAssembly Zstandard compression executes directly inside your browser. Zero backend databases, zero packet sniffing, zero third-party server custody.
// SharePaste Zero-Datastore RFC 3986 Pipeline
import { compressZstd } from '@sharepaste/wasm';
export async function generatePasteUrl(source: string): Promise<string> {
// 1. Compress raw UTF-8 bytes in-memory
const rawBuffer = new TextEncoder().encode(source);
const compressed = await compressZstd(rawBuffer, { level: 19 });
// 2. Encode to URL-safe Base64 payload
const fragment = encodeUrlSafeBase64(compressed);
// 3. RFC 3986: Hash fragment is NEVER transmitted over HTTP
return `https://sidhu1512.github.io/SharePaste/app.html#${fragment}`;
}
Adaptive QR Transfer
Ergonomic Floating Dock
Engineered with Systems Precision
Explore the four cornerstone layers of SharePaste. Switch tabs below to inspect live interface states, technical telemetry, and runtime guarantees.
Zero-Latency Code Editor
Syntax-highlighted in real time powered by Prism.js. Built with synchronized line counters, soft line wrapping, read-only locking, and responsive mobile-optimized typography.
- 14+ core syntax grammars supported out of the box
- Sub-millisecond input response with zero main-thread lag
- Drag-and-drop file ingestion directly into browser buffer
Runtime Telemetry
Extreme entropy reduction tailored for plain-text source code.
Fragment identifiers never reach the upstream server.
Instantaneous decompression on page load with zero spinners.
Live Compression & QR Threshold Lab
Test SharePaste's live payload calculation directly on this page. Choose a code preset or write your own to watch real-time byte compression and QR threshold routing.
Payload fits cleanly into a high-density scannable QR code (> 2.6 px/module). Scanning with your smartphone instantly mounts the snippet.
Unmatched Density
We deploy raw C WebAssembly Zstandard to compress your code directly into the URL hash. Extreme dictionary-grade compression ensures maximum payload density.
Prism.js Highlighting
Full support for JS, TS, Rust, Python, Go, HTML, CSS, SQL, JSON, Markdown, and more.
Adaptive QR Engine
Under 350 characters? SharePaste generates a crystal-clear, scannable QR matrix instantly on screen for instant phone handoff.
Offline Capable
Works 100% locally. Disconnect the internet, turn on airplane mode, and SharePaste keeps decompressing and generating links effortlessly.
Why Zero-Datastore Outperforms Traditional Cloud Pastebins
A staff engineer's guide to how client-side hashing eliminates storage leaks, server exploits, and surveillance vectors.
The URL Hash (#) Is Never Transmitted
According to the RFC 3986 URI specification, fragment identifiers (everything
following the # character) are strictly client-side constructs. Your web
browser strips the fragment before issuing HTTP GET requests to any web server or CDN.
This means our hosting servers, network edge routers, proxies, and ISPs never see your paste contents. Even with a subpoena or database breach, there is literally nothing to hand over.
Adaptive Multi-Density QR Routing
Traditional tools try to force massive URLs into unreadable, dense QR codes with tiny pixel modules that fail to scan under normal camera lenses.
SharePaste continuously checks the compressed URL length against our scannable threshold (350 characters / ≥2.6 px per module). Short snippets render an elegant QR modal immediately; longer snippets automatically pivot to a 1-click clipboard link to guarantee 100% scan reliability.
Pristine Mobile Responsiveness
Engineered from the ground up for both high-end desktop workstations and pocket mobile devices. Touch targets are carefully measured, the floating toolbar floats without obstructing text, and responsive viewport sizing prevents zoom jumping on mobile keyboards.
Whether reading code on a subway train or pasting configuration logs from an iPad, SharePaste gives you a native app feel without downloading an app.
Keyboard Shortcuts Matrix
Keep your hands on the home row. Every major operation in SharePaste is bound to sculpted mechanical hotkeys.
Generate & Share
Instantly compress editor buffer and trigger adaptive link/QR modal.
Toggle Read-Only Lock
Prevent accidental edits while presenting code or sharing your screen.
Toggle Word Wrap
Switch between horizontal scrollbar mode and soft line wrapping.
Toggle Line Numbers
Clean minimal distraction-free canvas or full numbered IDE view.
New Paste
Clear current buffer and start a clean snippet session.
Command Palette
Universal spotlight menu to jump anywhere or execute actions.
Dismiss Modal
Instantly close QR popup, About sheet, Lightbox, or Command Palette.
How it Works
Four deterministic steps running entirely in userland.
Write
Paste or type your code into the high-performance editor. Zero sign-up, zero accounts.
Compress
WebAssembly Zstandard crunches source code into high-density binary arrays in <1ms.
Fragment
Payload is converted into a URL-safe Base64 string and appended after the
# hash.
Share
Send the link or let others scan the adaptive QR code directly from your display.
Built on Open Web Standards
The Privacy Difference
How traditional pastebins put your code at risk versus SharePaste's zero-custody model.
Traditional Pastebin
SharePaste
Frequently Asked Questions
Everything you need to know about how SharePaste works, its privacy model, and its limits.
Can the server see my code?
No. SharePaste stores snippet data exclusively in the URL hash
fragment (the text after #). Per RFC 3986, browsers never include
fragment identifiers in HTTP requests. The static app is served from GitHub Pages, so
host servers only ever see requests for /app.html, never your code.
However, recipients and chat applications that receive your full link can decode and
read the content.
Is it encrypted?
No. Your snippet is compressed with Zstandard WebAssembly and encoded into a URL-safe Base64 string, but it is not encrypted with a cryptographic key. Anyone with access to the link or your browser history can view the code. Always treat SharePaste URLs like public links.
How long do links last?
Indefinitely. Because the entire snippet payload is serialized directly inside the link itself, there is no remote database to expire, prune, or wipe snippets. As long as any browser can open the SharePaste static page (or cache it offline), the snippet will decode forever.
What's the size limit?
Modern web browsers can navigate URLs with tens of thousands of characters. However, external chat applications (like Discord, Slack, WhatsApp, or Teams) and email clients frequently truncate or break hyperlinks longer than ~2,000–4,000 characters. For sharing across chat apps, keep your snippets concise.
How is it different from Pastebin, Gist or PrivateBin?
Traditional pastebins like Pastebin and GitHub Gist upload and store your source code on centralized servers and databases. PrivateBin encrypts content client-side before upload, but still requires a backend server to store the ciphertext blob. SharePaste stores nothing anywhere: there is zero backend, zero database, zero accounts, and zero disk storage. The URL is the paste.