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

@formsreach/node

v0.2.0

Published

FormsReach Node.js management SDK (forms & submissions)

Downloads

18

Readme

@formsreach/node

Node.js management SDK for FormsReach — list and read forms and submissions with a developer API key.

npm License: MIT

This is not the browser submit SDK. For HTML / React / Vue form submission, use @formsreach/js, @formsreach/react, or @formsreach/vue with the public form key (fr_…).

For AI coding agents, see AGENTS.md.

Install

npm install @formsreach/node
# or: yarn add @formsreach/node / pnpm add @formsreach/node

Requires Node.js ≥ 20.

Auth

Use a developer API key from the FormsReach dashboard (API keys), not the public form submit key.

  • Send as Authorization: Bearer <key>
  • v1 methods need scopes: forms:read, submissions:read
  • Prefer an env var such as FORMSREACH_API_KEY

| Key type | Package | Use | | -------------------------- | ------------------------------ | --------------------------------- | | Developer API key (Bearer) | @formsreach/node | Manage / read forms & submissions | | Public form key (fr_…) | @formsreach/js / react / vue | Public form submit |

Quick start

import { FormsReach, FormsReachClientError } from "@formsreach/node";

const fr = new FormsReach({
  apiKey: process.env.FORMSREACH_API_KEY!,
});

const { items: forms } = await fr.forms.list();
const form = await fr.forms.get(forms[0]!.id);

const page = await fr.submissions.list(form.id, {
  limit: 50,
  cursor: undefined,
  q: "ada@",
  spam: false,
});
const one = await fr.submissions.get(form.id, page.items[0]!.id);
const csv = await fr.submissions.export(form.id);

const { url, expiresIn } = await fr.submissions.getAttachmentUrl(
  form.id,
  one.id,
  "attachment-uuid",
);

All requests go to https://app.formsreach.com. The host is built into the SDK and is not configurable.

Errors

API and network failures throw FormsReachClientError:

try {
  await fr.forms.list();
} catch (e) {
  if (e instanceof FormsReachClientError) {
    // e.formsreach: { status, code, title, detail?, requestId?, type?, errors? }
  }
  throw e;
}

Examples

Related packages

| Package | When to use | | ------------------------------- | ---------------------- | | @formsreach/js | Browser / CDN submit | | @formsreach/react | React / Next.js submit | | @formsreach/vue | Vue / Nuxt submit |

Build

pnpm --filter @formsreach/node build
# dist/index.js, dist/index.d.ts

License

MIT