0.2.0 • Published 7 months ago

@skyware/labeler v0.2.0

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
7 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

7 months ago

0.2.0

7 months ago

0.1.12

8 months ago

0.1.13

8 months ago

0.1.11

8 months ago

0.1.10

8 months ago

0.1.9

8 months ago

0.1.8-test.4

8 months ago

0.1.8-test.5

8 months ago

0.1.8-test.6

8 months ago

0.1.8

8 months ago

0.1.8-test.1

8 months ago

0.1.8-test.2

8 months ago

0.1.8-test.3

8 months ago

0.1.7

9 months ago

0.1.6-fix.2

9 months ago

0.1.6-fix.1

9 months ago

0.1.6

10 months ago

0.1.5

10 months ago

0.1.4

10 months ago

0.1.3

10 months ago

0.1.2-fix.1

10 months ago

0.1.2

10 months ago

0.1.1-fix.1

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago