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

cloudeye-sdk

v0.2.0

Published

Report your app's errors to CloudEye — grouped, counted, and explained by AI next to your AWS metrics.

Readme

cloudeye-sdk

Report your app's errors to CloudEye — grouped, counted, and explained by AI right next to your AWS metrics, deploys and cost.

The SDK captures JavaScript errors, unhandled promise rejections and failed fetch() calls, batches them, and posts them to your CloudEye ingest endpoint. It is ~2 KB, has zero dependencies, and is built to never break or slow down your app: every path is wrapped, failures are silent, and payloads go as CORS simple requests (no preflight, no server CORS config).

Install

npm install cloudeye-sdk
import CloudEye from "cloudeye-sdk";

CloudEye.init({
  key: "ce_pk_your_publishable_key",   // CloudEye → Settings → API keys
  environment: "prod",                 // your app's environment label
  release: "1.4.2",                    // git SHA or version — maps errors to deploys
});

Or as a script tag (no bundler):

<script src="cloudeye.iife.js"></script>
<script>CloudEye.init({ key: "ce_pk_…", environment: "prod" });</script>

Errors appear in CloudEye under App errors, where each group has an AI Explain button that correlates it with your live AWS data.

Options

| Option | Default | What it does | | --- | --- | --- | | key | — (required) | Publishable API key (ce_pk_…). Safe to ship in client bundles — it can only report errors, never read anything. | | endpoint | CloudEye cloud | Ingest URL. Point it at http://127.0.0.1:4630/api/ingest against a local CloudEye, or your staging host. | | environment | "production" | Free-form environment label shown and filterable in CloudEye. | | release | "" | Release/version identifier, so a spike lines up with the deploy that caused it. | | sampleRate | 1 | Fraction of errors to report (0–1). | | captureFetch | true | Also report fetch() network failures and 5xx responses. | | beforeSend | — | (event) => event \| null. Inspect, scrub, or drop events before they are queued. |

Manual capture

try {
  risky();
} catch (err) {
  CloudEye.captureException(err, { orderId: "…" });   // second arg: small context object
}

Keys: publishable vs secret

  • ce_pk_… publishable — ships inside web/mobile bundles. Ingest-only, forever.
  • ce_sk_… secret — for your servers only; treat it like a password. Also accepted by the ingest API (send it as Authorization: Bearer ce_sk_… from server-side code).

Both are created, listed (masked) and revoked in CloudEye → Settings → API keys. A key's full value is shown exactly once, at creation. Rotation = create a new key, deploy it, revoke the old one.

Privacy & safety notes

  • The SDK sends: error name/message/stack, the page URL, your environment/release labels, the browser user-agent, and anything you pass in meta/captureException context. Nothing else — no cookies, no user identity, no request bodies.
  • Payload fields are hard-capped client-side and re-validated server-side.
  • Duplicate errors are throttled client-side (one per 5 minutes per unique error) and rate-limited per key server-side.
  • A revoked key makes the SDK go silent for the session — your app is never affected.

Publishing (maintainers)

cd sdk
npm install
npm publish --access public   # prepublishOnly runs tests + build