itty.bitty

Itty.bitty是一个创建包含小型网站的链接的工具。「Itty.bitty is a tool to create links that contain small sites 」

Github星跟蹤圖

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.

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)

'https://itty.bitty.site/#/'+base64.b64encode(lzma.compress(bytes("hello world",encoding="utf-8"), format=lzma.FORMAT_ALONE, preset=9)).decode("utf-8")

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

主要指標

概覽
名稱與所有者arfct/itty-bitty
主編程語言JavaScript
編程語言Python (語言數: 3)
平台
許可證MIT License
所有者活动
創建於2018-05-26 00:16:52
推送於2023-06-21 14:36:37
最后一次提交
發布數0
用户参与
星數3.4k
關注者數119
派生數255
提交數291
已啟用問題?
問題數72
打開的問題數31
拉請求數4
打開的拉請求數0
關閉的拉請求數6
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?