Public
Like
openHeartProtocol
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v59View latest version
The Open Heart protocol lets an anonymous user sends an emoji reaction to a URL.
Adapted from https://openheart.fyi/, to run on Val Town.
https://openheart.val.run/
Test with example.com as <domain>.
GET /<domain>/<uid> to look up reactions for <uid> under <domain>
GET /<domain> to look up reactions for everything under <domain>
POST /<domain>/<uid> to send an emoji
<uid> must not contain a forward slash.
<domain> owner has the right to remove data under its domain scope.
----- Test in CLI -----
Send emoji:
curl -d '<emoji>' -X POST 'https://openheart.val.run/example.com/uid'
Get all emoji counts for /example.com/uid:
curl 'https://openheart.val.run/example.com/uid'