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

onairos-text-auth

v0.1.0

Published

Provider-neutral server SDK for Onairos text authorization — users authorize apps and share personalization data from a text conversation (Linq iMessage/RCS/SMS today, more providers next).

Readme

onairos-text-auth

Users authorize your app and share their Onairos personalization data from a text conversation — iMessage, RCS, SMS via Linq. One config, one webhook call. Onairos runs the entire auth flow inside the thread.

User:  Connect Onairos
Bot:   What email is on your Onairos account?
User:  [email protected] … 482913 … YES
→ your backend receives a data handoff for exactly what the user approved

Install

npm install onairos-text-auth

You need an Onairos developer API key with data:read, and your Linq webhook signing secret. Node ≥ 18. Framework-agnostic — the SDK takes plain { headers, rawBody, body } from any webhook route.

Quickstart

import express from 'express';
import { createTextAuthRelay } from 'onairos-text-auth';

const app = express();
app.use(express.json({ verify: (req, res, buf) => { req.rawBody = buf; } }));

const relay = createTextAuthRelay({
  onairosApiKey: process.env.ONAIROS_API_KEY,
  webhookSecret: process.env.LINQ_WEBHOOK_SECRET,
  appName: 'My App',
  requestedConfirmations: ['personality', 'preferences'],
  autoExchangeGrants: true
});

app.post('/linq/webhook', async (req, res) => {
  const result = await relay.handleWebhook({
    headers: req.headers,
    rawBody: req.rawBody,
    body: req.body,
    sendMessage: ({ chatId, text }) => myLinqClient.send(chatId, text)
  });

  if (result.handoff) {
    const data = await relay.fetchAuthorizedData({ handoff: result.handoff });
  }
  res.json({ ok: true });
});

Fastify, Next.js, and custom-trigger variants: examples/.

API

| Method | Purpose | |---|---| | createTextAuthRelay(config) | One-time setup | | relay.handleWebhook({...}) | Verify, dedupe, relay, reply, auto-exchange | | relay.startConnect({ body, sendMessage }) | Start the flow from your own pitch wording | | relay.exchangeGrant({ grantId }) | Fresh 1-hour data token, any time within 90 days | | relay.fetchAuthorizedData({ handoff }) | The personalization payload |

Grants are revocable (user texts disconnect). Consent can never be triggered programmatically — YES/NO and email/code only ever come from the user's real messages.

Full reference for humans and AI agents: llms.txt.

LLM-agent apps

If a model runs your thread, add the companion package onairos-text-auth-mcp: a deterministic bridge (flow messages never route through your model) plus six MCP tools.

License

Apache-2.0 · docs.onairos.uk · [email protected]