
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@nearform/trail-fastify-plugin
Advanced tools
trail-fastify-plugin is a plugin to add the trail REST API to a Fastify server.
To install via npm:
npm install @nearform/trail-fastify-plugin
const Fastify = require('fastify')
const main = async function() {
const fastify = Fastify()
fastify.register(require('@nearform/trail-fastify-plugin'))
await fastify.listen(3000, console.log)
}
main().catch(console.error)
Trails route will be then accessible on the /trails path.
For more information on the REST API, you can check the generated OpenAPI / Swagger JSON file, which will available at the /trails/swagger.json path.
The plugin takes the following configuration options:
logger: A logger to be passed to the trails manager.db: Database settings for the trails manager.pool: A pre-configured database pool to be used by the trails manager; used in preference to any specified database settings.trailsManager: A pre-configured trails manager instance; used in preference to any of the previous settings.Copyright nearForm Ltd 2020. Licensed under MIT.
FAQs
Fastify plugin for the audit trail logging service
We found that @nearform/trail-fastify-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 35 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.