{"id":30575915,"url":"https://github.com/jserv/trex","last_synced_at":"2025-08-29T00:39:02.199Z","repository":{"id":307864265,"uuid":"1030918318","full_name":"jserv/trex","owner":"jserv","description":"A terminal-based recreation of Google Chrome's famous T-Rex game","archived":false,"fork":false,"pushed_at":"2025-08-16T17:46:13.000Z","size":452,"stargazers_count":14,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T02:11:53.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jserv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-08-02T16:00:09.000Z","updated_at":"2025-08-16T17:46:17.000Z","dependencies_parsed_at":"2025-08-02T18:38:00.511Z","dependency_job_id":"d7cb9823-7407-44b6-ae44-ceae0f84111d","html_url":"https://github.com/jserv/trex","commit_stats":null,"previous_names":["jserv/trex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jserv/trex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Ftrex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Ftrex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Ftrex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Ftrex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jserv","download_url":"https://codeload.github.com/jserv/trex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Ftrex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272590146,"owners_count":24960866,"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-28T02:00:10.768Z","response_time":74,"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-29T00:39:00.960Z","updated_at":"2025-08-29T00:39:02.179Z","avatar_url":"https://github.com/jserv.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trex\n\n`trex` is a terminal-based recreation of Google Chrome's famous T-Rex game, enhanced with modern optimizations and additional features.\n\n## Features\n- Classic T-Rex Gameplay - Jump and duck to avoid obstacles\n- Enhanced Mechanics - Power-ups, fire abilities, and invincibility\n- Scoring System - Track your high scores and level progression\n- Rich Graphics - ASCII art sprites with full color support\n- Zero Dependencies - No external libraries required\n\n## Quick Start\n\n### Building\n```shell\nmake                # Build the game\nmake clean          # Clean build artifacts\n```\n\n### Running\n```shell\n./trex                          # Play the game (optimized rendering)\nTUI_DISABLE_WRITEV=1 ./trex     # Compatibility mode for older systems\n```\n\n### Controls\n- Space or Up Arrow: Jump over obstacles\n- Down Arrow: Duck under pterodactyls\n- ESC or Q: Return to menu / Quit game\n\n## Performance Optimizations\nThis implementation includes several advanced optimizations for terminal rendering:\n\n### Vectored I/O (Default)\n- 70-90% fewer system calls compared to traditional terminal applications\n- Batches cursor movements, colors, and text into single writev() operations\n- Especially beneficial for SSH connections and remote terminals\n- Automatic fallback to compatibility mode if unsupported\n\n### Additional Optimizations\n- Hierarchical dirty region tracking - Only updates changed screen areas\n- Escape sequence caching - Pre-computed terminal control sequences\n- RLE compression - Optimized rendering of repeated characters\n- Attribute state caching - Eliminates redundant color/style changes\n\n## License\n`trex` is available under a permissive MIT-style license.\nUse of this source code is governed by a MIT license that can be found in the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjserv%2Ftrex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjserv%2Ftrex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjserv%2Ftrex/lists"}