Hella out of date for both urbit-ob and now's platform—if you're interested in using this open an issue and I'll update it.
This is a super simple typescript microservice that exposes urbit's at-p encoding as a REST API.
I did this because I don't feel like re-writing it in other languages and microservices are cool.
It's a normal nodejs microserver and/or dockerfile, so run something like (making sure to change your username in the package.json)
yarn run build
yarn run docker-build
docker run -p 3000:3000 shrugs/at-p:latest
Input:
{
"ids": [1, 2, 3]
}
Output:
{
"ids": ["dozzod-doznec", "dozzod-dozbud", "dozzod-dozwes"]
}
Input:
{
"id": "dozzod-doznec"
}
Output:
{
"res": true
}