Shorten My URL - a minimalist URL shortener in Python / SQLite3
https://s.sij.ai
static | ||
templates | ||
.gitignore | ||
README.md | ||
smurl.py |

Shorten My URL (SMURL)
SMURL is a lightweight, self-hosted URL shortener built with FastAPI and SQLite. It provides a simple, dark-themed interface for shortening URLs and viewing analytics.
A testbed instance is available at s.sij.ai.
Setup
Clone the repo and install dependencies:
git clone https://sij.ai/sij/smurl.git
cd smurl
pip install fastapi uvicorn
Start the FastAPI server:
python smurl.py
SMURL assumes you're using a reverse proxy for TLS termination. Caddy is recommended.
Usage
Shorten a URL
- Visit the URL you've reverse proxied to your SMURL instance—or, for the testbed instance, s.sij.ai.
- Enter a URL (with or without
https://
). - Click SMURL to generate a short link.
Redirect
Visit a shortened URL, e.g.:
https://s.sij.ai/abc123
View Analytics
- Enter the shortcode (
abc123
) in the same input box. - Click SMURL to view click statistics.