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 🙏

© 2026 – Pkg Stats / Ryan Hefner

strapi-plugin-juf-logger

v0.1.8

Published

Substitute to default strapi logger with @sonatel/juf-xpress-logger

Readme

📚 strapi-plugin-juf-logger

“They did what in production?” Now you’ll know. In real time.

Substitute to default strapi logger with @sonatel/juf-xpress-logger

🍷 Elegant. 🔐 Ruthless. ⚙️ Fully Configurable.
Because it’s not just about logging requests—it’s about narrating the admin saga.

Strapi Real-time Security Setup Status

🧠 What is it?

strapi-plugin-juf-logger is your audit trail with a backbone.
It tracks everything that happens inside your Strapi Admin, in real-time, with fully configurable rules and zero redeploys.

No more wondering “Who changed that role?”, or “Why is the reset token in my logs?”
You get full visibility, masked data, and total runtime control—without touching a config file.

⚙️ Key Features

✅ Admin UI to rule them all

  • Add/delete sensitive fields to mask (token, password, cookie, etc.)
  • Map HTTP verbs to semantic actions (POST → Création, DELETE → Suppression, etc.)
  • Define action name rules for custom paths (supports dynamic patterns like /admin/roles/:id)

💥 All live. All without a redeploy.

🧼 Real-Time Redaction

Sensitive keys are automatically obfuscated:

"authorization": "***************"
"res": "***************"
"cookie": "***************"

Because your logs should inform, not incriminate.

🗑️ Automatic Delete Audit Trail

Every delete operation is automatically captured with full entity data before deletion:

"http.request.body.content": {
  "audit": {
    "action": "DELETE",
    "uid": "api::article.article",
    "documentId": "abc123",
    "deletedEntity": { /* full entity snapshot */ },
    "timestamp": "2025-04-15T13:14:53.483Z"
  }
}

No configuration needed. Works out of the box with all Strapi v5+ content types.

🧠 Smart Action Resolution

Logs like:

"event.action": "Création API Token"
"user.name": "[email protected]"
"url.path": "/admin/api-tokens"
"event.type": "AUDIT"

All thanks to the dynamic rules engine—built to match patterns, not just strings.

💡 Sample Log Output (Elasticsearch / Kibana-friendly)

{
  "@timestamp": "2025-04-15T13:14:53.483Z",
  "event.action": "Consultation Other activities",
  "event.type": "AUDIT",
  "user.name": "[email protected]",
  "http.request.method": "GET",
  "http.response.status": "OK",
  "url.path": "/admin/roles/:id",
  "http.request.body.content": { "res": "***************" }
}

🧪 Use Cases

  • Security Audits
  • Role Changes Tracking
  • Data Access Monitoring
  • Compliance Logging
  • Intern Shenanigans Prevention

🛠️ Installation

npm install strapi-plugin-juf-logger

Strapi will auto-load it at startup. No setup needed.

🎯 Custom Audit Data Injection

Need to log additional context beyond the automatic delete tracking? Use ctx.state.audit:

// In any controller, service, or middleware
const koaCtx = strapi.requestContext.get();
if (koaCtx) {
  koaCtx.state.audit = {
    customAction: 'BULK_EXPORT',
    exportedRecords: 150,
    requestedBy: '[email protected]',
    timestamp: new Date().toISOString(),
  };
}

The audit data will appear in http.request.body.content.audit in your logs.

🚀 Future Plans (a.k.a. "Why is this not core yet?")

  • 💾 Support for external log sinks (Elastic, Loki, CloudWatch)
  • 🔄 Replay Mode: reconstruct action sequences
  • 🧪 Granular role-based log filtering

🤝 Contributing

Want to help make logs beautiful, actionable, and slightly terrifying?
Open an issue. Or a pull request. Or a bottle of lemonade and start coding.

💌 Built with love (and a little paranoia) by

lpix-11


Let’s be honest.
Strapi didn’t ask for this.
But it needed it.

And now?
Now it logs like a boss. 🪵🔥