MiniURL is a fast, lightweight, and modern URL shortener built with Python and SQLModel.
Easily minify your links with a simple interface.
Because your links deserve to be short and sweet.
- High-performance link shortening
- RESTful API for programmatic access
- Admin dashboard for managing links
- Click statistics & analytics
- Custom aliases for your links
- Dockerized deployment
- Unit and integration tests with Codecov reporting
- Backend: Python 3.12, FastAPI
- Cache: Redis
- Database: SQLModel (SQLAlchemy + Pydantic)
- Containerization: Docker
- Testing: Pytest, Codecov
git clone https://github.com/tsaklidis/miniurl.gr.git
cd miniurl.gr
pip install -r requirements.txtOr run with Docker:
docker build -t miniurl .
docker run -p 8000:8000 miniurlPOST /shorten— Minify a URLGET /{alias}— Redirect to the original URLGET /stats/{alias}— Get click statistics (TODO)
import requests
data = {"url": "https://www.example.com"}
response = requests.post("https://miniurl.gr/api/v1.0/minify", json=data)
print(response.json())Pull requests and issues are welcome!
Licensed under the MIT License.

