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

@tarangdb/sdk

v1.0.0-alpha.4

Published

Type-safe TarangDB client for generated project schemas.

Downloads

37

Readme

@tarangdb/sdk

Type-safe JavaScript/TypeScript client for TarangDB generated APIs.

Install

Most projects should let the CLI install the SDK and related runtime packages:

npx @tarangdb/cli init

Manual install is still supported:

npm install @tarangdb/sdk

Usage

Generate the project client with @tarangdb/cli, then import the ready-to-use tarang client:

import { tarang } from "./src/tarang.generated.js";

const customers = await tarang.table("customers").list();

await tarang.table("customers").create({
  fullName: "Ada Lovelace",
  email: "[email protected]",
});

JavaScript projects can use the generated CommonJS client:

const { tarang } = require("./src/tarang.generated.js");

async function main() {
  const customers = await tarang.table("customers").list();
  console.log(customers.data);
}

main().catch(console.error);

If you prefer manual construction, the client still reads TARANG_API_KEY, TARANG_PROJECT_ID, and TARANG_BASE_URL from process.env:

import { TarangClient } from "@tarangdb/sdk";
import type { TarangSchema } from "./src/tarang.generated.js";

const tarang = new TarangClient<TarangSchema>();

Configuration

TarangClient accepts:

  • apiKey: Tarang API key. Falls back to TARANG_API_KEY.
  • projectId: Tarang project UUID. Falls back to TARANG_PROJECT_ID.
  • baseUrl: Tarang API base URL. Falls back to TARANG_BASE_URL or https://api.tarangdb.com.
  • fetch: optional custom fetch implementation for tests, serverless runtimes, or polyfills.
  • timeoutMs: request timeout in milliseconds. Defaults to 30000.
  • headers: extra headers for each request.

API

client.table("customers").list(options);
client.table("customers").get(rowId);
client.table("customers").create(input);
client.table("customers").update(rowId, patch);
client.table("customers").delete(rowId);

API errors throw TarangError with code, status, and optional details.

Status

This is an alpha release. Public API names may still change before stable.