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

@outreply/node

v1.1.0

Published

Official OutReply Node.js & TypeScript SDK — schedule posts, moderate comments, and subscribe to signed webhooks.

Readme

@outreply/node

Official Node.js & TypeScript SDK for the OutReply Developer API.

npm install @outreply/node

Quick start

import OutReply from "@outreply/node";

const outreply = new OutReply(process.env.OUTREPLY_API_KEY!);

// 1. Verify your key works
const me = await outreply.account.retrieve();
console.log(`Signed in as ${me.email}`);

// 2. Schedule a post (idempotency-safe — retry to your heart's content)
const post = await outreply.posts.schedule({
  page_id: "65f...",
  message: "Launching tomorrow 🚀",
  scheduled_at: "2026-05-01T10:00:00Z",
});

// 2b. …or publish one right now.
const live = await outreply.posts.publish({
  page_id: "65f...",
  message: "We're live! 🎉",
  media_urls: ["https://cdn.example.com/hero.jpg"],
});
console.log(live.platform_post_id);

// 3. Subscribe to real-time events
const hook = await outreply.webhooks.create({
  url: "https://example.com/webhooks/outreply",
  events: ["post.published", "post.failed"],
});
console.log("Store this secret — it's shown only once:", hook.secret);

Features

  • 🔐 Bearer-token auth. Supports scoped keys and sandbox tokens.
  • 🔁 Automatic Idempotency-Key on every mutating call.
  • 🪝 Built-in webhook signature verifier (@outreply/node/webhooks).
  • ⏱ Exponential-backoff retries that respect Retry-After.
  • 🧯 Typed errors mapped 1:1 with the error catalog.
  • 📦 First-party TypeScript types. Zero runtime dependencies.

Resources

| Namespace | Methods | |-----------|---------| | outreply.account | retrieve() | | outreply.brands | list() | | outreply.pages | list({ brand_id?, platform? }) | | outreply.posts | schedule(), listScheduled(), retrieveScheduled(), cancelScheduled(), listPublished() | | outreply.comments | list(), reply() | | outreply.media | upload(), list(), retrieve(), delete() | | outreply.webhooks | list(), retrieve(), create(), delete() |

Webhook verification

import express from "express";
import { constructEvent } from "@outreply/node/webhooks";

const app = express();

app.post(
  "/webhooks/outreply",
  express.raw({ type: "application/json" }),
  (req, res) => {
    try {
      const event = constructEvent({
        payload: req.body, // raw Buffer — NOT express.json()
        header: req.header("X-OutReply-Signature"),
        secret: process.env.OUTREPLY_WEBHOOK_SECRET!,
        timestampHeader: req.header("X-OutReply-Timestamp"),
        toleranceSec: 300,
      });
      console.log("Received:", event.type, event.data);
      res.sendStatus(200);
    } catch {
      res.sendStatus(400);
    }
  }
);

The verifier is dual-signature aware — it accepts comma-separated signatures so your receiver keeps accepting traffic during a 24-hour secret-rotation grace window.

Error handling

import {
  OutReply,
  OutReplyRateLimitError,
  OutReplyValidationError,
  OutReplyQuotaError,
} from "@outreply/node";

try {
  await outreply.posts.schedule({ /* ... */ });
} catch (err) {
  if (err instanceof OutReplyValidationError) {
    console.error("Bad input:", err.details);
  } else if (err instanceof OutReplyRateLimitError) {
    console.error(`Slow down — retry in ${err.retryAfterSec}s`);
  } else if (err instanceof OutReplyQuotaError) {
    console.error("Daily quota exceeded. Upgrade your plan.");
  } else {
    throw err;
  }
}

Configuration

new OutReply({
  apiKey: process.env.OUTREPLY_API_KEY!,
  timeoutMs: 30_000,
  maxRetries: 2, // 3 attempts total
  defaultHeaders: { "X-Tenant": "acme-co" },
});

License

MIT © OutReply