Kaj Kowalski 93fbb44eec feat: comprehensive Biome linting fixes and code quality improvements
Major code quality overhaul addressing 58% of all linting issues:

• Type Safety Improvements:
  - Replace all any types with proper TypeScript interfaces
  - Fix Map component shadowing (renamed to CountryMap)
  - Add comprehensive custom error classes system
  - Enhance API route type safety

• Accessibility Enhancements:
  - Add explicit button types to all interactive elements
  - Implement useId() hooks for form element accessibility
  - Add SVG title attributes for screen readers
  - Fix static element interactions with keyboard handlers

• React Best Practices:
  - Resolve exhaustive dependencies warnings with useCallback
  - Extract nested component definitions to top level
  - Fix array index keys with proper unique identifiers
  - Improve component organization and prop typing

• Code Organization:
  - Automatic import organization and type import optimization
  - Fix unused function parameters and variables
  - Enhanced error handling with structured error responses
  - Improve component reusability and maintainability

Results: 248 → 104 total issues (58% reduction)
- Fixed all critical type safety and security issues
- Enhanced accessibility compliance significantly
- Improved code maintainability and performance
2025-06-29 07:35:45 +02:00

LiveDash-Node

A real-time analytics dashboard for monitoring user sessions and interactions with interactive data visualizations and detailed metrics.

Next.js React TypeScript Prisma TailwindCSS

Features

  • Real-time Session Monitoring: Track and analyze user sessions as they happen
  • Interactive Visualizations: Geographic maps, response time distributions, and more
  • Advanced Analytics: Detailed metrics and insights about user behavior
  • User Management: Secure authentication with role-based access control
  • Customizable Dashboard: Filter and sort data based on your specific needs
  • Session Details: In-depth analysis of individual user sessions

Tech Stack

  • Frontend: React 19, Next.js 15, TailwindCSS 4
  • Backend: Next.js API Routes, Node.js
  • Database: Prisma ORM with SQLite (default), compatible with PostgreSQL
  • Authentication: NextAuth.js
  • Visualization: Chart.js, D3.js, React Leaflet
  • Data Processing: Node-cron for scheduled tasks

Getting Started

Prerequisites

  • Node.js (LTS version recommended)
  • pnpm (recommended package manager)

Installation

  1. Clone this repository:
git clone https://github.com/kjanat/livedash-node.git
cd livedash-node
  1. Install dependencies:
pnpm install
  1. Set up the database:
pnpm run prisma:generate
pnpm run prisma:migrate
pnpm run prisma:seed
  1. Start the development server:
pnpm run dev
  1. Open your browser and navigate to http://localhost:3000

Environment Setup

Create a .env file in the root directory with the following variables:

DATABASE_URL="file:./dev.db"
NEXTAUTH_URL=http://localhost:3000
NEXTAUTH_SECRET=your-secret-here

Project Structure

  • app/: Next.js App Router components and pages
  • components/: Reusable React components
  • lib/: Utility functions and shared code
  • pages/: API routes and server-side code
  • prisma/: Database schema and migrations
  • public/: Static assets
  • docs/: Project documentation

Available Scripts

  • pnpm run dev: Start the development server
  • pnpm run build: Build the application for production
  • pnpm run start: Run the production build
  • pnpm run lint: Run ESLint
  • pnpm run format: Format code with Prettier
  • pnpm run prisma:studio: Open Prisma Studio to view database

Contributing

  1. Fork the repository
  2. Create your feature branch: git checkout -b feature/my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/my-new-feature
  5. Submit a pull request

License

This project is not licensed for commercial use without explicit permission. Free to use for educational or personal projects.

Acknowledgments

Description
LiveDash-Node: A real-time analytics dashboard for monitoring user sessions and interactions with interactive data visualizations and detailed metrics.
https://test123.kjanat.com Readme 4.5 MiB
Languages
TypeScript 98.5%
CSS 0.8%
JavaScript 0.7%