MongoScope is a simple, lightweight MongoDB analytics dashboard that provides insights into your MongoDB collections through an npm package.
- 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
npm install mongoscope
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();
MongoScope provides several types of analytics:
- Total document count
- Collection size
- Average document size
- Storage statistics
- Document size distribution
- Field frequency analysis
- Data type distribution
- Nested document depth analysis
- Index usage statistics
- Query patterns
- Write operations frequency
- Read/Write ratio
- Document growth over time
- Update frequency
- Access patterns
- Peak usage times
- Searchable dropdown for easy collection navigation
- Real-time filtering of collections
- Collection size indicators
- Responsive design for mobile devices
- Grid layout for multiple analytics views
- Interactive charts and graphs
- Real-time updates
- Export capabilities for reports
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
This project is licensed under the MIT License - see the LICENSE file for details.
If you find any bugs or have feature requests, please create an issue in the GitHub repository.
Made with ❤️ by @suyash-thakur