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.
main.tsx
https://charmaine--82adb7c0430e11f09e5e76b3cceeab13.web.val.run
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.
You can test sending emojis with POST.tsx
, and check emojis received with GET.tsx
.