@skyware/labeler
TypeScript icon, indicating that this package has built-in type declarations

0.1.13 • Public • Published

@skyware/labeler

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.
  label add - Add new label declarations to a labeler account.
  label delete - Remove label declarations from a labeler account.

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}`);
    }
});

Package Sidebar

Install

npm i @skyware/labeler

Weekly Downloads

150

Version

0.1.13

License

MPL-2.0

Unpacked Size

89.6 kB

Total Files

27

Last publish

Collaborators

  • futuristick