Skip to content

DeretSolver helps you solve number sequences by identifying hidden patterns and predicting the next numbers instantly. Whether for study or fun, it leverages smart algorithms to crack the logic behind various numerical series.

License

Notifications You must be signed in to change notification settings

Andi-IM/deretsolver

Repository files navigation

CodeQL Deploy to Firebase Hosting on merge codecov

Deret Solver (v1.5.1)

Deret Solver is an intelligent number sequence solver that combines local pattern detection with AI-powered analysis. It helps users identify, visualize, and understand various types of number sequences including arithmetic, geometric, Fibonacci, interleaved patterns, and more complex logic-based sequences.

🚀 Overview

Deret Solver uses a dual-solver approach to handle both simple and complex number sequences:

  • Local Solver: Fast, offline detection of common patterns (arithmetic, geometric, Fibonacci, primes, factorials, etc.).
  • Gemini AI Solver: AI-powered analysis for complex, abstract, and logic-based sequences using Google's Gemini API (gemini-2.5-flash).

Built with React 19 and Vite 7 for cutting-edge performance and developer experience.

✨ Features

  • Dual Solver System:
    • Local Solver: Instantly solves Arithmetic, Geometric, Fibonacci, Two-Level Difference, Power, Prime Numbers, Factorials, and Interleaved Sequences.
    • Gemini AI Solver: Handles complex and logic-based sequences with AI assistance.
  • Quiz Mode: Test your skills! Generate sequence questions, choose the right answer, and track your progress.
  • Dark Mode Support: Full theme switching with system preference detection and state persistence.
  • Internationalization (i18n): Full support for English and Indonesian languages.
  • Advanced Visualization:
    • Dynamic SVG-based visualization with arcs for interleaved sequences and straight connections for standard patterns.
    • Interactive nodes representing sequence elements and their logical connections.
  • Responsive Design: Modern, glassmorphic UI built with Tailwind CSS v4.
  • Privacy First: Local analysis when possible, with optional AI processing and secure API handling.

🛠️ Tech Stack

🧪 Testing & Quality

The project maintains high standards with a comprehensive testing suite:

  • Unit Testing: Vitest for logic and component testing.
  • E2E Testing: Playwright for full-flow browser testing.
  • Linting: Oxlint for high-performance linting.
  • Formatting: Prettier.

Commands

# Run development server
npm run dev

# Run unit tests
npm test

# Run E2E tests
npm run test:e2e

# Generate E2E coverage report
npm run coverage:e2e

# Build for production
npm run build

📝 Logging & Monitoring

Includes a custom logger utility and Firebase Analytics integration to monitor application health and solver performance while respecting user privacy.

⚖️ License

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

About

DeretSolver helps you solve number sequences by identifying hidden patterns and predicting the next numbers instantly. Whether for study or fun, it leverages smart algorithms to crack the logic behind various numerical series.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 3

  •  
  •  
  •  

Languages