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

@oxygenlow/simplecookies

v0.1.1

Published

SimpleCookies: 100% free cookie consent manager. Banner, script blocking, cookie scanner, consent receipts, and dashboard for any site.

Readme

@oxygenlow/simplecookies

npm version License

SimpleCookies is the 100% free cookie consent manager by Oxygen Low's Software — no limits, no paywalls. Drop a banner on any site, block non-essential scripts until consent, manage the cookie declaration, and keep consent receipts.

Features

  • Consent banner + preferences modal — Accept All / Reject All / Customize, per-category toggles (Necessary, Preferences, Statistics, Marketing, Custom), position + theme controls, 6 dashboard languages.
  • Script blocking — data-simplecookies-category="marketing|statistics|preferences|custom" scripts stay inert until the visitor consents.
  • Auto cookie scanner — static scan infers cookies from third-party scripts, inline trackers, and Set-Cookie headers; the dashboard declaration stays editable.
  • Consent receipts — every choice is stored locally and posted to the dashboard audit log with a consent ID, policy version, and timestamp.
  • Consent Mode v2 — dataLayer updates for ad_storage / analytics_storage / functionality_storage.
  • Dashboard + API key — unlimited projects, keys, and consents.

Installation

npm install @oxygenlow/simplecookies

Quick Start

CDN banner (any site)

<script src="https://oxygenlow.com/simplecookies.js" data-api-key="sk_your_key" defer></script>

Get sk_... from the SimpleCookies dashboard.

React

import { SimpleCookiesProvider, SimpleCookiesBanner } from "@oxygenlow/simplecookies/react";

export default function App() {
  return (
    <SimpleCookiesProvider config={{ apiKey: process.env.NEXT_PUBLIC_SIMPLECOOKIES_KEY! }}>
      <SimpleCookiesBanner />
      {/* gated script */}
      <script src="https://www.googletagmanager.com/gtag/js?id=G-XXX" data-simplecookies-category="statistics" />
    </SimpleCookiesProvider>
  );
}

Hono (server)

import { Hono } from "hono";
import { createSimpleCookies } from "@oxygenlow/simplecookies/hono";

const app = new Hono();
app.use("*", createSimpleCookies({ apiKey: process.env.SIMPLECOOKIES_KEY! }));
app.get("/", (c) => {
  const { project } = c.get("simpleCookies") as any;
  return c.html(`<h1>${project?.name || ""}</h1>`);
});

Next.js

// middleware.ts
import { createNextMiddleware } from "@oxygenlow/simplecookies/next";
export const middleware = createNextMiddleware({ apiKey: process.env.SIMPLECOOKIES_KEY! });
// app/layout.tsx
import { SimpleCookiesProvider } from "@oxygenlow/simplecookies/react";

Gating scripts

<script src="https://www.googletagmanager.com/gtag/js?id=G-XXX" data-simplecookies-category="statistics"></script>
<script src="https://connect.facebook.net/en_US/fbevents.js" data-simplecookies-category="marketing"></script>

Supported categories: necessary, preferences, statistics, marketing, custom.

Consent storage

Consent is written to localStorage + cookie (simplecookies_consent) and, when online, posted to POST /api/simplecookies/consent. Users can re-open preferences via SimpleCookiesProvider's client or dispatch simplecookies:reopen.

License

MIT