shorty
Version, currently main branch1 version
- main branchlatestMay 4, 2025
github.com/Laxyny/shorty
No description declared in shard.yml.
0 stars
0 dependents
License: not declared
Installation
# Add this to your shard.yml
dependencies:
shorty:
github: Laxyny/shorty
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- Author
- Kevin Gregoire
- Target
shortyfrom src/shorty.cr
Dependencies
Runtime Dependencies
- kemal*github: kemalcr/kemal
README
Shorty
A fast and lightweight URL shortener API built with Crystal and Kemal.
Useful. Original. Surprisingly powerful.
About
Shorty is a minimalist REST API to shorten links and retrieve click statistics.
It’s built with Crystal and Kemal, offering excellent performance and simplicity.
Features
- Shorten any URL with a unique code
- Redirect to the original URL via short code
- Track the number of hits for each short URL
- Built in Crystal — fast and elegant
Installation
1. Install Crystal (via WSL on Windows or native Linux/macOS):
https://crystal-lang.org/install
2. Clone the repo and install dependencies:
git clone https://github.com/laxyny/shorty.git
cd shorty
shards install
```
### 3. Run the API:
```bash
crystal run src/shorty.cr
API Endpoints
POST /shorten- Shorten a URLGET /:short_code- Redirect to the original URLGET /stats/:short_code- Returns the number of times the short URL has been accessed
Credits
Developed and maintained by Kevin Gregoire.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- May 4, 2025
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/Laxyny/shorty
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 17, 2026
- Synced
- Aug 17, 2026
- Versions
- 1