{"id":23913291,"url":"https://github.com/alwalxed/context-dump","last_synced_at":"2026-02-02T06:10:30.124Z","repository":{"id":269162925,"uuid":"906604265","full_name":"alwalxed/context-dump","owner":"alwalxed","description":"An interactive CLI tool to create AI-friendly context from selected files.","archived":false,"fork":false,"pushed_at":"2024-12-21T12:24:03.000Z","size":171,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-16T01:12:34.093Z","etag":null,"topics":["ai","cli","cli-tool","dumper","file-dump","file-merger","interactive","javascript","nodejs"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/context-dump","language":"TypeScript","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/alwalxed.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":"2024-12-21T11:21:21.000Z","updated_at":"2024-12-22T08:40:15.000Z","dependencies_parsed_at":"2024-12-21T12:26:31.946Z","dependency_job_id":"72d1c39a-aa25-49bf-a9c4-20a256b55d99","html_url":"https://github.com/alwalxed/context-dump","commit_stats":null,"previous_names":["alwalxed/context-dump"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fcontext-dump","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fcontext-dump/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fcontext-dump/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alwalxed%2Fcontext-dump/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alwalxed","download_url":"https://codeload.github.com/alwalxed/context-dump/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249178217,"owners_count":21225350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["ai","cli","cli-tool","dumper","file-dump","file-merger","interactive","javascript","nodejs"],"created_at":"2025-01-05T09:36:00.740Z","updated_at":"2026-02-02T06:10:25.101Z","avatar_url":"https://github.com/alwalxed.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Context Dump for AI\n\nAn interactive CLI tool to generate AI-friendly context from selected files, making project data easily consumable for AI models.\n\n## Features\n\n- **Interactive File Selection**: Choose files using a checkbox interface.\n- **Intelligent File Filtering**: Automatically ignores common files and directories (e.g., `node_modules`, `.git`).\n- **`.gitignore` Compliance**: Respects `.gitignore` rules to streamline file selection.\n- **Structured JSON Output**: Outputs a JSON file containing the project structure and file contents.\n\n## Installation\n\nInstall the tool globally with:\n\n```bash\nnpm install -g context-dump\n```\n\n## Usage\n\n### Basic Command\n\nRun the tool with a simple command:\n\n```bash\ncontext-dump\n```\n\nBy default, the output is saved to `ai_context.json` in the current directory.\n\n### Options\n\n#### Specify Output File\n\nUse the `-o` or `--output` option to specify a custom output file:\n\n```bash\ncontext-dump -o custom_output.json\n```\n\n#### Exclude Specific Files or Folders\n\nUse the `-e` or `--exclude` option to exclude specific files or folders (comma-separated):\n\n```bash\ncontext-dump -e foo,bar\n```\n\n## Screenshots\n\n![context-dump-for-ai](https://raw.githubusercontent.com/alwalxed/context-dump/refs/heads/main/screenshot.png)\n\n## Output Structure\n\nThe output JSON file contains two main sections:\n\n- **`project_structure`**: A list of file paths included in the output.\n- **`file_contents`**: A dictionary where keys are file paths, and values include the file content and extension.\n\n### Example Output\n\n```json\n{\n  \"project_structure\": [\"example.js\"],\n  \"file_contents\": {\n    \"example.js\": {\n      \"content\": \"console.log('Hello, World!');\",\n      \"extension\": \"js\"\n    }\n  }\n}\n```\n\n## Contributing\n\nSubmit issues or pull requests to help improve this tool.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](https://github.com/alwalxed/context-dump/blob/main/LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwalxed%2Fcontext-dump","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falwalxed%2Fcontext-dump","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falwalxed%2Fcontext-dump/lists"}