Build an app on the API
Everything on this site is available as JSON under /api/v1. Browsing needs no account. Everything else takes a token in the Authorization: Bearer header.
How syncing works
- The app signs in once and keeps the token it gets back. That token belongs to the device.
- It reads the device's install list and downloads anything pending, checking each file against its SHA-256.
- It acknowledges each Pac it installed or removed, so the dashboard shows what is really on the device.
A device can always change its own list. You can also change it from this site or a script.
Platforms are windows, macos, linux, ios, ipados, android, web. NSFW Pacs are left out of lists unless the account has opted in, and every Pac carries an nsfw flag.
Endpoints
POST /auth/loginSign in from an app. Send login, password, device_name and platform. Returns a token tied to that device.
GET /toolsEvery tool with its public Pac count.
GET /categoriesThe categories a Pac can be filed under. Each tool has its own. Takes tool.
GET /pacsSearch public Pacs. Takes q, tool, category, platform, tag, publisher, sort (updated, popular, downloads, new) and page.
GET /pacs/{tool}/{pac}One Pac with its description and every release.
GET /pacs/{tool}/{pac}/versions/{version}/downloadThe zip. Use "latest" for the newest release, with ?platform= to get the newest one for a platform. Add ?file= with a name from the release's files list to get another file.
POST /pacsCreate a Pac. Send tool, name, readme, category, tags, license, nsfw and visibility. The line shown in lists is the opening of readme, unless you send summary. For a Siri Shortcut, userscript or userstyle, send link, or send code to keep a userscript or userstyle here. For a snippet of plain text, send snippet and, if you like, file_name.
POST /pacs/{tool}/{pac}/versionsPublish a release. Multipart form with version, file, changelog and platforms. Repeat file for up to 5 zips.
POST /pacs/{tool}/{pac}/reportReport a Pac. Send reason and details.
GET /pacs/mineYour Pacs, including private ones.
GET /devicesDevices on the account.
GET /devices/{id}/installsWhat should be on a device, with a state for each Pac: pending, installed or removing.
PUT /devices/{id}/installs/{tool}/{pac}Ask for a Pac to be installed. Picks the newest release for the device's platform unless you send a version.
DELETE /devices/{id}/installs/{tool}/{pac}Ask for a Pac to be removed.
POST /devices/{id}/installs/{tool}/{pac}/ackThe device reports what it did. Send state: installed or removed.