{"id":37123287,"url":"https://github.com/nathanielfernandes/lingo","last_synced_at":"2026-01-14T14:14:24.066Z","repository":{"id":125290531,"uuid":"462532034","full_name":"nathanielfernandes/lingo","owner":"nathanielfernandes","description":"Lingo is a CLI tool for counting lines of code in a workspace.","archived":false,"fork":false,"pushed_at":"2022-04-15T21:55:10.000Z","size":641,"stargazers_count":44,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T11:59:39.597Z","etag":null,"topics":["charm","cli","golang","tokei"],"latest_commit_sha":null,"homepage":"","language":"Go","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/nathanielfernandes.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}},"created_at":"2022-02-23T01:04:53.000Z","updated_at":"2023-10-26T15:30:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"673e5d3c-c28b-486b-ba8a-2477ca2d6b3f","html_url":"https://github.com/nathanielfernandes/lingo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nathanielfernandes/lingo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielfernandes%2Flingo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielfernandes%2Flingo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielfernandes%2Flingo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielfernandes%2Flingo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathanielfernandes","download_url":"https://codeload.github.com/nathanielfernandes/lingo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathanielfernandes%2Flingo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422430,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["charm","cli","golang","tokei"],"created_at":"2026-01-14T14:14:23.015Z","updated_at":"2026-01-14T14:14:24.054Z","avatar_url":"https://github.com/nathanielfernandes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# _Lingo_\n\n## A fast CLI tool for counting lines of code in a workspace.\n\n\u003cimg src=\"./screenshots/ss1.png\"\u003e\n\nBuilt with speed in mind, lingo can count lines of very large code repositories in under a second. [examples](#screenshots)\n\nLingo supports almost every programming language, if it's missing one feel free to make an `issue`\n\n## Usage\n\n### CLI\n\nBy default, lingo will count the lines of code in the current directory `.`. \u003cbr/\u003e\nHowever, a directory can be passed in.\n\nAdditionally lingo does not count `.gitignored` files, but this can be disabled by passing the `-n` flag.\n\n```\nUSAGE:\n    lingo [FLAGS] \u003cdirectory\u003e\n\nFLAGS:\n    -h, --help          Print help information\n    -n, --nogitignore   Ignores any .gitignore files\n```\n\n### API\n\n```go\nimport \"github.com/nathanielfernandes/lingo/lingo\"\n\nfunc main() {\n    // walks through the directory and returns a map of language names\n    // to language objects\n    /*  type Language struct {\n\t        Name  string\n\t        Files []string\n\t        Count uint32\n\t        Color string\n        }\n    */\n    langs := lingo.GetLanguages(\".\", true)\n\n    // Counts the lines of all the languages found, updating\n    // the language objects\n    langs.CountLines()\n\n    // The lines are counted on goroutines. This wait, waits\n    // for all the goroutines to complete\n    langs.Wait()\n\n\n    // if you just need the line count right away you can use\n    langs.CountLinesNow()\n    // This counts the lines and waits for the goroutines to\n    // complete\n}\n```\n\n## Screenshots\n\n\u003e all screenshots taken were of [iterm](https://iterm2.com/)\n\n\u003cimg src=\"./screenshots/ss2.png\"\u003e\n\nI used [bubbletea](https://github.com/charmbracelet/bubbletea) to create the clean ui.\n\n\u003cimg src=\"./screenshots/ss3.png\"\u003e\n\nIn this screenshot lingo was called in a folder with around `50+ projects` amounting to `162,761 files` and `3,847,173` lines of code. All counted and displayed in approx. `5 seconds`\n\n## Author\n\nNathaniel Fernandes nathaniel.s.fernandes@gmail.com\n\nThis project was inspired by [tokei](https://github.com/XAMPPRocky/tokei)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanielfernandes%2Flingo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathanielfernandes%2Flingo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathanielfernandes%2Flingo/lists"}