0.2.0 • Published 8 months ago

@federa/lypub v0.2.0

Weekly downloads
-
License
AGPL-3.0
Repository
-
Last release
8 months ago

@federa/lypub

LyPub ActivityPub client for Federa.

Installation

npm install @federa/lypub

Usage

import { LyPubClient } from '@federa/lypub';

// Create a new client
const client = new LyPubClient({
  domain: 'example.com',
  username: 'alice',
  privateKey: '-----BEGIN PRIVATE KEY-----\n...'
});

// Create a post
const post = await client.createPost({
  content: 'Hello, world!',
  visibility: 'public'
});

// Get timeline
const timeline = await client.getTimeline();

Features

  • ActivityPub protocol implementation
  • JWT authentication
  • Timeline retrieval
  • Post creation and interaction
  • Profile management

Dependencies

  • jsonwebtoken
  • @federa/shared

License

ISC

0.2.0

8 months ago

0.1.3

11 months ago

0.1.2

11 months ago

0.1.1

11 months ago

0.1.0

11 months ago