Sagelga Project Documentation

website·Indexed 31 days ago

https://docs.sagelga.com/

A collection of technical documentation and user manuals for various projects by sagelga, including Panda (a space and material management system), SuperEye (Notion to Cloudflare KV sync), SuperBrain (REST API for blog data), and various integration tools for Notion, Todoist, and Cloudflare KV.

Tokens
29.9K
Snippets
125
Records
302
Agent score
50%

What's inside Sagelga Docs

  1. Overview of ByteSide.one Status Monitoring Features

    The ByteSide.one status page provides real-time monitoring of infrastructure health. Key capabilities include:

    • Real-time health checks with response time tracking.
    • A global system status indicator (Operational, Degraded, or Down).
    • A 30-day visual incident history for each monitored service.
    • Automatic page refresh every minute.
    • Support for Dark/Light modes (system preference detection) and a Thai language interface.
  2. Overview of the Lecture Note Sharing System

    The Lecture Note Sharing System is a web-based platform designed for students, tutors, and teachers to share and discover lesson summaries. The system aims to provide multiple perspectives on academic content, allowing users to fill knowledge gaps in their own notes by accessing summaries created by others in the same or similar courses.
  3. Overview of Robin space reservation service

    Robin is an enterprise-grade space reservation service that allows users to search for and reserve available spaces via a user interface. Users can click on a space to view detailed information or select a specific timeframe to make an immediate reservation. The service is priced at $5 per month per user.
  4. Overview of the Online Room Reservation System

    The Online Room Reservation System digitizes the space reservation process for students, teachers, and staff at King Mongkut's Institute of Technology Ladkrabang. It replaces a manual process involving physical forms and signatures with an online workflow where users log in with an organization account, search for available rooms, select a time, and submit requests for approval.
  5. Overview of KMITL Online Space Reservation System (Project Panda)

    Project Panda, also known as the KMITL Online Space Reservation System, is a platform for managing space bookings within the King Mongkut's Institute of Technology Ladkrabang. The system provides different workflows based on user roles: general users for booking and reporting, approvers for managing requests, and academic/facility staff for system administration.
  6. Overview of TrashMelody game mechanics

    TrashMelody is a waste sorting simulation game where players act as volunteers sorting trash into four categories: general waste, wet waste, recyclable waste, and hazardous waste.

    Key gameplay mechanics include:

    • Map Selection: Players choose different locations (e.g., condos, markets), each featuring different types of waste.
    • Core Loop: Players use buttons to direct waste moving on a conveyor belt into the correct bins.
    • Progression: Points are awarded based on sorting accuracy. Accumulated points are used to unlock new levels.
    • Collection System: Players collect different types of waste to fill a collection gallery. This gallery serves as an educational tool, showing the waste type and background information for each item.
  7. Overview of the C-based Point of Sale (POS) System

    This project is a full-featured Point of Sale (POS) system written entirely in C. Because it is developed in C, it is highly efficient and compatible with macOS and Linux-based operating systems, allowing the system to run on low-spec hardware without requiring high-performance computing machines. It is designed for use in various retail environments, including convenience stores, grocery stores, and restaurants. Additionally, the system integrates Machine Learning capabilities to provide sales forecasting.
  8. Implement the Scrum framework for small development teams

    Scrum is an Agile-based software development framework designed for small teams. It focuses on distributing workloads among all developers within a limited delivery timeframe, requiring efficient resource management and continuous communication to ensure a steady and fast delivery of the project (e.g., game development).
  9. Understand the Reverse Notion Sync workflow

    The Reverse Notion Sync is implemented as a Cloudflare Worker that updates Notion pages with the latest Todoist task data stored in Cloudflare KV. The process is triggered by a Notion automation button which sends a webhook POST request to the worker's /sync endpoint. The worker then fetches the Notion page to extract the Todoist Task ID, retrieves the current task state from KV, compares the fields, and patches the Notion page if the data is stale.
    Notion "Sync" Button click
      --> Notion Automation (webhook)
        --> POST /sync (this worker)
          --> Fetch Notion page, extract Todoist Task ID
          --> Fetch task from Cloudflare KV
          --> Diff: Title, Status, Due Date, Priority
          --> PATCH Notion page if anything is stale
  10. Understand the Status Page Pulse architecture

    Status Page Pulse is a monitoring system built with Cloudflare Workers and TypeScript. It uses a per-minute cron trigger to check the health of configured services in parallel and persists the results to a Cloudflare R2 bucket. This system acts as the data backend for the Status Page frontend.
    Cron Trigger (every minute)
      --> Check all services in parallel
      --> Write results to R2 bucket
          - daily:{serviceId}    (60-day rolling history)
          - minutes:{serviceId}:{date}  (1440 slots per day)
  11. Sync Todoist tasks to Notion using Cloudflare Workers

    This system uses a Cloudflare Worker to act as a webhook receiver for Todoist. When a task event occurs in Todoist, the worker parses the event and task data, searches the Notion database for a page matching the Todoist ID, and then creates or updates the corresponding Notion page in real time.
    Todoist Webhook Event
      --> POST to this worker
      --> Parse event type and task data
      --> Search Notion for existing page by Todoist ID
      --> Create new page or update existing page
  12. Mahjong Hand Validator core features

    The application provides a suite of tools for validating and analyzing Mahjong hands, including:

    • Real-time hand validation for standard win conditions (4-set + 1-pair and 7-pairs).
    • Intelligent grouping of Pungs, Kongs, and Chows with built-in collision resolution.
    • Interactive tile management via drag-and-drop.
    • Flower tile tracking.
    • Responsive design supporting both desktop and mobile devices.