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

@taqlyn/sdk-node

v0.6.1

Published

Taqlyn Node/TypeScript server SDK — Ed25519-signed ShortLink create

Readme

@taqlyn/sdk-node

Full guide: Node.js on the docs site.

Taqlyn server SDK for Node.js / TypeScript. Signs privileged REST with an Ed25519 private key (never send sk_* alone — use the PKCS#8 PEM issued once when credentials are created).

OpenAPI contract: packages/openapi/openapi.yaml (TaqlynEd25519, POST /v1/short-links).

Install

bun add @taqlyn/sdk-node
# or: npm install @taqlyn/sdk-node

From this monorepo package:

cd packages/sdk-node && bun install && bun run build

Quickstart — create a short link

# Optional override: defaults to https://api.taqlyn.com in production
# export TAQLYN_BASE_URL=https://api.taqlyn.com

export TAQLYN_CLIENT_ID=app_test_...          # from Keys.issue (sandbox)
export TAQLYN_PRIVATE_KEY='-----BEGIN PRIVATE KEY-----
...
-----END PRIVATE KEY-----'
import { TaqlynClient } from "@taqlyn/sdk-node";

// Zero-config: baseUrl defaults to process.env.TAQLYN_BASE_URL or "https://api.taqlyn.com"
const client = new TaqlynClient({
  clientId: process.env.TAQLYN_CLIENT_ID!,
  privateKey: process.env.TAQLYN_PRIVATE_KEY!, // PKCS#8 PEM (not sk_*)
});

const link = await client.createShortLink({
  destinationWeb: "https://example.com/offer",
  mode: "web_only",
  trackUniqueUsers: true, // Starter+ — hashed unique visitors on click
  trackOpens: true, // Starter+ — SDK reports POST /v1/events/open
});

console.log(link.shortUrl); // e.g. https://go.localhost/Ab12Cd

Env notes

| Variable | Meaning | |----------|---------| | TAQLYN_BASE_URL | API origin (no trailing slash required) | | TAQLYN_CLIENT_ID | app_test_* or app_live_* | | TAQLYN_PRIVATE_KEY | PKCS#8 PEM (-----BEGIN PRIVATE KEY-----). Literal \n in the value is OK. |

Do not commit private keys. The sk_test_* / sk_live_* string is only a UX handle — the API verifies signatures against the stored public key.

Signing (how it works)

Privileged routes require three headers (see apps/api requireSigned):

  • X-Taqlyn-Client-Id
  • X-Taqlyn-Timestamp — unix seconds (±300s skew)
  • X-Taqlyn-Signature — standard base64 of a 64-byte Ed25519 signature

Canonical message (no trailing newline):

taqlyn-v1
{METHOD}
{PATH}
{unixTimestamp}
{clientId}
{hex(sha256(body))}

Path is the request path only (e.g. /v1/short-links), no query. Empty body hashes as SHA-256 of empty bytes.

Scripts

bun test          # signer unit tests (no live API)
bun run typecheck
bun run build

CI/CD & NPM Publishing

Published via .github/workflows/publish.yml using Tokenless OIDC Trusted Publishing:

  • Zero static tokens: Authenticates with registry.npmjs.org via ambient GitHub Actions OIDC (id-token: write).
  • Sigstore Provenance: Cryptographically signed provenance published with --provenance.

License

MIT — see LICENSE.