@marmeon/devtools
v0.3.0
Published
Development tools for Marmeon apps: redacted recordings of requests, queries, jobs, mails and more, with a toolbar and pages.
Readme
@marmeon/devtools
What a Marmeon app did while you develop — requests, queries, jobs, mails, logs and exceptions, redacted — under
/_marmeon/devtools and in a bar on every page. Development only.
Installation
A dev dependency of every new Marmeon app. In another app:
pnpm add -D @marmeon/devtoolsThe devtools run only with NODE_ENV=development, which marmeon dev sets. Under test, production (whatever APP_ENV
says) or no NODE_ENV nothing is recorded and their pages answer 404.
Settings
The defaults record everything. config/devtools.ts changes that:
import { defineDevtools } from '@marmeon/devtools';
export default defineDevtools({
record: ['requests', 'queries', 'jobs', 'mails', 'logs', 'exceptions'],
ignore: { paths: ['/_marmeon/live'] },
slowQueryMs: 50,
});Documentation
MIT · part of Marmeon
