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

@netacea/vercel

v0.1.33

Published

Netacea Vercel CDN Integration

Readme

Netacea Vercel

Netacea Header

TypeScript

@netacea/vercel is a package designed to add Netacea functionality to Vercel edge middleware.

This package has been released for Beta testing and interfaces may change without warning.

Installation

Within your Vercel project, run:

npm i @netacea/vercel

Netacea Config

This integration is best configured using Vercel environment variables.

Please consult the following table for the environment variables which must be set. The Netacea Solutions Engineering team can assist in providing this config.

| Name | Description | |-----------------------------------|-------------------------------------------------| | NETACEA_COOKIE_NAME | Name of the Netacea session cookie. | | NETACEA_CAPTCHA_COOKIE_NAME | Name of the Netacea captcha cookie. | | NETACEA_PROTECTOR_API_URL | URL for the Netacea Protector API. | | NETACEA_PROTECTION_MODE | The Protection Mode for the integration. |

The following variables should be set as sensitive:

| Name | Description | |-----------------------------------|-------------------------------------------------| | NETACEA_API_KEY | API Key to contact Netacea services. | | NETACEA_COOKIE_ENCRYPTION_KEY | Key used to secure the session cookie. | | NETACEA_SECRET_KEY | Additional key for securing the session cookie. | | NETACEA_KINESIS_ACCESS_KEY | Key to write to Netacea Kinesis ingest. | | NETACEA_KINESIS_SECRET_KEY | Key to write to Netacea Kinesis ingest. | | NETACEA_KINESIS_STREAM_NAME | Name of the stream to write ingested logs. |

Middleware Setup

The following code should be placed in the middleware.ts file within your project:

import { NextRequest, NextResponse } from 'next/server'
import { waitUntil } from '@vercel/functions'
import {
  NetaceaVercelIntegration,
  getNetaceaArgsFromEnv,
  type NetaceaVercelIntegrationArgs
} from '@netacea/vercel'

let netaceaWorker: NetaceaVercelIntegration | undefined = undefined

export default async function middleware(req: NextRequest) {
  try {
    /**
     * Initialize the Netacea worker.
     */
    if (netaceaWorker === undefined) {
      netaceaWorker = new NetaceaVercelIntegration({
        ...getNetaceaArgsFromEnv(process.env)
      } as NetaceaVercelIntegrationArgs)
    }

    // Run Netacea integration
    const event = { request: req }
    const netaceaResult = await netaceaWorker.run(event, originRequest)

    // Asynchronously ingest the Netacea result, without adding latency to the request
    waitUntil(netaceaWorker.ingest(req, netaceaResult))

    return netaceaResult.response
  } catch (error) {
    console.error("Netacea Middleware Error:", error)
    return NextResponse.next()
  }
}

async function originRequest(request: Request): Promise<NextResponse> {
  return NextResponse.next({
    headers: request.headers
  })
}