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

@posthubify/node

v0.1.1

Published

Official PostHubify Node.js/TypeScript SDK — zero-dependency client for the /v1 API.

Downloads

21

Readme

@posthubify/node

Official TypeScript/Node SDK for the PostHubify Public API (/v1) — zero dependencies, Node 18+.

import { Posthubify, PosthubifyError } from '@posthubify/node';

const ph = new Posthubify({
  apiKey: process.env.POSTHUBIFY_API_KEY!, // dashboard → API Keys (sk_…)
  baseUrl: 'https://api.example.com/v1',
});

// Publish a post
const post = await ph.posts.create({
  content: 'Hello world 👋',
  accountIds: ['<account-id>'],
  publish: true,
});

// OTP verification flow
const sent = await ph.otp.send({ senderId: '<sender-row-id>', to: '+905xxxxxxxxx', appName: 'MyApp' });
const result = await ph.otp.verify({ senderId: '<sender-row-id>', to: '+905xxxxxxxxx', code: '123456' });
// result.status: 'approved' | 'rejected' | 'expired' | 'max_attempts_exceeded'

// Branded SMS + delivery tracking (DLR)
const sms = await ph.sms.send({ senderId: '<sender-row-id>', to: '+4477…', text: 'Hi!' });
const status = await ph.sms.get(sms.messageId!); // queued → sent → delivered | delivery_unconfirmed | failed

// Errors are thrown as typed exceptions
try {
  await ph.sms.send({ senderId: 'x', to: 'y', text: 'z' });
} catch (e) {
  if (e instanceof PosthubifyError) console.error(e.status, e.code, e.message);
}

Resources covered: profiles · accounts · posts · media · analytics · validate · webhooks · logs · inbox (conversations/messages) · comments · reviews · contacts · sequences · numbers · senders · sms · otp.

Machine-readable definition of the API surface: GET /v1/openapi.json (no auth required). The SDK's correctness is guaranteed by the contract tests in apps/server/src/sdk-contract.test.ts (which connect to the real server implementation) and by the route↔spec consistency test in openapi.test.ts.