Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxhallinan/sauna
An ActivityPub inbox.
https://github.com/maxhallinan/sauna
Last synced: about 1 month ago
JSON representation
An ActivityPub inbox.
- Host: GitHub
- URL: https://github.com/maxhallinan/sauna
- Owner: maxhallinan
- Created: 2019-09-10T20:11:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T10:02:54.000Z (about 2 years ago)
- Last Synced: 2023-03-01T10:56:32.412Z (almost 2 years ago)
- Language: PureScript
- Homepage:
- Size: 267 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sauna
This is a toy ActivityPub inbox.
The goals for this project were to understand the ActivityPub spec and to get a
feel for writing a web server in PureScript.## Workflow
Create and view an account
```
GET /api/v1/accounts
Accepts: applications/jsonPOST /api/v1/accounts
Content-Type: application/json
{ "username": "foo" }
```Creating an account passively creates an ActivityPub Actor.
```
GET /users/:username
Accepts: application/activity+json
```The Actor is discoverable via the webfinger endpoint.
```
GET /.well-known/webfinger?resource=acct:username@domain
Accepts: application/activity+json
```Send a message to the Actor's inbox.
The inbox uses HTTP signatures to verify the authenticity of the message, so all
requests must be signed.```
POST /users/:username/inbox
Content-Type: application/activity+json
```