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

@floopfloop/sdk

v0.1.0-alpha.3

Published

Official Node.js SDK for the FloopFloop API

Readme

@floopfloop/sdk

npm version npm downloads Node.js Version CI License: MIT Types: TypeScript

Official Node.js SDK for the FloopFloop API. Build a project, chat with it, manage secrets and API keys from any Node 20+ codebase.

Install

npm install @floopfloop/sdk

Quickstart

Grab an API key: floop keys create my-sdk (via the floop CLI) or the dashboard → Account → API Keys. Business plan required to mint new keys.

import { FloopClient } from "@floopfloop/sdk";

const floop = new FloopClient({ apiKey: process.env.FLOOP_API_KEY! });

// Create a project and wait for it to go live.
const { project } = await floop.projects.create({
  prompt: "A landing page for a cat cafe with a sign-up form",
  name: "Cat Cafe",
  subdomain: "cat-cafe",
  botType: "site",
});
const live = await floop.projects.waitForLive(project.id);
console.log("Live at:", live.url);

Streaming progress

for await (const event of floop.projects.stream(project.id)) {
  console.log(`${event.status} (${event.step}/${event.totalSteps}) — ${event.message}`);
}

Error handling

Every call throws FloopError on non-2xx. Switch on .code:

import { FloopError } from "@floopfloop/sdk";

try {
  await floop.projects.create({ prompt: "..." });
} catch (err) {
  if (err instanceof FloopError) {
    if (err.code === "RATE_LIMITED") {
      await new Promise((r) => setTimeout(r, err.retryAfterMs ?? 5000));
    } else if (err.code === "UNAUTHORIZED") {
      console.error("Check your FLOOP_API_KEY.");
    } else {
      console.error(`[${err.requestId}] ${err.code}: ${err.message}`);
    }
  }
  throw err;
}

Resources

| Namespace | Methods | |---|---| | floop.projects | create, list, get, status, cancel, reactivate, refine, conversations, stream, waitForLive | | floop.secrets | list, set, remove | | floop.apiKeys | list, create, remove | | floop.library | list, clone | | floop.subdomains| check, suggest | | floop.uploads | create (for attaching files to projects.refine) | | floop.usage | summary | | floop.user | me |

For longer end-to-end patterns — streaming a build, refining mid-deploy, attachment uploads, key rotation, retry-with-backoff — see the cookbook.

Authentication

Two token shapes are accepted on apiKey:

| Prefix | Source | Plan gate | |---|---|---| | flp_… | Dashboard → API Keys, floop keys create | Business (to mint) | | flp_cli_… | floop login device token | Free (unlimited) |

CLI device tokens (flp_cli_…) work here too — handy for local scripts that already logged in through the CLI.

Configuration

new FloopClient({
  apiKey: "flp_...",
  baseUrl: "https://www.floopfloop.com",    // override for staging
  timeoutMs: 30_000,
  pollIntervalMs: 2_000,
  userAgent: "myapp/1.2.3",                  // appended to User-Agent
  fetch: customFetchImpl,                    // for proxies / tests
});

License

MIT. See LICENSE.

Related

  • floop-cli — the CLI that ships the same backend surface as a terminal UI.
  • Customer docs — API reference, dashboard walkthroughs.