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

pointa-server-logger

v0.2.3

Published

Capture backend server logs for Pointa bug reports

Readme

pointa-server-logger

Capture backend server logs for Pointa bug reports. When you record a bug with the Pointa Chrome extension, this package streams your server's console output to include in the bug report timeline.

Installation

npm install pointa-server-logger

Quick Start

Add one line to your server's entry point:

// At the top of your server file (e.g., server.js, index.js, app.js)
import 'pointa-server-logger';

// Your existing code...
import express from 'express';
const app = express();
// ...

That's it! When you record a bug with the Pointa Chrome extension, your server's console logs will automatically be included in the bug report.

How It Works

  1. The package connects to the Pointa server running on your machine (localhost:4242)
  2. When you start recording a bug in the Chrome extension, the server signals this package to start capturing
  3. All console.log, console.warn, console.error calls are captured and streamed
  4. When you stop recording, the logs are included in your bug report timeline

Usage with Options

If you need to customize the connection:

import { initPointaLogger } from 'pointa-server-logger';

initPointaLogger({
  port: 4242,           // Pointa server port (default: 4242)
  host: '127.0.0.1',    // Pointa server host (default: '127.0.0.1')
  captureErrors: true,  // Capture uncaught exceptions (default: true)
  captureRejections: true // Capture unhandled promise rejections (default: true)
});

Framework Examples

Express

import 'pointa-server-logger';
import express from 'express';

const app = express();

app.get('/api/users', (req, res) => {
  console.log('Fetching users'); // This will be captured
  res.json({ users: [] });
});

app.listen(3000);

Next.js

Edit next.config.js in your project root and add:

import 'pointa-server-logger';

Fastify

import 'pointa-server-logger';
import Fastify from 'fastify';

const fastify = Fastify();

fastify.get('/api/data', async (request, reply) => {
  console.log('Processing request'); // This will be captured
  return { data: 'hello' };
});

fastify.listen({ port: 3000 });

Hono

import 'pointa-server-logger';
import { Hono } from 'hono';
import { serve } from '@hono/node-server';

const app = new Hono();

app.get('/api/hello', (c) => {
  console.log('Hello endpoint called'); // This will be captured
  return c.json({ message: 'Hello!' });
});

serve(app);

What Gets Captured

  • console.log() - standard logs
  • console.warn() - warnings
  • console.error() - errors
  • console.info() - info logs
  • console.debug() - debug logs
  • ✅ Uncaught exceptions (with stack traces)
  • ✅ Unhandled promise rejections

Requirements

  • Node.js 16+
  • Pointa Chrome extension installed
  • Pointa server running (npx pointa-server or via your AI tool's MCP config)

Privacy

  • All logs stay local on your machine
  • Nothing is sent to external servers
  • The package only communicates with the local Pointa server (localhost)
  • Logs are only captured during active bug recording sessions

License

MIT