0.2.0 • Published 8 months ago

@federa/pixelfed v0.2.0

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

@federa/pixelfed

PixelFed API client for Federa.

Installation

npm install @federa/pixelfed

Usage

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

0.2.0

8 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 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