Other
ShortenURL
A lightweight .NET 8 URL shortening API that turns long links into compact codes and redirects visitors to the original destination.
Personal project
ShortenURL is a personal project, developed as a .NET URL shortening API. The source code is publicly available on GitHub.
Overview
Compact links through a focused API
ShortenURL is a lightweight URL shortening service built with .NET 8 and ASP.NET Core. It converts long URLs into compact codes and resolves those codes back to the original destination through redirects.
A layered design
The solution follows Clean Architecture, separating domain entities and business rules from application use cases, infrastructure adapters, and the Web API entry point. The application layer organizes use cases around CQRS and ports.
Configurable and easy to explore
The base URL and generated code length are configurable. An in-memory repository supports development, while the README describes EF Core persistence as optional.
Analytics, link expiration, rate limiting, and vanity URLs are listed as planned extensions in the repository.
My contribution
Backend developer
Key features
URL shortening
Convert long URLs into compact short codes
Redirects
Resolve short codes to the original URL
Configurable links
Configure the base URL and code length
Development storage
Use an in-memory repository during development
Layered architecture
Separate domain and application logic from infrastructure and API concerns
Technology stack
Updated