LyPub ActivityPub client for Federa
npm install @federa/lypubLyPub ActivityPub client for Federa.
``bash`
npm install @federa/lypub
`typescript
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();
``
- ActivityPub protocol implementation
- JWT authentication
- Timeline retrieval
- Post creation and interaction
- Profile management
- jsonwebtoken
- @federa/shared
ISC