{"id":50750788,"url":"https://github.com/dcai/grumpy","last_synced_at":"2026-06-11T01:02:48.845Z","repository":{"id":208535706,"uuid":"721878124","full_name":"dcai/grumpy","owner":"dcai","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-12T09:24:01.000Z","size":165,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-15T01:57:34.502Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/dcai.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}},"created_at":"2023-11-22T00:48:32.000Z","updated_at":"2023-11-22T00:51:49.000Z","dependencies_parsed_at":"2023-11-22T02:07:13.750Z","dependency_job_id":"b66d8a79-3aa1-4f40-8577-a09614499809","html_url":"https://github.com/dcai/grumpy","commit_stats":null,"previous_names":["dcai/grumpy"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dcai/grumpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcai%2Fgrumpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcai%2Fgrumpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcai%2Fgrumpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcai%2Fgrumpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcai","download_url":"https://codeload.github.com/dcai/grumpy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcai%2Fgrumpy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34177445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"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":"2026-06-11T01:02:48.003Z","updated_at":"2026-06-11T01:02:48.815Z","avatar_url":"https://github.com/dcai.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### grumpy\n\nOpenai client I use on cli.\n\n#### Install\n\n```\nnpm install grumpy-ai\n```\n\nThis installs a executable called `ai`, and requires `OPENAI_API_KEY` in your shell environment, then you can do things like this:\n\n- `ai as`: list predefined prompts, to edit the library, edit `$HOME/ai.json`.\n- `ai as dict`: Assume you have `dict` prompt in ai.json, this will use `dict` prompt to answer your questions.\n- `ai ask`: ask openai in an interactive way.\n- `cat question.md | ai frompipe | bat -l markdown`: read question from a markdown file and render answer with [bat](https://github.com/sharkdp/bat)\n- `cat question.md | ai frompipe | pbcopy`: read question from markdown and copy the answer to clipboard, I find difficult to copy long answer in chatgpt web or other GUI, this makes it easier.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcai%2Fgrumpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcai%2Fgrumpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcai%2Fgrumpy/lists"}