# Nodejs-agent

Nodejs-agent is a self-hosted development app. This app acts as a digital health monitor for your Node.js software. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/6645/nodejs-agent

## Description

This app acts as a digital health monitor for your Node.js software. It tracks performance and alerts you to errors in real time, ensuring your website or application runs smoothly. By spotting slowdowns early, it helps you provide a better experience for your users.

## Platform availability

Available on 0 of 10 platforms.

## Health score

71/100 (Good), based on 4 of 5 factors.
- Maintained: 100 (last commit 1 day ago)
- Popular: 60 (1,000 GitHub stars)
- Easy to install: 25 (0 install platforms, install notes, Docker image)
- Security check: 73 (no serious findings, 3 minor, CI, tests, OpenSSF Scorecard 6.6/10)

## Links

- Docker Hub: https://hub.docker.com/r/appdynamics/nodejs-agent

## Common questions

### Do I need a New Relic account before configuring the agent?

Yes, you should have a New Relic account before starting. Add your license key and application or service name to the agent configuration file.

### How do I make sure the agent is loaded before my application code?

Run the program with node -r newrelic your-program.js, or require('newrelic') before any other module if you cannot change the start command.

### How is Next.js instrumentation handled?

Use the hybrid agent functionality for Next.js. It includes loading the hybrid agent instrumentation and injecting the browser agent.

### What configuration change is needed for ES Modules?

If you rely on a configuration file, rename it from newrelic.js to newrelic.cjs so it can be properly loaded. The configuration contents behave the same after the rename.

### Can I use the agent in production without testing first?

No, you should test the agent before using it in production. It is an instrumentation tool, so verify it in your environment first.

---
Source: Our Local Host (https://ourlocalhost.com/app/6645/nodejs-agent), the self-hosted and open-source app directory.
