https://github.com/bernaferrari/text-to-files
Turn AI chat outputs into files with a single paste.
https://github.com/bernaferrari/text-to-files
Last synced: 4 months ago
JSON representation
Turn AI chat outputs into files with a single paste.
- Host: GitHub
- URL: https://github.com/bernaferrari/text-to-files
- Owner: bernaferrari
- License: mit
- Created: 2025-04-04T04:35:59.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-27T18:34:18.000Z (about 1 year ago)
- Last Synced: 2025-04-29T19:56:06.509Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://text-to-files.vercel.app
- Size: 2.7 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Text to Files
Quickly organize and save code snippets from text sources like LLM responses into a structured file system.
[](https://text-to-files.vercel.app/)
**Try it live: **
## Overview
Tired of manually finding and copying code blocks and creating files from AI chats? This tool automates the process. Paste text containing code blocks (with file paths), and the extractor intelligently builds a file tree, ready for preview and download. It simplifies turning scattered snippets into a usable project structure.
## Key Features ✨
- **Smart Extraction:** Identifies file paths and code blocks from unstructured text.
- **File Tree View:** Visualizes the extracted folder structure.
- **Code Preview:** View file content with syntax highlighting.
- **Path Transformation:** Convert names (`camelCase`, `kebab-case`, etc.) & update imports.
- **Download Options:** Get individual files, folders, or a full project ZIP.
- **Demo & Persistence:** Load sample data and saves your work locally.
- **Clipboard Friendly:** Easy paste input, copy content.
## How to Use
1. **Copy:** Copy LLM output by clicking in the "copy" button (the one that copies the whole result).
2. **Paste:** Paste text with code blocks to the input area.
3. **Review:** See the extracted file tree appear on the right. Click on them to preview.
4. **(Optional) Transform:** Change path naming styles using the "Rename files" dropdown.
5. **Download:** Click to download individual files or the whole project.
**Web Interface:** Access the tool directly at ****. No setup needed!
## Limitations
- May struggle with unclearly formatted file paths.
- Complex import updates during transformation might need manual review.
- Very large inputs could impact performance.
- The tool may not support all programming languages or file formats.
If you find an issue or have a suggestion, please [open an issue](../../issues).
## Local Development 💻
1. **Clone:** `git clone https://github.com/bernaferrari/text-to-files.git && cd text-to-files`
2. **Install:** `pnpm i`
3. **Run:** `pnpm dev`
4. **Open:** `http://localhost:3000`