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

@timbrix/sdk

v0.3.1

Published

TypeScript SDK for Timbrix API

Downloads

171

Readme

@timbrix/sdk

TypeScript/JavaScript client for the Timbrix API.

Installation

npm install @timbrix/sdk
# or
pnpm add @timbrix/sdk
# or
yarn add @timbrix/sdk

Usage

With API Key (Machine-to-Machine)

import { TimbrixClient } from "@timbrix/sdk"

const client = new TimbrixClient({
  apiKey: "sk_live_abc123...",
  baseUrl: "https://api.timbrix.com", // optional, defaults to localhost
})

// List webhooks
const webhooks = await client.webhooks.list("organization-id")

// Create webhook
const webhook = await client.webhooks.create("organization-id", {
  url: "https://example.com/webhooks",
  events: ["organization.created", "member.added"],
})

With Bearer Token (User Authentication)

import { TimbrixClient } from "@timbrix/sdk"

const client = new TimbrixClient({
  bearerToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  baseUrl: "https://api.timbrix.com",
})

// List organizations
const orgs = await client.organizations.list()

// Create organization
const org = await client.organizations.create({
  name: "Acme Corp",
  slug: "acme-corp",
})

API Reference

Organizations

// List all organizations
await client.organizations.list()

// Get organization by slug
await client.organizations.get("acme-corp")

// Create organization
await client.organizations.create({
  name: "Acme Corp",
  slug: "acme-corp",
})

// Update organization
await client.organizations.update("acme-corp", {
  name: "New Name",
  logo: "https://example.com/logo.png",
})

// Delete organization
await client.organizations.delete("acme-corp")

Webhooks

// List webhooks
await client.webhooks.list("organization-id")

// Get webhook
await client.webhooks.get("organization-id", "webhook-id")

// Create webhook
await client.webhooks.create("organization-id", {
  url: "https://example.com/webhooks",
  events: ["organization.created"],
})

// Update webhook
await client.webhooks.update("organization-id", "webhook-id", {
  url: "https://new-url.com/webhooks",
  isActive: false,
})

// Delete webhook
await client.webhooks.delete("organization-id", "webhook-id")

// Get delivery history
await client.webhooks.deliveries("organization-id", "webhook-id")

// Send test webhook
await client.webhooks.test("organization-id", "webhook-id")

API Keys

// List API keys
await client.apiKeys.list("organization-id")

// Get API key
await client.apiKeys.get("organization-id", "api-key-id")

// Create API key
await client.apiKeys.create("organization-id", {
  name: "Production Key",
  expiresAt: "2025-12-31T23:59:59Z", // optional
})

// Update API key
await client.apiKeys.update("organization-id", "api-key-id", {
  name: "New Name",
})

// Revoke API key
await client.apiKeys.delete("organization-id", "api-key-id")

// Get usage stats
await client.apiKeys.stats("organization-id", "api-key-id")

// Validate API key
await client.apiKeys.validate("organization-id", "sk_live_abc123...")

Error Handling

import { TimbrixClient, type TimbrixError } from "@timbrix/sdk"

const client = new TimbrixClient({ apiKey: "sk_live_abc123..." })

try {
  await client.organizations.get("non-existent")
} catch (error) {
  const timbrixError = error as TimbrixError
  console.error(`Error ${timbrixError.statusCode}: ${timbrixError.message}`)
}

TypeScript Support

The client is written in TypeScript and includes full type definitions:

import type {
  Organization,
  Webhook,
  ApiKey,
  CreateWebhookInput,
  WebhookEvent,
} from "@timbrix/sdk"

License

MIT