Better HN
topnewbestaskshowjobs
Log inSign up

ghttp

2 karma · joined Jul 12, 2024 (2y ago) · 9 submissions

Submissions

1.

OpenAPI and Hono Serverless Template(github.com ↗)

2 points · by ghttp · 1y ago · discuss

2.

NPM helper to wrap functions in try/catch for error handling(npmjs.com ↗)

1 points · by ghttp · 1y ago · discuss

3.

Type-Safe CF Workers Boilerplate with Hono and OpenAPI(github.com ↗)

1 points · by ghttp · 1y ago · discuss

4.

How Can AirPods Be Tracked Without GPS?

2 points · by ghttp · 1y ago · 3 comments

comment 1y ago · link · parent

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](https://github.com/alwalxed/context-dump). If it sounds useful, give it a try.

6.

Interactive CLI tool to generate AI-friendly context(github.com ↗)

3 points · by ghttp · 1y ago · 1 comment