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

@zboule/wasp-client

v0.5.2

Published

Call wasp from your API: post messages to a thread, read its feed, interrupt, cancel.

Readme

@zboule/wasp-client

What your API calls to use wasp.

import { createWaspClient } from '@zboule/wasp-client';
import { Resource } from 'sst';

const wasp = createWaspClient(Resource.Agent); // the linked WaspAgent

// After YOUR check that the user may access this thread:
await wasp.post(threadId, { text, deliver: 'asap' });
const { state, queue, entries, cursor } = await wasp.feed(threadId, { after });
await wasp.interrupt(threadId);
await wasp.cancel(threadId, messageId);
await wasp.deleteThread(threadId);

The client checks no permissions: thread ownership is your app's job. Thread ids are UUIDs.

Files

The browser uploads straight to S3, so files never pass through your API (or its body size limit):

// 1. POST /threads/:id/uploads { name, mediaType, size }
const { ref, url, fields } = await wasp.upload(threadId, { name, mediaType, size });
// 2. the browser POSTs multipart form data to `url`: every entry of `fields`, then the file, last.
//    `size` is signed exactly: send the file's own byte count (File.size), or S3 refuses it
// 3. POST /threads/:id/messages { text, files: [ref] }
await wasp.post(threadId, { text, files: [ref] });

The agent finds each file at files/<id>/<name> in its working directory. In feed, attachments on queued and delivered messages carry a url that downloads the file for 15 minutes. For a link that never goes stale, serve GET /threads/:id/files?ref= as a redirect to await wasp.download(threadId, ref), which signs a fresh one (this thread's files only). Limits default to 25 MB per file and 10 files per message: createWaspClient(Resource.Agent, { limits: { maxFileBytes, maxFiles } }).