Logo

dev-resources.site

for different kinds of informations.

Context Dump: Simplifying AI File Preparation

Published at
12/21/2024
Categories
cli
javascript
ai
opensource
Author
alwalxed
Categories
4 categories in total
cli
open
javascript
open
ai
open
opensource
open
Author
8 person written this
alwalxed
open
Context Dump: Simplifying AI File Preparation

If you’ve ever needed to gather specific project files for an AI task, Context Dump might help. It’s a simple CLI tool to generate a JSON dump of your project’s structure and content, ready for AI consumption.

What It Does

Lets you select files interactively using a checkbox.
Automatically ignores files like node_modules, .git, or anything in your .gitignore.
Outputs a structured JSON file containing file paths and contents.

How to Use It

  • Install:
npm install -g context-dump
Enter fullscreen mode Exit fullscreen mode
  • Run in any project directory:
context-dump  
Enter fullscreen mode Exit fullscreen mode

JSON output is saved to ai_context.json by default.

  • You can also:

Change the output filename with -o.
Exclude specific files or folders with -e.

Example Output

Here’s what the JSON looks like:

{  
  "project_structure": ["example.js"],  
  "file_contents": {  
    "example.js": {  
      "content": "console.log('Hello, World!');",  
      "extension": "js"  
    }  
  }  
}
Enter fullscreen mode Exit fullscreen mode

Check it out on Github . If it sounds useful, give it a try.

cli Article's
30 articles in total
Favicon
RAG - Creating the SQLite database and config file
Favicon
Simplifying API Routes in Next.js with next-api-gen
Favicon
Modernizing HyperGraph's CLI: A Journey Towards Better Architecture
Favicon
Making Python CLIs More Maintainable: A Journey with Dynamic Command Loading
Favicon
Making Your CLI Applications Pop with Styled Outputs
Favicon
Makefile
Favicon
Can I start and stop Docker Desktop using CLI?
Favicon
How to Install and Run Redis Directly on macOS (Without Homebrew)
Favicon
From iTerm To WezTerm
Favicon
RAG - Designing the CLI interface
Favicon
Configuring Cisco firewall in Linux machine with Minicom
Favicon
KillPy: The Tool to Clean Up Your Python Virtual Environments 🧹🐍
Favicon
Ubuntu Linux Commands Categorized
Favicon
Rust-Powered Password Decrypter: Find the String Behind the Hash! 🦀🔒
Favicon
Mastering Vim and NvChad for Coding and Development: A Comprehensive Guide
Favicon
The Ultimate Cheat Sheet: CLI Man Pages, tldr, and cheat.sh
Favicon
Git Command Line Mastery: 10 Essential Commands for Version Control Using Git
Favicon
Building My First NPM Package: A CLI for Scaffolding Express Servers
Favicon
.NET Development Essentials on macOS with VS Code
Favicon
How to Configure AWS CLI on Linux
Favicon
Building a GitHub Activity CLI - A Ruby Journey
Favicon
Enhanced CIDR Block Calculator with Expanded Input Formats in Go
Favicon
using cat printer on linux
Favicon
Task Tracker CLI
Favicon
Context Dump: Simplifying AI File Preparation
Favicon
MyTask ToDo CLI Tool...
Favicon
I made wut – a CLI that explains your last command with an LLM
Favicon
Magento 2 commands for maintenance and deployment
Favicon
Rusty Journal: A Minimal and Efficient CLI Journal & ToDo App
Favicon
[Boost]

Featured ones: