{"id":29118809,"url":"https://github.com/leonardcser/wpm-tracker.nvim","last_synced_at":"2026-04-17T06:32:01.157Z","repository":{"id":296568471,"uuid":"993825568","full_name":"leonardcser/wpm-tracker.nvim","owner":"leonardcser","description":"Track your wpm in neovim","archived":false,"fork":false,"pushed_at":"2025-10-02T12:46:03.000Z","size":33,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-19T09:03:53.290Z","etag":null,"topics":["lua","nvim","wpm"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/leonardcser.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-31T15:52:20.000Z","updated_at":"2025-10-02T12:46:07.000Z","dependencies_parsed_at":"2025-06-01T04:26:05.055Z","dependency_job_id":"69f2d944-280a-42cb-8abb-94d92bdcd218","html_url":"https://github.com/leonardcser/wpm-tracker.nvim","commit_stats":null,"previous_names":["leonardcser/wpm-tracker.nvim"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leonardcser/wpm-tracker.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardcser%2Fwpm-tracker.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardcser%2Fwpm-tracker.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardcser%2Fwpm-tracker.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardcser%2Fwpm-tracker.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leonardcser","download_url":"https://codeload.github.com/leonardcser/wpm-tracker.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leonardcser%2Fwpm-tracker.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31918479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"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":["lua","nvim","wpm"],"created_at":"2025-06-29T13:05:01.651Z","updated_at":"2026-04-17T06:32:01.124Z","avatar_url":"https://github.com/leonardcser.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WPM Tracker for Neovim\n\nTrack your typing speed in Neovim with separate metrics for manual typing and\ncompletions/AI-assisted coding.\n\n## Features\n\n- **📝 Manual WPM**: Track your pure typing speed\n- **🤖 Assisted WPM**: Include completions and AI assistance\n- **📊 Live Display**: Real-time WPM in your statusline\n- **💾 Data Export**: Save sessions to CSV for analysis\n\n## Installation\n\n### Using [lazy.nvim](https://github.com/folke/lazy.nvim)\n\n```lua\n{\n  \"leonardcser/wpm-tracker.nvim\",\n  config = function()\n    require(\"wpm-tracker\").setup({\n      -- Log file location (CSV format)\n      log_file = vim.fn.stdpath(\"data\") .. \"/wpm-tracker.csv\",\n      -- Rolling average window size\n      average_window = 10,\n      -- Minimum session length to record (milliseconds)\n      min_session_length = 5000,\n      -- Update interval for lualine (milliseconds)\n      update_interval = 1000,\n      -- Stop tracking after inactivity (milliseconds)\n      idle_timeout = 5000,\n    })\n\n    -- Optional keymaps\n    vim.keymap.set(\"n\", \"\u003cleader\u003ews\", \"\u003ccmd\u003eWPMStats\u003ccr\u003e\", { desc = \"Show WPM statistics\" })\n    vim.keymap.set(\"n\", \"\u003cleader\u003ewl\", \"\u003ccmd\u003eWPMLog\u003ccr\u003e\", { desc = \"Open WPM log file\" })\n    vim.keymap.set(\"n\", \"\u003cleader\u003ewc\", \"\u003ccmd\u003eWPMClear\u003ccr\u003e\", { desc = \"Clear WPM history\" })\n    vim.keymap.set(\"n\", \"\u003cleader\u003ewp\", \"\u003ccmd\u003eWPMPlot\u003ccr\u003e\", { desc = \"Plot WPM data\" })\n  end,\n}\n```\n\n### Add to Lualine (Optional)\n\n```lua\n-- Add to your lualine configuration\nsections = {\n  lualine_x = {\n    {\n      function()\n        return require(\"wpm-tracker\").get_wpm_display()\n      end,\n      cond = function()\n        return require(\"wpm-tracker\").get_current_wpm() \u003e 0\n      end,\n      color = { fg = \"#3EFFDC\" },\n    },\n    -- ... other components\n  },\n}\n```\n\n#### Custom Display Format\n\nUse the `get_current_wpm()` function to get the current WPM instead of calling\n`get_wpm_display()`.\n\n```lua\nsections = {\n  lualine_x = {\n    {\n      function()\n        local wpm = require(\"wpm-tracker\").get_current_wpm()\n        -- Format the WPM as you like\n        return string.format(\"WPM: %d\", wpm)\n      end,\n      cond = function()\n        return require(\"wpm-tracker\").get_current_wpm() \u003e 0\n      end,\n      color = { fg = \"#3EFFDC\" },\n    },\n    -- ... other components\n  },\n}\n```\n\n## Usage\n\nJust start typing! The plugin automatically tracks your WPM and shows it in\nlualine.\n\n**Commands:**\n\n- `:WPMStats` - Show detailed statistics\n- `:WPMLog` - Open your WPM log file\n- `:WPMClear` - Clear all WPM history and log file (with confirmation prompt)\n- `:WPMPlot [N]` - Display ASCII charts of your WPM data (optionally limit to last N points)\n\n## How It Works\n\nThe plugin tracks two types of WPM:\n\n- **Manual WPM**: Only counts characters you actually type\n- **Assisted WPM**: Includes completions from LSP, Supermaven, etc.\n\nThe plugin automatically stops tracking if you enter insert mode but don't type\nanything within the configured idle timeout period (default 5 seconds),\npreventing empty sessions from being recorded.\n\nThis gives you insight into both your raw typing speed and your overall coding\nproductivity.\n\n## CSV Export\n\nYour typing sessions are automatically saved to a CSV file:\n\n```csv\ntimestamp,manual_wpm,assisted_wpm,duration,manual_chars,total_chars\n2024-01-15 14:30:25,65,120,12.3,95,185\n```\n\n## Documentation\n\nFor advanced usage and API details:\n\n```vim\n:help wpm-tracker\n```\n\n## Contributing\n\nContributions welcome! Please feel free to submit issues and pull requests.\n\n## License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardcser%2Fwpm-tracker.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleonardcser%2Fwpm-tracker.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleonardcser%2Fwpm-tracker.nvim/lists"}