Itty.bitty is a tool to create links that contain small sites
Find a file
redg3ar c16a5dfa44
Fix the encoding command to be compatible with ZSH
I haven't tested the mac version because I do not have access to one.
2018-10-02 14:00:08 -04:00
index.html.src Remove sandbox for target=_blank links 2018-07-10 23:21:18 -07:00
lzma Add Licenses, remove extra files 2018-07-04 11:03:21 -07:00
.firebaserc Initial commit 2018-05-25 17:16:21 -07:00
.gitattributes Initial commit 2018-05-25 17:16:21 -07:00
.gitignore Add minified versions of index content 2018-07-08 09:45:08 -07:00
base.css Separate out html file / codepen token 2018-07-04 12:22:21 -07:00
data.js Updated visuals 2018-05-29 22:10:16 -07:00
edit.css Run css and js through prettier 2018-07-08 09:18:51 -07:00
edit.html Better twitter sharing, added copy confirmation to copy link 2018-07-08 08:50:16 -07:00
edit.js Correct raw html replacements 2018-07-11 22:24:53 -07:00
favicon.ico Update favicon and added warning for IE/Edge 2018-07-07 14:11:51 -07:00
favicon.png Add security message 2018-07-10 22:38:55 -07:00
firebase.json Cleanup of non-deployed assets 2018-07-09 22:14:35 -07:00
index.html Remove sandbox for target=_blank links 2018-07-10 23:21:18 -07:00
jquery-3.3.1.min.js Add Codepen support 2018-05-27 18:05:32 -07:00
LICENSE Add Licenses, remove extra files 2018-07-04 11:03:21 -07:00
manifest.appcache Update Manifest 2018-07-10 23:23:02 -07:00
README.md Fix the encoding command to be compatible with ZSH 2018-10-02 14:00:08 -04:00

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 receivers 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.

Encoding (Mac)

echo -n 'hello world' | lzma -9 | base64 | xargs -0 printf "https://itty.bitty.site/#/%s\n"

Encoding (Linux)

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

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))

Encoding (Node.js)

'https://itty.bitty.site/#/'+Buffer.from(lzma.compress("Hello World", 9)).toString('base64')

Decoding (Mac)

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

Decoding (Linux)

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

Decoding (Win Git/WSL)

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