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 🙏

© 2025 – Pkg Stats / Ryan Hefner

securenow

v4.0.6

Published

OpenTelemetry instrumentation for Node.js and Next.js - Send traces to SigNoz or any OTLP backend

Downloads

758

Readme

SecureNow

OpenTelemetry instrumentation for Node.js and Next.js applications - send traces to SigNoz or any OTLP-compatible backend.

Official npm package: securenow


🚀 Quick Start

For Next.js Applications

The easiest way to add observability to Next.js!

# Just install - setup is automatic!
npm install securenow

🎉 The installer will automatically:

  • Detect your Next.js project
  • Create instrumentation.ts (or .js)
  • Create .env.local template

Just answer "Y" when prompted!

Then configure your .env.local:

SECURENOW_APPID=my-nextjs-app
SECURENOW_INSTANCE=http://your-signoz-server:4318

Alternative: Use the CLI command

npx securenow init

Done! 🎉 See Next.js Complete Guide for details.


For Node.js Applications (Express, Fastify, NestJS, etc.)

# 1. Install
npm install securenow

# 2. Set environment variables
export SECURENOW_APPID=my-app
export SECURENOW_INSTANCE=http://your-signoz-server:4318

# 3. Run with preload
NODE_OPTIONS="-r securenow/register" node app.js
# or
NODE_OPTIONS="-r securenow/register" npm start

📦 Installation

npm install securenow
# or
yarn add securenow
# or
pnpm add securenow

⚙️ Configuration

Environment Variables

# Required: Your application identifier
SECURENOW_APPID=my-app-name

# Optional: Your SigNoz/OTLP collector endpoint
# Default: http://46.62.173.237:4318
SECURENOW_INSTANCE=http://your-signoz-server:4318

# Optional: Additional configuration
SECURENOW_NO_UUID=1                         # Don't append UUID to service name
OTEL_LOG_LEVEL=info                         # debug|info|warn|error
SECURENOW_DISABLE_INSTRUMENTATIONS=fs,dns   # Disable specific instrumentations
OTEL_EXPORTER_OTLP_HEADERS="x-api-key=..."  # Authentication headers

Legacy Environment Variables (still supported)

export securenow=<API-KEY>
export securenow_instance='http://<dedicated_instance>:4318'

🎯 Supported Frameworks & Libraries

SecureNow automatically instruments:

Web Frameworks

  • ✅ Next.js (App Router & Pages Router)
  • ✅ Express.js
  • ✅ Fastify
  • ✅ NestJS
  • ✅ Koa
  • ✅ Hapi

Databases

  • ✅ PostgreSQL
  • ✅ MySQL / MySQL2
  • ✅ MongoDB
  • ✅ Redis

Other

  • ✅ HTTP/HTTPS requests
  • ✅ GraphQL
  • ✅ gRPC
  • ✅ And many more via OpenTelemetry auto-instrumentation

📚 Documentation


🆘 Support

  • Website: securenow.ai
  • Issues: Report bugs and request features
  • Documentation: Full documentation and guides

📄 License

ISC