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