AI-Powered Text Analysis Tool
A modern, comprehensive text analysis application that uses advanced AI to provide insights into writing quality, sentiment, authorship detection, and much more. Built with React, TypeScript, and Tailwind CSS, powered by multiple AI models including Gemini, OpenAI, and Claude.
- Multi-Model Support: Gemini, OpenAI, Claude, and custom AI models
- Sentiment Analysis: Advanced emotion detection with confidence scores
- Writing Style Detection: Tone, formality, complexity, and audience analysis
- Content Quality Assessment: Clarity, coherence, engagement, and originality scoring
- AI vs Human Detection: Classify text as AI-generated or human-written
- Topic Extraction: Automatic identification of main topics and keywords
- Plagiarism Risk Assessment: Basic plagiarism risk evaluation
- Readability Scoring: Easy-to-understand readability metrics
- Word Statistics: Word count, sentence count, paragraph analysis
- Reading Time Estimation: Estimated reading time calculation
- Vocabulary Diversity: Analysis of vocabulary richness
- Emotion Analysis: Detect emotions and their intensity levels
- Dark/Light Mode: Full theme support with system preference detection
- Responsive Design: Mobile-first design that works on all devices
- Interactive Charts: Beautiful data visualizations using Recharts
- Real-time Analysis: Auto-analysis with configurable debounce delay
- File Upload Support: Support for multiple file formats (.txt, .md, .doc, .pdf, etc.)
- Typing Animation: Dynamic text animations for better UX
- Serverless Architecture: Secure API calls through Vercel serverless functions
- No Data Storage: Your text is never stored or saved
- Rate Limiting: Built-in protection against abuse
- Input Sanitization: Comprehensive security validation
- CORS Protection: Secure origin validation
Visit the live application: https://author-check-one.vercel.app/
- Frontend: React 18, TypeScript, Tailwind CSS
- Build Tool: Vite with performance optimizations
- Routing: React Router DOM
- Charts: Recharts for data visualization
- Icons: Custom SVG icons with animations
- Serverless: Vercel Functions for API security
- AI APIs: Google Gemini, OpenAI, Anthropic Claude
- File Processing: Mammoth.js, PDF.js for document parsing
- Styling: Custom CSS animations and transitions
AuthorCheck/
โโโ api/
โ โโโ external.ts # Serverless function for AI API calls
โโโ public/
โ โโโ favicon.png
โ โโโ favicon.svg
โ โโโ 404.html # Custom 404 page
โ โโโ sitemap.xml # SEO sitemap
โ โโโ sw.js # Service worker
โโโ src/
โ โโโ components/
โ โ โโโ analysis/ # Analysis-related components
โ โ โ โโโ AnalysisDisplay.tsx
โ โ โ โโโ AnalysisSettings.tsx
โ โ โ โโโ TextInputPanel.tsx
โ โ โ โโโ HelpModal.tsx
โ โ โโโ ui/ # Reusable UI components
โ โ โโโ Button.tsx
โ โ โโโ Card.tsx
โ โ โโโ Icons.tsx
โ โ โโโ Navbar.tsx
โ โ โโโ ThemeToggle.tsx
โ โ โโโ TypingAnimation.tsx
โ โโโ contexts/
โ โ โโโ ThemeContext.tsx
โ โโโ hooks/
โ โ โโโ useDebounce.ts
โ โโโ pages/
โ โ โโโ Homepage.tsx
โ โ โโโ AnalyzePage.tsx
โ โ โโโ LearnMore.tsx
โ โ โโโ NotFound.tsx
โ โโโ services/ # AI service integrations
โ โโโ types/
โ โ โโโ index.ts
โ โโโ utils/
โ โโโ config/
โ โโโ ai.ts
โโโ .env.example
โโโ vercel.json
โโโ vite.config.ts
โโโ tailwind.config.js
โโโ postcss.config.js
โโโ package.json
- Node.js 18+
- npm or yarn
- Vercel account (for deployment)
-
Clone the repository
git clone https://github.com/yourusername/authorcheck.git cd authorcheck -
Install dependencies
npm install
-
Set up environment variables Copy the example environment file and configure it:
cp .env.example .env
Edit
.envwith your configuration:# AI Configuration AI_ENABLED=true AI_TIMEOUT=30000 AI_FALLBACK_ENABLED=true API_KEY=your_primary_api_key_here MODEL=gemini-2.0-flash ENDPOINT=https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent # App Configuration APP_NAME=AuthorCheck APP_DESCRIPTION=AI-Powered Text Analysis Tool APP_VERSION=1.0.0
-
Start the development server
npm run dev
-
Open your browser Navigate to
http://localhost:3000
-
Connect your repository to Vercel
- Push your code to GitHub
- Import the project in Vercel dashboard
-
Set environment variables in Vercel Configure the following in your Vercel project settings:
AI_ENABLED=true AI_TIMEOUT=30000 AI_FALLBACK_ENABLED=true API_KEY=your_api_key MODEL=your_model_name ENDPOINT=your_api_endpoint APP_NAME=AuthorCheck APP_DESCRIPTION=AI-Powered Text Analysis Tool APP_VERSION=1.0.0 -
Deploy
vercel --prod
npm run build
npm run preview| Variable | Description | Example |
|---|---|---|
AI_ENABLED |
Enable/disable AI features | true |
AI_TIMEOUT |
Request timeout in milliseconds | 30000 |
AI_FALLBACK_ENABLED |
Enable fallback mechanisms | true |
API_KEY |
Primary AI service API key | your_api_key |
MODEL |
AI model to use | gemini-2.0-flash |
ENDPOINT |
AI service endpoint URL | https://... |
APP_NAME |
Application name | AuthorCheck |
APP_DESCRIPTION |
App description for SEO | AI-Powered Text Analysis Tool |
APP_VERSION |
Current app version | 1.0.0 |
- Visit Google AI Studio
- Create a new API key
- Set as
API_KEYin environment variables - Set
MODEL=gemini-2.0-flashand appropriate endpoint
- Visit OpenAI Platform
- Create an API key
- Configure endpoint and model accordingly
- Visit Anthropic Console
- Generate an API key
- Set up Claude-specific configuration
- Navigate to the Analyze page
- Paste or type your text in the input panel
- Enable auto-analysis or click "Analyze Text"
- View comprehensive results in the analysis panel
- Drag and drop files or click to browse
- Supported formats: .txt, .md, .csv, .json, .xml, .log, .html, .rtf, .doc, .docx, .pdf
- File processing: Automatic text extraction and analysis
- Sentiment Analysis: Emotion detection with confidence scores
- Writing Style: Tone, formality, and complexity analysis
- Content Quality: Clarity, coherence, engagement scoring
- AI Detection: Identify AI-generated vs human-written text
- Readability: Easy-to-understand readability metrics
- Topic Extraction: Automatic keyword and topic identification
- Auto Analysis: Toggle automatic analysis as you type
- Debounce Delay: Adjust the delay before auto-analysis triggers
- Theme: Switch between light and dark modes
- Timeout Configuration: Adjust API request timeouts
The application supports custom themes. Modify tailwind.config.js to add your own color schemes:
colors: {
primary: {
// Your primary colors
},
futuristic: {
cyan: '#00d4ff',
purple: '#8b5cf6',
pink: '#ec4899',
// Your futuristic accent colors
}
}To add support for new AI models:
- Update the serverless function in
api/external.ts - Modify the configuration in
src/config/ai.ts - Add environment variables for the new service
- Update type definitions in
src/types/index.ts
- Code Splitting: Automatic vendor and router chunks
- Asset Optimization: Minimized and compressed assets
- Font Loading: Optimized Google Fonts loading
- Image Optimization: WebP support and lazy loading
- Service Worker: Caching for improved performance
- Rate Limiting: Protection against API abuse
- Input Validation: Comprehensive text sanitization
- CORS Protection: Secure origin validation
- Environment Security: Server-side API key management
- No Data Storage: Privacy-first approach
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Follow TypeScript best practices
- Use Tailwind CSS for styling
- Ensure responsive design
- Add proper error handling
- Write meaningful commit messages
- Test across different browsers
- Maintain performance optimizations
npm run lint
npm run build- Lighthouse Score: 95+ across all metrics
- First Contentful Paint: < 1.5s
- Largest Contentful Paint: < 2.5s
- Time to Interactive: < 3.5s
- Bundle Size: Optimized chunks < 500KB
- Chrome: 90+
- Firefox: 88+
- Safari: 14+
- Edge: 90+
- Mobile: iOS Safari 14+, Chrome Mobile 90+
This project is licensed under the Apache License, Version 2.0 โ see the LICENSE.txt file for details.
Summary: You are free to use, modify, and distribute this software under the terms of the Apache License 2.0, provided that proper attribution is given and any modifications are documented.
ShinkaiPH2
- Website: https://author-check-one.vercel.app/
- Discord: @shinkaiph2
- Twitter: @HitsukaPH
- Google Gemini AI for powerful text analysis capabilities
- OpenAI for GPT model support and API
- Anthropic for Claude AI integration
- Vercel for seamless deployment and serverless functions
- React Team for the amazing framework
- Tailwind CSS for the utility-first CSS framework
- Vite for lightning-fast build tool
- TypeScript for type safety and developer experience
- 15,000+ Texts Analyzed
- 98% Accuracy Rate
- 50+ Analysis Features
- Multi-Language Support
- Real-time Processing
- Zero Data Storage
- 99.9% Uptime
- API Rate Limiting Dashboard
- Custom Analysis Presets
- Batch File Processing
- Export to Multiple Formats
- Advanced Plagiarism Detection
- Writing Style Comparison
- Team Collaboration Features
- API for Developers
If you encounter any issues or have questions:
- Check the FAQ section on our website
- Open an issue on GitHub
- Contact us on Discord
- Follow us on Twitter for updates
Made with โค๏ธ by ShinkaiPH2
๐ Live Demo โข ๐ Learn More โข ๐ Try Analysis โข ๐ฌ Discord