@federa/lypub
v0.6.5
Published
LyPub ActivityPub client for Federa
Downloads
1,310
Readme
@federa/lypub
LyPub ActivityPub client for Federa.
Installation
npm install @federa/lypubUsage
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
