A web URL-shortener, written in V
| Light | Dark |
|---|---|
![]() |
![]() |
- Download the executable for your platform and run:
./vurls(.exe) [options]Requirements:
- V ~0.4.10
- SQLite:
Linux:
sudo apt install libsqlite3-dev # Ubuntu/Debian
sudo pacman -S sqlite # ArchWindows:
- Download
sqlite-amalgamation-XXX.zipfrom SQLite Download Page - Navigate to V's source directory
- Create a
sqlitedirectory inthirdparty - Extract the ZIP and move its
.cand.hfiles intothirdparty/sqlite
Compile and run:
v .
./vurls(.exe) [options]Manual configuration is optional. VURLS will use default values instead
-c, --config <string> Load or create config at given path
-i, --ignorecfg Dont load any config files
-p, --port <int> Specify port to listen on (default 8080)
-d, --db-path <string> Path to the SQLite3 DB to use (default memory)
-P, --password <string> Optional password to require to shorten an URL
-a, --admpwd <string> Optional admin password for administrative
purposes (undefined = disabled)
-e, --expiration-time <i64>
Time in seconds the short URL expires after
creation (default 24 hours)
-t, --shortening-timeout <i64>
Time in seconds after an IP-address can shorten
another URL (default 5 minutes)
-v, --verbose Log shortenings and redirects
-h, --help
VURLS will look for following paths for configuration files, in this order:
./vurls.toml
Linux, FreeBSD, OpenBSD, Darwin/macOS:
~/.config/vurls.toml/etc/vurls.tonl
Windows:
C:\users\<user>\AppData\Roaming\vurls.tomlC:\ProgramData\vurls.toml
It will load the first one it finds and if none found, will use default values
Note
You can run ./vurls(.exe) -c output.toml to let VURLS create a config with default values for you at given path
- V's
-prodflag isnt properly working with VURLS - VURLS will reuse existing DB rows if expired when shortening a new URL, minimizing DB entries
- Redirect paths consist of the base58-encoded ID stored in the DB
- V: 0.4.10 811d486
- OS: Linux Mint 22.1

