Itty.bitty is a tool to create links that contain small sites http://itty.bitty.site

Nicholas Jitkoff 50343faecb Update README.md 5 days ago
index.html.src 3f7cf6ca33 Remove sandbox for target=_blank links 1 week ago
lzma da68c69908 Add Licenses, remove extra files 2 weeks ago
.firebaserc 2aaa255682 Initial commit 1 month ago
.gitattributes 2aaa255682 Initial commit 1 month ago
.gitignore d450fa08b7 Add minified versions of index content 1 week ago
LICENSE da68c69908 Add Licenses, remove extra files 2 weeks ago
README.md 50343faecb Update README.md 5 days ago
base.css 6698044a58 Separate out html file / codepen token 2 weeks ago
data.js 936a918ec8 Updated visuals 1 month ago
edit.css 29d629aebb Run css and js through prettier 1 week ago
edit.html 7af47b5101 Better twitter sharing, added copy confirmation to copy link 1 week ago
edit.js 228559a68a Correct raw html replacements 1 week ago
favicon.ico 53e3a7a7cb Update favicon and added warning for IE/Edge 1 week ago
favicon.png 81745654eb Add security message 1 week ago
firebase.json 0095f83998 Cleanup of non-deployed assets 1 week ago
index.html 3f7cf6ca33 Remove sandbox for target=_blank links 1 week ago
jquery-3.3.1.min.js 2761e6d689 Add Codepen support 1 month ago
manifest.appcache 6bcf89f41f Update Manifest 1 week ago

README.md

itty.bitty.site

itty.bitty takes html (or other data), compresses it into a URL fragment, and provides a link that can be shared. When it is opened, it inflates that data on the receiver’s side.

Learn more at about.bitty.site

Detailed workings how.bitty.site

Advanced

Handcrafted HTML files

Drag one into the editor to convert it.

Using Codepen.io

Paste a codepen URL into the editor. Get started with a template or look at some samples.

Size Limits

While most sites support 2000 bytes, some can handle more.

Hosting

One simple way to host is to forward a domain. Just paste the itty.bitty url in the redirect.

Generating links programatically

Encoding (Mac)

echo -n 'hello world' | lzma -9 | base64 | printf "https://itty.bitty.site/#/%s\n" "$(cat -)"

Encoding (Linux)

echo -n 'hello world' | lzma -9 | base64 -w0 | printf "https://itty.bitty.site/#/%s\n" "$(cat -)"

Encoding (Win Git/WSL)

echo -n 'hello world' | xz --format=lzma -9 | base64 -w0 | printf "https://itty.bitty.site/#/%s\n" "$(cat -)"

Encoding (Python)

base64.b64encode(lzma.compress(bytes("hello world",encoding="utf-8"), format=lzma.FORMAT_ALONE, preset=9))

Decoding (Mac)

echo "[URL]" -n | sed 's/^.*#[^\/]*\///g' | base64 -D | lzma -d

Decoding (Linux)

echo -n "[URL]" | sed 's/^.*#[^\/]*\///g' | base64 -d | lzma -d

Decoding (Win)

echo -n "[URL]" | sed 's/^.*#[^\/]*\///g' | base64 -d | xz --format=lzma -d