{"id":15086013,"url":"https://github.com/gabrielalmir/codebeats","last_synced_at":"2026-01-27T22:35:18.303Z","repository":{"id":248618975,"uuid":"829216701","full_name":"gabrielalmir/codebeats","owner":"gabrielalmir","description":"The CodeBeats project is a video generator that combines images and audio to create relaxing videos for study and relaxation. It also includes a functionality to generate custom thumbnails for the generated videos.","archived":false,"fork":false,"pushed_at":"2024-08-03T12:03:46.000Z","size":3481,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T04:15:13.922Z","etag":null,"topics":["bun","ffmpeg","lofi","nodejs","youtube"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/@lofi-codebeats","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabrielalmir.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-07-16T02:02:59.000Z","updated_at":"2024-11-12T23:07:26.000Z","dependencies_parsed_at":"2024-07-19T07:29:10.530Z","dependency_job_id":null,"html_url":"https://github.com/gabrielalmir/codebeats","commit_stats":null,"previous_names":["gabrielalmir/codebeats"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabrielalmir/codebeats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielalmir%2Fcodebeats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielalmir%2Fcodebeats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielalmir%2Fcodebeats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielalmir%2Fcodebeats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrielalmir","download_url":"https://codeload.github.com/gabrielalmir/codebeats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielalmir%2Fcodebeats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28824753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bun","ffmpeg","lofi","nodejs","youtube"],"created_at":"2024-09-25T07:02:58.294Z","updated_at":"2026-01-27T22:35:18.283Z","avatar_url":"https://github.com/gabrielalmir.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# CodeBeats Lo-fi for Study and Relaxation\n\n## Description\nThe **CodeBeats** project is a video generator that combines images and audio to create relaxing videos for study and relaxation. It also includes a functionality to generate custom thumbnails for the generated videos. The project uses libraries such as `fluent-ffmpeg`, `sharp`, and `canvas` for media manipulation.\n\n## Project Structure\n\n```plaintext\n.\n├── src\n│   ├── index.ts          # Main application file\n│   ├── thumbnail.ts      # Script for thumbnail generation\n│   ├── utils.ts          # Utilities and decorators like 'benchmark'\n│   └── video.ts          # VideoUtils class with video manipulation functions\n├── assets\n│   ├── audios            # Directory containing audio files\n│   ├── images            # Directory containing images\n│   ├── output            # Directory for generated video files\n│   ├── fonts             # Directory containing fonts for thumbnails\n│   └── thumbs            # Directory for generated thumbnails\n├── dist                  # Output directory for built files\n├── package.json\n└── README.md             # This file\n```\n\n## Features\n\n1. **Video Generation**: Combines an image with audio files to create videos.\n2. **Video Concatenation**: Joins multiple video files into a single file.\n3. **Thumbnail Generation**: Creates custom thumbnails for the generated videos.\n4. **Image Optimization**: Resizes and compresses thumbnails for optimization.\n\n## How to Use\n\n### Prerequisites\n- Node.js\n- Bun.sh (optional, but recommended for faster execution and build)\n- FFmpeg (required for video manipulation)\n\n### Installation\n1. Clone the repository:\n    ```sh\n    git clone \u003cREPOSITORY_URL\u003e\n    cd codebeats\n    ```\n\n2. Install dependencies:\n    ```sh\n    npm install\n    # or, if using bun\n    bun install\n    ```\n\n### Execution\n1. To start the main application:\n    ```sh\n    npm start\n    # or, if using bun\n    bun run src/index.ts\n    ```\n\n2. To generate thumbnails:\n    ```sh\n    npm run thumb\n    # or, if using bun\n    bun run src/thumbnail.ts\n    ```\n\n### Build\n1. To build the application:\n    ```sh\n    npm run build\n    # or, if using bun\n    bun build src/index.ts --minify --outdir dist --target=node\n    ```\n\n2. To build the thumbnail generator:\n    ```sh\n    npm run build:thumb\n    # or, if using tsup\n    tsup src/thumbnail.ts --minify\n    ```\n\n## File and Directory Structure\n\n- `src/index.ts`: Entry point of the application that generates the videos.\n- `src/thumbnail.ts`: Script to generate thumbnails for the videos.\n- `src/utils.ts`: Utilities and helper functions.\n- `src/video.ts`: `VideoUtils` class containing methods for video manipulation.\n- `assets/audios`: Contains the audio files to be used in the videos.\n- `assets/images`: Contains the images to be used in the videos.\n- `assets/output`: Directory where the generated videos will be saved.\n- `assets/fonts`: Contains the fonts used to generate the thumbnails.\n- `assets/thumbs`: Directory where the generated thumbnails will be saved.\n\n## Contribution\n1. Fork the project\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielalmir%2Fcodebeats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielalmir%2Fcodebeats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielalmir%2Fcodebeats/lists"}