{"id":28801349,"url":"https://github.com/darrenburns/o4t","last_synced_at":"2026-04-18T01:36:55.588Z","repository":{"id":299333747,"uuid":"1002687733","full_name":"darrenburns/o4t","owner":"darrenburns","description":"terminal based typing game","archived":false,"fork":false,"pushed_at":"2025-06-28T15:05:00.000Z","size":203,"stargazers_count":28,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-18T01:36:42.029Z","etag":null,"topics":["ratatui","rust","rust-lang","terminal","tui","typing-game"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/darrenburns.png","metadata":{"files":{"readme":"README.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-06-16T01:31:59.000Z","updated_at":"2026-04-08T04:46:09.000Z","dependencies_parsed_at":"2025-06-16T02:35:34.775Z","dependency_job_id":"694ec355-4a95-4528-8c3a-18f8abbc14f4","html_url":"https://github.com/darrenburns/o4t","commit_stats":null,"previous_names":["darrenburns/o4t"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/darrenburns/o4t","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenburns%2Fo4t","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenburns%2Fo4t/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenburns%2Fo4t/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenburns%2Fo4t/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darrenburns","download_url":"https://codeload.github.com/darrenburns/o4t/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenburns%2Fo4t/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: 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":["ratatui","rust","rust-lang","terminal","tui","typing-game"],"created_at":"2025-06-18T07:09:15.170Z","updated_at":"2026-04-18T01:36:55.572Z","avatar_url":"https://github.com/darrenburns.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `o4t`\n\no4t (pronounced _\"oat\"_) is a typing game that runs in your terminal.\n\n\u003cimg width=\"812\" alt=\"image\" src=\"https://github.com/user-attachments/assets/c3e88646-ba5b-4cb3-8d65-fe0ab33d0739\" /\u003e\n\nIt's heavily inspired by [monkeytype](https://monkeytype.com).\n\n## Installation\n\n\u003e [!IMPORTANT]  \n\u003e o4t isn't yet released, and I'm actively working on the `main` branch.\n\nRight now, you'll have to check out the repo and run it with `cargo run`, but it might not work. Sorry!\n\n## Usage\n\nRun `o4t` via the command line. Start typing the words on screen to immediately start a typing test.\n\n### Configuration \n\nPass config to o4t via the CLI, environment variables, or `config.toml`.\n\n- `-t`/`--time`: the duration of games in seconds\n- `-c`/`--cursor`: either `underline`, `block`, or `none` - the type of cursor to use\n- `--theme`: the theme to use\n- `--current-word`: either `bold`, `highlight`, or `none` - how the word under the cursor should be highlighted\n- `--target-wpm`: if non-zero, displays a \"ghost\" cursor which moves at the specified wpm\n\nTo use environment variables, simply take the name of the CLI option, prefix it with `O4T_`, upper-case it, and convert `-` to `_`. \n\nFor example, you could invoke o4t via the command line like so `O4T_CURRENT_WORD=bold o4t`. This is equivalent to `o4t --current-word bold`.\n\nAll config options can also be set via the `config.toml` file, and use snake case.\nThe location of this file is shown in the output of `o4t --help`.\nHere's an example `config.toml`:\n\n```toml\ncurrent_word = \"highlight\"\ncursor = \"underline\"\ntheme = \"gruvbox\"\ntime = 45\ntarget_wpm = 100\n```\n\nCLI options have the highest precedence, followed by environment variables, followed by `config.toml`.\n\n## Themes\n\no4t supports various themes, including `nord`, `catppuccin-mocha`, `dracula`, `gruvbox`, `solarized-dark`, `tokyo-night`, `monokai`, `galaxy`, `terminal-yellow`, `terminal-cyan`.\n\nThemes prefixed with `terminal-` use your terminal emulator's ANSI colours.\n\n## Word lists\n\nThis is a WIP - there's currently only 1 word list - \"English Top 1k\", and it's defined in code. The plan is to just be able to load arbitrary word lists from disk, but I haven't implemented that yet.\n\n## Target WPM\n\no4t can display a \"pace cursor\" which you can race against. The speed of this cursor is defined by the `target_wpm` config.\n\n![o4t-ghost-cursor-short](https://github.com/user-attachments/assets/bf69167a-4c83-4d70-83a5-8663a1d83ae7)\n\n## History\n\nThis hasn't been implemented, but I'm considering saving data for each session in JSONL format or a local SQLite database.\n\n## More Info\n\n- _WPM_ is \"Words Per Minute\", and is computed as `((character_matches + num_correct_words) / 5.) * (60. / seconds_elapsed)`. There is currently no penalty for incorrectly typed words, meaning if you miss one character in a word, the other correctly typed characters will still be counted.\n- _Accuracy_ is the percentage of all characters typed during the game that matched the expected character. This means that if you've made corrections during a game, you will not have 100% accuracy.\n- On the score screen, \"Perfect!\" will only appear if you made no mistakes at any time during the game.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrenburns%2Fo4t","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarrenburns%2Fo4t","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrenburns%2Fo4t/lists"}