LogFlow is a centralized logging platform that helps developers collect, manage, and analyze application logs through a web dashboard and a lightweight Node.js SDK.
It provides a complete logging system consisting of:
- Backend API (Express + MongoDB)
- Developer Dashboard (React)
- Official SDK (NPM package) for easy integration
- Centralized log management for multiple applications
- Real-time log collection via API
- Developer authentication with JWT
- Secure API key system for external applications
- Filtering logs by level, search, pagination, and sorting
- Duplicate log aggregation (log count incrementing)
- Clean and responsive dashboard UI
- Official Node.js SDK for easy integration
https://www.npmjs.com/package/logflow-sdk-aya
The easiest way to send logs from your Node.js applications.
npm install logflow-sdk-aya
import { LogFlow } from "logflow-sdk";
const logger = new LogFlow({
apiKey: "your_api_key",
appName: "my-app",
baseUrl: "http://localhost:5000/api"
});
logger.info("Server started successfully");
logger.warn("Memory usage is high");
logger.error("Database connection failed");- Simple API for sending logs
- Supports INFO / WARN / ERROR levels
- Secure API key authentication
- Designed for backend and server apps
Client Application
↓
LogFlow SDK
↓
Express API Server
↓
MongoDB Database
↓
React Dashboard
LogFlow is built to solve the problem of scattered and unstructured logs in modern applications.
Instead of relying on console.log, developers can:
- Send logs from multiple services
- Store them centrally
- Monitor and filter them through a dashboard
- Debug issues faster and more efficiently
LogFlow uses a hybrid authentication system:
- JWT Authentication → for dashboard access
- API Key Authentication → for external logging via SDK
Each developer gets a unique API key used to securely send logs from applications.
- Node.js
- Express.js
- MongoDB + Mongoose
- JWT Authentication
- REST APIs
- React (Vite)
- Node.js package (logflow-sdk)
- Fetch/HTTP requests
logging-system/
├── backend/ # Express API + MongoDB models + auth + routes
├── frontend/ # React dashboard
└── logflow-sdk/ # NPM SDK package
Create a .env file inside the backend:
PORT_NUMBER=5000
DATABASE_CONNECTION_STRING=mongodb://localhost:27017/logflow
JWT_SECRET_KEY=your_secret_keygit clone https://github.com/your-username/logflow.git
cd logflowcd backend
npm install
npm startcd frontend
npm install
npm run devFrontend runs on:
http://localhost:5173
Backend runs on:
http://localhost:5000/api
POST /developers/registerPOST /developers/loginPOST /developers/logoutGET /developers/me
GET /applicationsPOST /applicationsDELETE /applications/:name
GET /applications/:name/logsPOST /applications/:name/logsGET /applications/:name/logs/stats
POST /applications/:name/logs
x-api-key: your_api_key- Pagination (
page,limit) - Filter by level (
INFO,WARN,ERROR) - Search by message
- Sorting (
recent,count)
- username
- password (hashed)
- apiKey
- name
- developer reference
- timestamps
- message
- level
- count
- application reference
- timestamps
- Real-time WebSocket log streaming
- Docker support
- Rate limiting for API keys
- Multi-environment support (dev/staging/prod)
- Hosted SaaS version
Built by Aya Abdellatif