all repos — existentialcrisis.sh @ d7ef04a7a4dcfd1c4bca7fc11b688f128a5d217c

existential crisis API

templates/api.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
{{define "title"}}existentialcrisis.sh/api{{end}}
{{define "body"}}
<p>The below tools should all be very helpful in triggering an existential crisis. They are used inadvertently by the author every day.</p>
<h4>receive an existential quote that may trigger a crisis</h4>
<pre>GET <a href="/api/v1/crisis/quote">/api/v1/crisis/quote</a></pre>

<h4>estimate the amount of time you have left alive on average, based on your age</h4>
<pre>GET <a href="/api/v1/crisis/life?age=28">/api/v1/crisis/life?age=N</a>
N = your age</pre>

<h4>estimate the number of people who will remember you in a given number of years</h4>
<pre>GET <a href="/api/v1/crisis/remember?years=100">/api/v1/crisis/remember?years=N</a>
N = number of years</pre>

<h4>estimate how valuable your legacy will be</h4>
<pre>GET <a href="/api/v1/crisis/legacy">/api/v1/crisis/legacy</a></pre>
{{end}}