{"id":50515360,"url":"https://github.com/dkmaker/knowledgebase-cli","last_synced_at":"2026-06-02T23:31:09.715Z","repository":{"id":333685327,"uuid":"1138074728","full_name":"dkmaker/knowledgebase-cli","owner":"dkmaker","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-20T13:44:14.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-20T22:18:47.420Z","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/dkmaker.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,"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":"2026-01-20T08:00:24.000Z","updated_at":"2026-01-20T13:44:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/dkmaker/knowledgebase-cli","commit_stats":null,"previous_names":["dkmaker/knowledgebase-cli"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/dkmaker/knowledgebase-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fknowledgebase-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fknowledgebase-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fknowledgebase-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fknowledgebase-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dkmaker","download_url":"https://codeload.github.com/dkmaker/knowledgebase-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dkmaker%2Fknowledgebase-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33841995,"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-02T02:00:07.132Z","response_time":109,"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-02T23:31:08.914Z","updated_at":"2026-06-02T23:31:09.697Z","avatar_url":"https://github.com/dkmaker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @dkmaker/knowledgebase-cli\n\nA profile-based research CLI with knowledge management capabilities. Execute AI-powered research queries and organize results into a curated library.\n\n## Features\n\n- **Profile-based research**: Choose from general, code, docs, or troubleshoot profiles\n- **Multiple providers**: Extensible provider system (currently supports Perplexity)\n- **Knowledge management**: Save research to drafts, curate into categorized library\n- **AI-optimized output**: Token-efficient output format for AI agent integration\n- **Zero dependencies**: Uses only Node.js built-ins (fetch, fs, path, crypto)\n\n## Installation\n\n```bash\nnpm install -g @dkmaker/knowledgebase-cli\n```\n\nOr run directly with npx:\n\n```bash\nnpx @dkmaker/knowledgebase-cli \"your query\"\n```\n\n## Usage\n\n### Execute a search\n\n```bash\n# General research (default profile)\nkbcli \"What is quantum computing?\"\n\n# Code examples\nkbcli --profile code \"React hooks examples\"\n\n# Official documentation\nkbcli --profile docs \"Node.js fs.readFile\"\n\n# Troubleshooting\nkbcli --profile troubleshoot \"ECONNREFUSED error\"\n```\n\n### Manage drafts\n\n```bash\n# List all drafts\nkbcli drafts\n\n# List drafts for current repository only\nkbcli drafts --local\n\n# View a draft entry\nkbcli drafts show abc123\n\n# View with sources and thinking\nkbcli drafts show abc123 --sources --thinking\n\n# Save draft to library\nkbcli drafts save abc123 --to my-category\n\n# Delete a draft\nkbcli drafts rm abc123\n```\n\n### Manage library\n\n```bash\n# List all library entries\nkbcli library\n\n# Filter by category\nkbcli library --category react\n\n# View an entry\nkbcli library show abc123\n```\n\n### Manage categories\n\n```bash\n# List categories\nkbcli categories\n\n# Create a new category\nkbcli categories new react-hooks --desc \"React hooks patterns\"\n\n# Delete a category\nkbcli categories rm abc123\n```\n\n### View profiles and providers\n\n```bash\n# List available profiles\nkbcli profiles\n\n# List available providers\nkbcli providers\n```\n\n## Output Formats\n\n- `md` - Markdown with YAML frontmatter (default for humans)\n- `ai` - Token-efficient YAML-style output (default when CLAUDECODE=1)\n- `json` - Raw JSON output\n\n```bash\nkbcli --output json \"your query\"\n```\n\n## Search Options\n\n| Option | Description |\n|--------|-------------|\n| `--profile, -p` | Profile: general, code, docs, troubleshoot |\n| `--model, -m` | Override model from profile |\n| `--recency` | Filter: day, week, month, year |\n| `--domains` | Comma-separated domain filter |\n| `--max-tokens` | Maximum response tokens |\n| `--show-thinking` | Display reasoning process |\n| `--output, -o` | Output format: md, json, ai |\n\n## Environment Variables\n\n| Variable | Description |\n|----------|-------------|\n| `PERPLEXITY_API_KEY` | Perplexity API key (required) |\n| `KBCLI_DATA_DIR` | Override data directory (default: ~/.local/share/knowledgebase) |\n| `CLAUDECODE` | Set to \"1\" for AI-optimized output |\n\n## Data Storage\n\nAll data is stored in `~/.local/share/knowledgebase/`:\n\n- `categories.json` - Category definitions\n- `drafts.json` - Draft research entries\n- `library.json` - Curated library entries\n\n## Profiles\n\n| Profile | Model | Purpose |\n|---------|-------|---------|\n| `general` | sonar | General-purpose research (default) |\n| `code` | sonar-reasoning-pro | Code examples with step-by-step reasoning |\n| `docs` | sonar | Official documentation and API references |\n| `troubleshoot` | sonar | Error messages, bugs, debugging |\n\n## Requirements\n\n- Node.js \u003e= 18.0.0\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkmaker%2Fknowledgebase-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkmaker%2Fknowledgebase-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkmaker%2Fknowledgebase-cli/lists"}