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

@osmove/backlog-sdk

v1.3.2

Published

TypeScript SDK for Backlog — typed client for the OpenAPI-defined REST API (local or hosted at backlog.so). Pairs with the backlog CLI and Desktop app.

Readme

@osmove/backlog-sdk

TypeScript SDK for Backlog Cloud — a typed client for the backlog.so REST API.

npm version license

Scope. This SDK targets the Backlog Cloud backend (the hosted SaaS). It is not a client for the local backlog serve server bundled in the backlog CLI — that server has its own evolving API and does not expose Cloud's auth, billing, or AI-proxy endpoints. If you self-host the Backlog Cloud Rails backend at your own URL, point the SDK at it via baseUrl.

Install

npm install @osmove/backlog-sdk
# or pnpm/yarn/bun

Quickstart

import { BacklogClient } from "@osmove/backlog-sdk";

const backlog = new BacklogClient({
  baseUrl: "https://backlog.so/api/v1", // or your self-hosted URL
});

await backlog.signup("[email protected]", "password123");
// the SDK now holds your token; subsequent calls are authenticated

const project = await backlog.createProject("My Team");
console.log(project.id, project.slug);

const task = await backlog.createTask(project.id, {
  external_id: "TASK-1",
  title: "Implement scheduler",
  priority: "P1",
});

const tasks = await backlog.listTasks(project.id);
console.log(tasks);

// Drive an agent through the proxy — tokens metered against your plan
const reply = await backlog.aiMessages(project.id, {
  model: "claude-haiku-4-5-20251001",
  max_tokens: 256,
  messages: [{ role: "user", content: "Summarize: " + tasks[0].title }],
});
console.log(reply.content);

const usage = await backlog.getUsage(project.id);
console.log(`${usage.usage.ai_tokens} / ${usage.limits.ai_tokens_per_month} tokens used`);

API

Auth

  • signup(email, password){ user, token, expires_at }
  • login(email, password) → idem
  • logout() → void
  • me(){ user }

Projects

  • listProjects()Project[]
  • createProject(name)Project
  • getProject(id)Project

Tasks

  • listTasks(projectId)Task[]
  • createTask(projectId, input)Task

Subtasks

  • listSubtasks(projectId)Subtask[]
  • createSubtask(projectId, input)Subtask

Runs

  • listRuns(projectId, status?)Run[]
  • createRun(projectId, input)Run

Billing

  • getBillingConfig(){ publishable_key, prices } — Stripe.js bootstrap data
  • getBilling(projectId)Subscription — current plan, status, limits
  • createCheckoutSession(projectId, { plan, interval, success_url, cancel_url }){ url, session_id }
  • createPortalSession(projectId, { return_url }){ url }

Usage

  • getUsage(projectId)UsageReport — month-to-date AI tokens / calls / quota

AI proxy

  • aiMessages(projectId, { model, messages, max_tokens, system, temperature })AiMessageResponse — Anthropic Messages passthrough, billed against the project quota

Self-hosting the Backlog Cloud backend

If you run your own deployment of the Backlog Cloud Rails backend, point the SDK at it via baseUrl or the BACKLOG_API_URL env var:

const backlog = new BacklogClient({ baseUrl: "https://backlog.example.com/api/v1" });
export BACKLOG_API_URL=https://backlog.example.com/api/v1

Note: this is not the same thing as backlog serve (the local kanban server bundled with the CLI). backlog serve exposes its own /api/v1/* shape that does not match this SDK.

Token storage

The SDK keeps the token in memory. Persist it yourself if you want it to survive restarts.

backlog.setToken(loadFromDisk());
const fresh = await backlog.login("[email protected]", "pw");
saveToDisk(fresh.token);

Type safety

Types are auto-generated from the OpenAPI spec. Every endpoint, parameter, and response shape is type-checked against the live API contract. Schema changes to the backend trigger compile errors on consumers.

License

Apache-2.0