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

sec-api-dev

v0.1.0

Published

TypeScript/JavaScript client for the sec-api.dev SEC EDGAR API: filings, full-text search, XBRL facts, Form 4, 13F, Form D and FDA catalysts.

Readme

sec-api-dev (JavaScript / TypeScript)

Zero-dependency client for the sec-api.dev SEC EDGAR API, for Node 18+, Bun, Deno and edge runtimes: company lookup, filings, full-text search since 2001, filing text and sections, XBRL facts, parsed Form 3/4/5 and 13F tables, quarterly Form D and insider tables, and an FDA catalyst calendar. Typed responses.

sec-api.dev is independent: not sec-api.io, not affiliated with the SEC.

npm install sec-api-dev

No key needed

import { SecApi } from 'sec-api-dev';

const api = new SecApi();
const { data } = await api.demo('filings', 'NVDA'); // 8 demo tickers, 20 requests an hour
for (const f of data) console.log(f.filingDate, f.form, f.accessionNumber);

Output on November 15, 2026:

2026-02-25 10-K 0001045810-26-000021
2025-02-26 10-K 0001045810-25-000023
2024-02-21 10-K 0001045810-24-000029

With a free key

Get a key at https://sec-api.dev/sign-up (100 requests a month, no card) and set SEC_API_KEY on the server. Never ship the key to a browser.

import { SecApi, SecApiError } from 'sec-api-dev';

const api = new SecApi(); // reads process.env.SEC_API_KEY

const [apple] = (await api.companies('AAPL', { limit: 1 })).data;
const tenKs = await api.filings(apple.cik, { form: '10-K', limit: 3 });
const hits = await api.search('"substantial doubt"', { form: '10-Q', from: '2026-11-01', to: '2026-11-12' });
const revenue = await api.facts(apple.cik, { taxonomy: 'us-gaap', concept: 'RevenueFromContractWithCustomerExcludingAssessedTax', unit: 'USD' });
const risks = await api.extract({ cik: apple.cik, accession: '0000320193-26-000026', document: 'aapl-20260926.htm', form: '10-K', section: '1A' });
const berkshire = await api.holdings('1067983', '0001193125-26-352200', { limit: 5 });
const buys = await api.insiderTransactions({ period: '2026q3', transactionCode: 'P', limit: 10 });

for await (const f of api.pages((p) => api.filings(apple.cik, { form: '8-K', ...p }))) console.log(f.accessionNumber);

try {
  await api.search('"going concern"');
} catch (e) {
  if (e instanceof SecApiError) console.log(e.status, e.code, e.upgradeUrl);
}

Methods map one to one to https://sec-api.dev/openapi.json: companies, company, filings, search, filingIndex, documents, extract, facts, financialSeries, xbrlInstance, insiderTrades, insiderTransactions, holdings, offerings, biotechCalendar, biotechEvents, biotechCompany, biotechRunway, plus the keyless demo and fdaCalendar. Docs: https://sec-api.dev/docs. Plans: https://sec-api.dev/pricing.

Tests

npm test                   # offline, against a local stub server (Node 22.6+ runs the .ts tests directly)
SEC_API_LIVE=1 npm test    # also calls the real public demo
npm run build              # emits dist/ for publishing

Operated by Stunning Couches LLC. MIT licence. Not investment advice.