{"id":30045706,"url":"https://github.com/hadv/yitam-admin","last_synced_at":"2025-08-07T07:57:01.271Z","repository":{"id":286051905,"uuid":"959755900","full_name":"hadv/yitam-admin","owner":"hadv","description":"A minimalist React web application that allows users to upload documents and store their vector embeddings in a Qdrant vector database.","archived":false,"fork":false,"pushed_at":"2025-08-01T05:00:29.000Z","size":541,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-01T06:32:22.769Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hadv.png","metadata":{"files":{"readme":"README-JOB-QUEUE.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-03T09:53:15.000Z","updated_at":"2025-07-31T06:44:55.000Z","dependencies_parsed_at":"2025-04-04T04:21:58.925Z","dependency_job_id":"188952f2-13d8-4d3d-bd69-b8270e339a2b","html_url":"https://github.com/hadv/yitam-admin","commit_stats":null,"previous_names":["hadv/yitam-admin"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hadv/yitam-admin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam-admin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam-admin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam-admin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam-admin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadv","download_url":"https://codeload.github.com/hadv/yitam-admin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadv%2Fyitam-admin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269220671,"owners_count":24380624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-07T07:57:00.393Z","updated_at":"2025-08-07T07:57:01.263Z","avatar_url":"https://github.com/hadv.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube Video Processing with Self-Contained Job Queue\n\nThis implementation solves the timeout issues when uploading long YouTube videos by using a self-contained job queue system that doesn't require any external dependencies.\n\n## Overview\n\nInstead of processing YouTube videos in the HTTP request handler (which can lead to timeouts), we now:\n\n1. Accept the upload request\n2. Queue the processing job in an in-memory queue with file persistence\n3. Immediately return a response to the client\n4. Process the video in a separate worker thread\n5. Provide status updates via WebSockets\n\n## Features\n\n- **No external dependencies** - Uses Node.js built-in worker threads\n- **Persistent job queue** - Jobs are saved to disk and can survive server restarts\n- **Concurrent processing** - Multiple videos can be processed simultaneously\n- **Real-time progress tracking** - Continues to use WebSockets for progress updates\n\n## How It Works\n\n1. **Client-side**: The user submits a YouTube URL for processing\n2. **Server-side**: \n   - The request is received and a job is added to the queue\n   - A 202 (Accepted) response is sent back immediately with a job ID\n   - The actual processing happens in a separate worker thread\n3. **Progress Tracking**:\n   - WebSockets continue to be used for real-time progress updates\n   - An additional endpoint is available for checking job status\n\n## Technical Implementation\n\n- Uses Node.js worker threads for background processing\n- Stores job data in memory with JSON file persistence\n- Automatically recovers and resumes pending jobs on server restart\n- Limits the number of concurrent jobs to avoid overloading the server\n\n## API Endpoints\n\n- `POST /api/youtube/process` - Queue a YouTube video for processing\n- `GET /api/youtube/job/:jobId` - Check the status of a processing job\n\n## Benefits\n\n- No more HTTP timeouts for long-running processes\n- Better user experience with immediate feedback\n- No external dependencies (like Redis) to manage\n- System resources are managed more efficiently\n- Better error handling and recovery\n- Processing continues even if the user closes their browser ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadv%2Fyitam-admin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadv%2Fyitam-admin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadv%2Fyitam-admin/lists"}