Skip to content

Enhance tg-index with performance, UI and monitoring features#72

Open
NOOBGLITCH wants to merge 26 commits into
odysseusmax:masterfrom
NOOBGLITCH:master
Open

Enhance tg-index with performance, UI and monitoring features#72
NOOBGLITCH wants to merge 26 commits into
odysseusmax:masterfrom
NOOBGLITCH:master

Conversation

@NOOBGLITCH

Copy link
Copy Markdown

Summary

  • JWPlayer video player with custom controls (rewind/forward 10s, download)
  • Complete DaisyUI UI redesign with dark/light theme toggle
  • Performance: LRU cache with TTL, disk cache with mmap, back pressure, rate limiting
  • Circuit breaker for downstream failures, exponential backoff
  • Health metrics endpoint with response time tracking
  • Bug fixes: JS scoping (var→let), chat_ids lookup, _me attribute
  • Mobile responsive layout

Files Changed

  • New: health.py, backpressure.py, cache.py, security.py, telegram.py
  • Modified: main.py, config.py, views/, templates/, download.py

AllInIn10 and others added 14 commits March 4, 2026 07:16
…pplication

Add `replit.md` file detailing project architecture, environment variables, and running instructions. Update `requirements.txt` to include `aiohttp`, `aiohttp-jinja2`, and `telethon`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 64a33732-ef96-4747-b9e9-6af4995e1825
Replit-Helium-Checkpoint-Created: true
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: f8bd2cf2-8612-4593-be08-97e9a0b62846
Replit-Helium-Checkpoint-Created: true
Address a `h` undefined error in `logo_view.py` by using `draw.textbbox`, remove duplicate `toggleTheme` function declaration in `footer.html`, and update frontend templates with DaisyUI for a refreshed look and feel.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: a1c2c5eb-300d-468e-875e-eea935ec1ebd
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/SKyZkgM
Replit-Helium-Checkpoint-Created: true
- Add health.py: Health metrics, circuit breaker, request dedup, graceful shutdown
- Add backpressure.py: Back pressure controller, optimistic locking
- telegram.py: Retry decorator with exponential backoff, request tracking
- cache.py: Improved LRU/DiskCache with proper locking, size limits
- main.py: Health/ready endpoints, signal handling for graceful shutdown
- middlewhere.py: Request ID tracking, enhanced rate limiting, CORS support
- index_view.py: Message caching, async timeouts
- thumbnail_view.py: ThreadPoolExecutor, preloaded placeholders, ETag support, LRU cache
- config.py: New settings for cache, concurrency, compression
- requirements.txt: Add psutil, aiodns, Brotli
- templates: Yellow highlight color for search results
@NOOBGLITCH NOOBGLITCH marked this pull request as ready for review April 19, 2026 13:10
AllInIn10 and others added 12 commits June 7, 2026 18:38
Improve file viewing by adding efficient prev/next navigation using max_id and min_id queries in info_view.py and updating info.html to display the navigation buttons.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 8828d097-ddb7-4f8e-b9e1-6f5049930d8e
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Xo0O4ZO
Replit-Helium-Checkpoint-Created: true
Modify Telegram client connection logic to use `connect()` with retries for `AuthKeyDuplicatedError` and update message retrieval methods to use `get_messages_safe`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: dccd789e-15d0-41b3-a67a-a86e7604c2cf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Xo0O4ZO
Replit-Helium-Checkpoint-Created: true
Revert changes to Telegram client connection logic, update info display template, and remove the 'gh' file.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: b3fd2e9e-9381-4b9d-bdc4-7467def1a4fd
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Xo0O4ZO
Replit-Helium-Checkpoint-Created: true
Fixes an issue with video player rendering and adds navigation links for previous and next files in the view.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 2ad4117e-c3ea-4171-844b-468fa15f4b3a
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Xo0O4ZO
Replit-Helium-Checkpoint-Created: true
Update info view to fetch entity before getting previous and next messages, and add navigation links to the template.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: af76c65d-f1f3-4470-b0c7-c0be3f7acf44
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/Fuj2sZf
Replit-Helium-Checkpoint-Created: true
…playback

Integrates JW Player for audio playback, replaces native audio tags, and adds a copy button to download links, constructing full URLs client-side.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 2e2cacaf-b169-4b16-aa34-07a9c40db8fa
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/M9txVpj
Replit-Helium-Checkpoint-Created: true
Replace the existing Material Symbols 'send' icon in the header with a Telegram icon loaded from a CDN.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: e118a285-554f-4618-9cf3-0215f1323bdb
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/pwjZsBB
Replit-Helium-Checkpoint-Created: true
Embed the Telegram SVG inline in `app/templates/header.html` to resolve resolution and clipping issues, replacing the `<img>` tag and associated styling.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: a0483853-fd5e-4503-8ca0-6ca2405547ac
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/nha80l7
Replit-Helium-Checkpoint-Created: true
Embed Telegram SVG directly in the header for proper rendering and remove `hidden sm:inline` class from the "Telegram Index" text to ensure it displays on all screen sizes.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: c3ba2794-0f55-42de-8011-43e59b39966b
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/5rq1WkC
Replit-Helium-Checkpoint-Created: true
Embed Telegram icon as inline SVG and apply `whitespace-nowrap` to the index text to ensure it remains on a single line with the icon across all screen sizes.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 5dd1abc7-968a-4495-a266-b9d0ff702537
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/hYjw0lI
Replit-Helium-Checkpoint-Created: true
Replaces the old theme toggle button with a new pill-shaped switch. Removes CSS transitions from the body for instant theme switching and adds new CSS for the toggle's appearance and functionality.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 46dd4f66-6265-4be9-bc16-a4e2bd4cbcb0
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/IoCBqfu
Replit-Helium-Checkpoint-Created: true
Install the GitHub CLI (gh) package in the NixOS configuration.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 652211cf-d84c-4e18-9071-57b673a8b2ac
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 02a66049-697d-450a-9dac-8bc3842dab45
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/762e23a6-b26e-4e62-bf16-010cf16d18d9/652211cf-d84c-4e18-9071-57b673a8b2ac/IoCBqfu
Replit-Helium-Checkpoint-Created: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants