0.2.0 • Published 8 months ago
@federa/pixelfed v0.2.0
@federa/pixelfed
PixelFed API client for Federa.
Installation
npm install @federa/pixelfedUsage
import { PixelFedClient } from '@federa/pixelfed';
// Create a new client
const client = new PixelFedClient({
instance: 'pixelfed.social',
accessToken: 'your-access-token'
});
// Get timeline
const timeline = await client.getTimeline();
// Create a post with an image
const post = await client.createPost({
caption: 'Beautiful sunset',
media: [
{
file: imageBlob,
description: 'Sunset at the beach'
}
]
});Features
- Authentication
- Timeline retrieval
- Media upload and post creation
- Post interaction (like, comment, etc.)
- Profile management
- Hashtag search
Dependencies
- axios
- @federa/shared
License
ISC