Itty.bitty is a tool to create links that contain small sites
Find a file
2025-10-03 01:33:13 +02:00
.vscode Update Recipe formatting 2022-09-05 11:41:33 -07:00
docs Update contact.css 2023-06-21 07:36:35 -07:00
functions Delete index.js 2023-02-11 16:52:17 -07:00
netlify/edge-functions Update metadata.js 2023-02-11 14:07:18 -07:00
scripts Add generator script 2022-12-04 10:03:51 -08:00
server feat: add self-hosting server and docker setup 2025-10-03 01:33:13 +02:00
.dockerignore feat: add self-hosting server and docker setup 2025-10-03 01:33:13 +02: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 netlify 2022-04-27 21:03:00 -06:00
build-v2.js Test of resource embedding. Fixes for color and recipe 2022-10-19 21:47:36 -07:00
docker-compose.yml feat: add self-hosting server and docker setup 2025-10-03 01:33:13 +02:00
Dockerfile feat: add self-hosting server and docker setup 2025-10-03 01:33:13 +02:00
examples.md Add encryption, gzip, and renderers 2022-02-15 17:28:50 -06:00
firebase.json Decode content correctly 2022-01-19 20:01:30 -08:00
LICENSE Add Licenses, remove extra files 2018-07-04 11:03:21 -07:00
netlify.toml Updated metadata functions 2023-02-11 09:32:57 -07:00
package.json feat: add self-hosting server and docker setup 2025-10-03 01:33:13 +02:00
README.md feat: add self-hosting server and docker setup 2025-10-03 01:33:13 +02:00
recipe.py Add encryption, gzip, and renderers 2022-02-15 17:28:50 -06:00

itty.bitty

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

How it works: how.bitty.site

For more info: wiki.bitty.site

Self-hosting

Local runtime prerequisites

  • Node.js 20 or newer
  • npm 9 or newer

Run locally

  1. Install dependencies with npm install.
  2. Start the server with npm run dev.
  3. Visit http://localhost:8080.

Optional environment variables:

  • PORT: server port (defaults to 8080).
  • UA_ARRAY: comma separated list of User-Agents to block with HTTP 401.
  • REQUEST_LOG: set to silent to disable HTTP request logging.

Docker workflow

  1. Build the image locally: docker build -t itty-bitty ..
  2. Run the container: docker run --rm -d -p 8080:8080 --name itty-bitty itty-bitty.
  3. Open http://localhost:8080/ in your browser.
  4. Stop it with docker rm -f itty-bitty (or let --rm clean up if you stop the container normally).

Docker Compose

docker compose up --build -d

Stop the stack with docker compose down when you are done.