npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@celluloid/peertube-api

v1.4.1

Published

A TypeScript client library for the [PeerTube](https://joinpeertube.org) REST API, generated from the official OpenAPI specification. This package provides a fully type-safe fetch client for interacting with PeerTube instances.

Readme

@celluloid/peertube-api

A TypeScript client library for the PeerTube REST API, generated from the official OpenAPI specification. This package provides a fully type-safe fetch client for interacting with PeerTube instances.

Features

  • Fully Type-Safe: Complete TypeScript types generated from the PeerTube OpenAPI specification
  • Fetch API: Uses the native Fetch API for HTTP requests
  • Modern: Built with modern TypeScript and ES modules
  • Comprehensive: Supports all PeerTube API endpoints

Installation

pnpm add @celluloid/peertube-api

Or with npm:

npm install @celluloid/peertube-api

Usage

Basic Example

import { createClient } from '@celluloid/peertube-api/client';
import { getVideos } from '@celluloid/peertube-api';

const client = createClient({
  baseUrl: 'https://peertube.example.com',
});

const response = await getVideos({
  client,
  query: {
    start: 0,
    count: 10,
  },
});

console.log(response.data);

With Authentication

import { createClient } from '@celluloid/peertube-api/client';
import { getUserInfo } from '@celluloid/peertube-api';

const client = createClient({
  baseUrl: 'https://peertube.example.com',
  headers: {
    Authorization: 'Bearer YOUR_ACCESS_TOKEN',
  },
});

const userInfo = await getUserInfo({ client });
console.log(userInfo.data);

Custom Configuration

import { createClient } from '@celluloid/peertube-api/client';

const client = createClient({
  baseUrl: 'https://peertube.example.com',
  headers: {
    'User-Agent': 'MyApp/1.0',
  },
  fetch: customFetch,
});

client.setConfig({
  baseUrl: 'https://another-instance.com',
});

API Reference

The client is generated from the PeerTube OpenAPI specification (v8.0.0). All API endpoints are available through the SDK functions exported from @celluloid/peertube-api/client/sdk.

For detailed API documentation, see the PeerTube REST API Reference.

Development

Prerequisites

  • Node.js (v18 or higher)
  • pnpm (v9 or higher)

Setup

  1. Clone the repository
  2. Install dependencies:
pnpm install

Generate Client

pnpm run generate

Build

pnpm run build

Type Checking

pnpm run typecheck

License

MIT