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

geckodupe

v0.1.1

Published

Local-first data normalization and spam/idempotency engine. Use a Geckodupe API key for hosted burst and event dedupe — no Cloudflare setup required.

Readme

geckodupe

Local-first data normalization and spam / idempotency engine.

The biggest value isn’t removing duplicates. It’s that everything first becomes comparable.

npm install geckodupe

You only need a Geckodupe API key. You do not need Cloudflare, Workers, or KV of your own — hosted burst memory and event dedupe run on Geckodupe’s API.

https://geckodupe-spam.nic-58f.workers.dev

What it solves

| Problem | How | |---------|-----| | Double-click Submit | checkEvent / middleware → 409 on duplicate fingerprint | | Browser / flaky network retries | Same normalized fingerprint within the burst window | | Identical webhook deliveries | Pass eventId (delivery id) or Idempotency-Key | | Confirmation page refresh storms | Event / fingerprint memory per API key tenant | | Bots resubmitting the same payload | Normalize → fingerprint → score / block | | Spam floods in forms and lists | Local or hosted score / clean |

Quick start (hosted)

import { createClient } from 'geckodupe';

const gecko = createClient({ apiKey: process.env.GECKODUPE_API_KEY! });

const result = await gecko.checkEvent({
  fields: req.body,
  eventId: req.headers['idempotency-key']
});

if (result.duplicate || result.decision === 'block') {
  // reject — already seen or spam
}

Local (no network)

Normalization and scoring run offline — useful in tests, Electron main, and edge cases before calling the API.

import { normalize, fingerprint, scorePayload, cleanText } from 'geckodupe';

const norm = normalize(rawText);
const fp = fingerprint(formFields, { mode: 'form' });
const score = scorePayload(formFields, { mode: 'form' });
const cleaned = cleanText(logDump, { mode: 'list' });

Framework helpers

import { createClient, createExpressMiddleware } from 'geckodupe';
// also: createFastifyPlugin, createHonoMiddleware, idempotencyGuard

const gecko = createClient({ apiKey: process.env.GECKODUPE_API_KEY! });
app.post('/submit', createExpressMiddleware(gecko), handler);

See examples/ for Express, Fastify, Hono, Bun, Cloudflare Workers, and plain Node.

React / Vue / Electron

  • React / Vue: call Geckodupe from server routes, server actions, or your backend only. Never put GECKODUPE_API_KEY in a browser bundle.
  • Electron: keep the key in the main/preload process via env or secure storage; use local normalize / fingerprint in the renderer if needed without the key.

API surface

| Method | Path | Purpose | |--------|------|---------| | client.score | POST /v1/spam/score | Score a payload | | client.clean | POST /v1/spam/clean | Despam text | | client.check | POST /v1/spam/check | Score + burst memory | | client.checkEvent | POST /v1/events/check | Idempotency / retries / webhooks | | client.getBlocklist / putBlocklist | /v1/spam/blocklist | Per-key blocklist |

Auth: Authorization: Bearer <GECKODUPE_API_KEY>.

Anti-patterns

  • Shipping the API key to the browser or a public repo
  • Expecting customers to create their own Cloudflare Worker for Geckodupe
  • Skipping normalization and comparing raw timestamps / UUIDs / query noise

Browser app

The visual tool (text, folders, media, despam) stays local-first in the browser: Geckodupe. Package @flareform/geckodupe is the static app; geckodupe is this developer SDK.