Skip to content

Latest commit

 

History

History
53 lines (41 loc) · 755 Bytes

File metadata and controls

53 lines (41 loc) · 755 Bytes

🅿️ at-p

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.

Deploy

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

Usage

POST /to/{galaxy,star,planet}

Input:

{
  "ids": [1, 2, 3]
}

Output:

{
  "ids": [
    "dozzod-doznec",
    "dozzod-dozbud",
    "dozzod-dozwes"
  ]
}

POST /isAddress

Input:

{
  "id": "dozzod-doznec"
}

Output:

{
  "res": true
}