A React application that analyzes text files to find repeated character sequences and uses OpenAI to sort the results.
- File upload via drag & drop or file picker
- Character sequence analysis
- AI-powered sorting of results using OpenAI
- History of last 5 processed files
- Results persistence using local storage
- Node.js 20.x or later
- npm or yarn
- Docker and Docker Compose (for containerized deployment)
- OpenAI API key
- Install dependencies:
npm install- Create a
.envfile and add your OpenAI API key:
REACT_APP_OPENAI_API_KEY=your_api_key_here
- Start the development server:
npm start- Clone the repository:
git clone https://github.com/your-username/character-analyzer.git
cd character-analyzer- Create a
.envfile with your OpenAI API key:
cp .env.example .env
# Edit .env and add your OpenAI API key- Start the application with Docker Compose:
docker-compose up -dThe application will be available at http://localhost:3000
/src- Source code/components- React components/utils- Utility functions
/public- Static filesDockerfile- Docker configurationdocker-compose.yml- Docker Compose configuration
REACT_APP_OPENAI_API_KEY- Your OpenAI API keyNODE_ENV- Application environment (development/production)PORT- Application port (default: 3000)
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT License - feel free to use this project for your own purposes.