Very performant URL shortener service for individuals

#1 User Management

~koehr commented on k0r-planned-features todo

14 minutes ago

f58a9d8 makes API key mandatory in POST requests

~koehr pushed to ~koehr/k0r git

15 minutes ago


builds.sr.ht status MIT license

A URL shortener for individuals, but optimized for speed.

#Quick Start

Initialize a fresh SQlite database:

sqlite3 /path/to/k0r.db < ./db/schema.sql

For testing, you can use test_urls.sql for test data:

# after initialization
sqlite3 /path/to/k0r.db < ./db/test_urls.sql

This inserts a bit under two-hundred URLs fetched from 250kb.club a while ago.

To start the service, just run the binary from the folder of k0r.db or run it with the path to the DB as first argument. For example:

k0r /path/to/ # will be extended to /path/to/k0r.db
k0r /path/to/some.db