@indiekit/endpoint-microsub
Microsub endpoint for Indiekit. Lets a Microsub client, such as a social reader, manage channels and read their timelines.
Installation
npm install @indiekit/endpoint-microsub
Usage
Add @indiekit/endpoint-microsub to your list of plug-ins, specifying options as required:
json
{
"plugins": ["@indiekit/endpoint-microsub"],
"@indiekit/endpoint-microsub": {
"mountPath": "/reader"
}
}Options
| Option | Type | Description |
|---|---|---|
mountPath | string | Path to listen to Microsub requests. Optional, defaults to /microsub. |
Supported actions
- Channels:
/microsub?action=channelslists them;POSTwithmethodset tocreate,update,deleteororderchanges them. - Timeline:
/microsub?action=timeline&channel=UIDlists a channel's items, newest first, paged withafterandbefore;POSTwithmethodset tomark_read,mark_unreadorremovechanges them.
Following, muting, blocking, search and preview are not supported yet.
This endpoint requires a database.