1
0
Fork 0
Quote of the day API
Find a file
2026-01-31 20:07:13 -05:00
.zed init 2026-01-31 16:25:13 -05:00
.gitignore init 2026-01-31 16:25:13 -05:00
deno.json add cors 2026-01-31 20:07:13 -05:00
deno.lock add cors 2026-01-31 20:07:13 -05:00
LICENSE license 2026-01-31 16:29:02 -05:00
main.ts add cors 2026-01-31 20:07:13 -05:00
README.md add readme 2026-01-31 16:28:19 -05:00

qotd

A quote of the day API (actually quote of the 12 hours in a day API).

The random code is flawed, there are collisions, but since it's for my personal use I don't really care

How to use

Make a GET request to https://qotd.nin0.dev. You will receive a JSON object in the { author: string; quote: string; } format.

How to host

  1. Install Deno
  2. Put your quotes in a file named quotes.json. It's an array of the quotes format mentioned above
  3. deno --allow-net --allow-env=PORT --allow-read=quotes.json main.ts
  4. You can also set the env PORT to set your port