@node-telescope/fastify
v0.1.1
Published
Fastify plugin adapter for Node-Telescope
Maintainers
Readme
@node-telescope/fastify
Fastify plugin for Node Telescope -- a debugging and monitoring dashboard for Node.js.
Install
npm install @node-telescope/fastify @node-telescope/storage-sqliteQuick Start
import Fastify from 'fastify';
import { telescopePlugin } from '@node-telescope/fastify';
const app = Fastify();
await app.register(telescopePlugin);
await app.listen({ port: 3000 });
// Dashboard: http://localhost:3000/__telescopeZero config. SQLite auto-creates, all watchers enabled, dashboard served at /__telescope.
Configuration
import { EntryType } from '@node-telescope/core';
await app.register(telescopePlugin, {
enabled: true,
path: '/__telescope',
databasePath: './telescope.sqlite',
pruneHours: 24,
ignorePaths: ['/__telescope', '/health'],
hiddenRequestHeaders: ['authorization', 'cookie', 'set-cookie'],
hiddenRequestParameters: ['password', 'token', 'secret'],
watchers: [
{ type: EntryType.Request, enabled: true },
{ type: EntryType.Query, enabled: false },
],
});Documentation
See the main Node Telescope README for full documentation.
License
MIT
