Sign In

mongoscope

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoscope

A simple, lightweight MongoDB analytics dashboard

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

MongoScope

MongoScope is a simple, lightweight MongoDB analytics dashboard that provides insights into your MongoDB collections through an npm package.

MongoScope Dashboard

Features ✨

  • Real-time Collection Analytics: Monitor your MongoDB collections in real-time
  • Interactive Collection Selector: Easy-to-use dropdown with search functionality
  • Responsive Design: Works seamlessly across different screen sizes
  • HTMX Integration: Smooth, dynamic updates without full page reloads
  • Chart.js Visualizations: Beautiful, interactive data visualizations

Installation 📦

npm install mongoscope

Quick Start 🚀

const MongoScope = require('mongoscope');

// Initialize MongoScope with your MongoDB connection
const mongoScope = new MongoScope({
    mongoUri: 'mongodb://localhost:27017/your-database',
    port: 3000 // Optional, defaults to 3000
});

// Start the server
mongoScope.start();

Analytics Features 📊

MongoScope provides several types of analytics:

1. Collection Overview

  • Total document count
  • Collection size
  • Average document size
  • Storage statistics

2. Document Analytics

  • Document size distribution
  • Field frequency analysis
  • Data type distribution
  • Nested document depth analysis

3. Performance Metrics

  • Index usage statistics
  • Query patterns
  • Write operations frequency
  • Read/Write ratio

4. Time-Series Analysis

  • Document growth over time
  • Update frequency
  • Access patterns
  • Peak usage times

UI Components 🎨

Collection Selector

  • Searchable dropdown for easy collection navigation
  • Real-time filtering of collections
  • Collection size indicators
  • Responsive design for mobile devices

Analytics Dashboard

  • Grid layout for multiple analytics views
  • Interactive charts and graphs
  • Real-time updates
  • Export capabilities for reports

Contributing 🤝

Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.

  • Fork the repository
  • Create your feature branch (git checkout -b feature/AmazingFeature)
  • Commit your changes (git commit -m 'Add some AmazingFeature')
  • Push to the branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

License 📄

This project is licensed under the MIT License - see the LICENSE file for details.

Support 💪

If you find any bugs or have feature requests, please create an issue in the GitHub repository.

Acknowledgments 🙏

Made with ❤️ by @suyash-thakur

Keywords

mongodb

FAQs

Package last updated on 15 Dec 2024

Did you know?

Socket

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.

Install

Related posts