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

directus-extension-usage-analytics-module

v1.0.0

Published

Visual analytics module for collection storage usage and API request patterns in Directus (Module only - requires API package)

Readme

Directus Usage Analytics - Module

Visual analytics module for collection storage usage and API request patterns in Directus.

⚠️ IMPORTANT: This is the frontend module only. The backend API must be installed separately:

npm install directus-extension-usage-analytics-api

🎯 What's This Package?

This package contains only the UI module for the Directus admin interface. It provides:

  • ✅ Collection Storage Analytics Dashboard
  • ✅ API Activity Monitoring Views
  • ✅ Interactive Charts and Statistics
  • ✅ Professional Directus-compliant UX

📦 Installation

Option 1: Directus Marketplace (Recommended)

  1. Open your Directus admin panel
  2. Navigate to SettingsExtensionsMarketplace
  3. Search for "usage analytics"
  4. Click Install

Option 2: NPM Installation

npm install directus-extension-usage-analytics-module

Required: Install API Package

The module requires the companion API package to function:

npm install directus-extension-usage-analytics-api

Complete Installation (Both Packages)

npm install directus-extension-usage-analytics-module directus-extension-usage-analytics-api

Docker Installation

# In your Dockerfile
RUN npm install directus-extension-usage-analytics-module directus-extension-usage-analytics-api

Or in docker-compose.yml:

services:
  directus:
    image: directus/directus:latest
    volumes:
      - ./extensions:/directus/extensions
    environment:
      EXTENSIONS_AUTO_RELOAD: "true"

Then install in your project:

npm install directus-extension-usage-analytics-module directus-extension-usage-analytics-api

🚀 Features

Collection Storage Analytics

  • Visual row count tracking for all collections
  • System vs user collection filtering
  • Interactive bar and pie charts
  • Detailed data tables with sortable columns

API Activity Monitoring

  • Request pattern analysis by collection
  • Action-based statistics (create, read, update, delete)
  • Time-based filtering with date range selection
  • IP-based traffic analysis

User Experience

  • Professional Directus design system compliance
  • Loading states with skeleton loaders
  • Empty states with helpful messages
  • Responsive design for mobile and tablet
  • WCAG 2.1 AA accessibility compliance
  • Table hover effects and smooth transitions

📖 Documentation

For full documentation, visit:

  • GitHub Repository: https://github.com/flagbit/directus-usage-tracker
  • API Package: https://www.npmjs.com/package/directus-extension-usage-analytics-api

🔧 Requirements

  • Directus 10.x or 11.x
  • Node.js 18+ recommended
  • API package installed separately

📝 License

MIT License - Copyright © 2024 Flagbit GmbH & Co. KG

🤝 Support

  • Issues: https://github.com/flagbit/directus-usage-tracker/issues
  • Email: [email protected]
  • Website: https://www.flagbit.de

🎉 Why Split Packages?

This extension is split into two packages for Directus Marketplace compatibility:

  • Module Package (this one): Can be installed via Marketplace
  • API Package (separate): Requires full Node.js access, manual installation only

This approach gives you the best of both worlds:

  • Easy discovery via Marketplace
  • Full functionality with API package
  • Secure sandbox compliance for Marketplace listing

Made with ❤️ by Flagbit