0.2.0 • Published 9 months ago

@skyware/labeler v0.2.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
9 months ago

A lightweight alternative to Ozone for operating an atproto labeler.

Documentation

CLI

The @skyware/labeler package also comes with a CLI for setting up and managing a labeler.

$ npx @skyware/labeler
Usage: npx @skyware/labeler [command]
Commands:
  setup - Initialize an account as a labeler.
  clear - Restore a labeler account to normal.
  recreate - Recreate the labeler declaration (recommended if labels are not showing up).
  label add - Add new label declarations to a labeler account.
  label delete - Remove label declarations from a labeler account.
  label edit - Bulk edit label definitions.

For a full guide to setting up a labeler, see Getting Started.

Installation

npm install @skyware/labeler

Example Usage

This library requires an existing labeler declaration. To get set up, refer to the Getting Started guide.

import { LabelerServer } from "@skyware/labeler";

const server = new LabelerServer({ did: "···", signingKey: "···" });

server.start(14831, (error, address) => {
    if (error) {
        console.error(error);
    } else {
        console.log(`Labeler server listening on ${address}`);
    }
});
0.2.0-test.0

9 months ago

0.2.0

9 months ago

0.1.12

10 months ago

0.1.13

10 months ago

0.1.11

10 months ago

0.1.10

10 months ago

0.1.9

10 months ago

0.1.8-test.4

10 months ago

0.1.8-test.5

10 months ago

0.1.8-test.6

10 months ago

0.1.8

10 months ago

0.1.8-test.1

10 months ago

0.1.8-test.2

10 months ago

0.1.8-test.3

10 months ago

0.1.7

11 months ago

0.1.6-fix.2

11 months ago

0.1.6-fix.1

11 months ago

0.1.6

11 months ago

0.1.5

12 months ago

0.1.4

12 months ago

0.1.3

12 months ago

0.1.2-fix.1

12 months ago

0.1.2

12 months ago

0.1.1-fix.1

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago