Skip to content

Binary-ShadowMonarch/textit

Repository files navigation

✨ TextIt - Universal Text Format Converter

TextIt Banner

πŸš€ Convert text to 8+ formats instantly β€’ Privacy-first β€’ Zero server uploads

Live Demo β†’

Svelte 5 License: MIT PRs Welcome


🎯 What is TextIt?

TextIt is a blazing-fast, client-side text format converter that transforms your content into multiple formats instantly. Perfect for developers, writers, researchers, and anyone working with AI models!

✨ Key Features

  • πŸ€– AI-Ready - Format text for feeding context to LLMs
  • πŸ”’ 100% Privacy - All processing happens in your browser
  • ⚑ 8+ Formats - TXT, Markdown, HTML, JSON, CSV, XML, RTF, LaTeX
  • 🎨 Modern UI - Glassmorphic design with smooth animations
  • πŸ“‚ Drag & Drop - Just drop your text files
  • ⌨️ Keyboard Shortcuts - Power user friendly
  • πŸ“Š Live Stats - Character, word, line count & reading time
  • πŸ‘οΈ Format Preview - See before you download
  • 🌐 Zero Installation - Works everywhere, instantly

πŸš€ Quick Start

Try it Now

Visit textit.saurabpoudel.com.np and start converting!

Local Development

# Clone the repository
git clone https://github.com/yourusername/textit.git
cd textit

# Install dependencies
npm install

# Start development server
npm run dev

# Open http://localhost:5173

Build for Production

# Create optimized build
npm run build

# Preview production build
npm run preview

πŸ“– Usage Guide

Basic Usage

  1. Enter your text - Type or paste content into the editor
  2. Choose format - Click any format button to download
  3. Done! - File downloads instantly

Advanced Features

🎹 Keyboard Shortcuts

  • Ctrl/Cmd + S - Quick save as TXT
  • Ctrl/Cmd + K - Toggle statistics panel

πŸ“‚ Drag & Drop

Simply drag any text file onto the app and it'll load automatically!

🎭 Text Transformations

  • UPPERCASE - Convert all text to uppercase
  • lowercase - Convert all text to lowercase
  • Title Case - Capitalize First Letter Of Each Word
  • Copy - Copy to clipboard with one click

πŸ‘οΈ Format Preview

Hover over any format card and click the eye icon (πŸ‘οΈ) to preview the converted content before downloading.

⚑ Bulk Download

Click "Download All" to get your text in all 8 formats at once!


🎨 Supported Formats

Format Extension Best For
πŸ“„ Plain Text .txt Universal compatibility
πŸ“ Markdown .md Documentation, README files
🌐 HTML .html Web pages, email templates
{ } JSON .json Structured data, APIs
πŸ“Š CSV .csv Spreadsheets, data analysis
πŸ“‹ XML .xml Data exchange, configs
πŸ“‘ RTF .rtf Word processors, formatted text
Ξ€ LaTeX .tex Academic papers, scientific docs

πŸ› οΈ Tech Stack

  • Svelte 5 - Modern reactive framework with Runes
  • SvelteKit - Full-stack framework
  • Tailwind CSS - Utility-first styling
  • Vite - Lightning-fast build tool
  • Static Adapter - Deploy anywhere

🌟 Why TextIt?

πŸ€– Perfect for AI Workflows

  • Feed large context to ChatGPT, Claude, or any LLM
  • Convert documentation for AI analysis
  • Format training data quickly

πŸ”’ Privacy First

  • Zero server uploads - Everything runs in your browser
  • No tracking - Your data stays yours
  • Open source - Audit the code yourself

⚑ Lightning Fast

  • Instant conversion - No waiting for server processing
  • Offline capable - Works without internet after first load
  • No rate limits - Convert as much as you want

πŸ› οΈ Developer Friendly

  • Quick format switching for configs
  • Convert README files
  • Generate documentation in multiple formats
  • Export data for testing

πŸ“¦ Project Structure

textit/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   └── +page.svelte          # Main app component
β”‚   β”œβ”€β”€ app.html                   # HTML template
β”‚   └── app.css                    # Global styles
β”œβ”€β”€ static/                        # Static assets
β”œβ”€β”€ svelte.config.js              # SvelteKit config
β”œβ”€β”€ tailwind.config.js            # Tailwind config
β”œβ”€β”€ vite.config.js                # Vite config
└── package.json

πŸ”§ Configuration

Deployment

TextIt uses @sveltejs/adapter-static for deployment. To deploy:

  1. Build the project:

    npm run build
  2. Deploy the build folder to any static hosting:

    • Vercel
    • Netlify
    • GitHub Pages
    • Cloudflare Pages
    • Your own server

Environment Variables

No environment variables needed! Everything runs client-side.


🀝 Contributing

We love contributions! Here's how you can help:

  1. Fork the repository
  2. Create a feature branch
    git checkout -b feature/amazing-feature
  3. Commit your changes
    git commit -m 'Add some amazing feature'
  4. Push to the branch
    git push origin feature/amazing-feature
  5. Open a Pull Request

Ideas for Contributions

  • πŸ“ Add more output formats (PDF, DOCX, etc.)
  • 🎨 New themes or UI improvements
  • 🌍 Internationalization (i18n)
  • πŸ”§ Text manipulation tools
  • πŸ“± Mobile app version
  • β™Ώ Accessibility improvements

πŸ› Bug Reports

Found a bug? Please open an issue with:

  • Clear description of the problem
  • Steps to reproduce
  • Expected vs actual behavior
  • Browser/OS information

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

  • Built with Svelte 5 - Amazing reactivity with Runes
  • Styled with Tailwind CSS
  • Inspired by the need to feed context to AI models efficiently
  • Thanks to all contributors!

πŸ“ž Contact & Support


Made with ❀️ and Svelte 5

⬆ Back to Top

About

simple tool to quickly download or change format for text files!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published