Transform your text into beautiful, illustrated articles with AI-powered image matching.
DocSpice is a Next.js web application that takes plain text content and automatically enhances it with relevant, high-quality images from Unsplash. Using natural language processing and keyword extraction, DocSpice analyzes your content to find the perfect visual elements that complement your story.
- Smart Text Analysis: AI-powered keyword extraction and theme identification
- Beautiful Image Matching: Automatic image selection from Unsplash based on content analysis
- Responsive Design: Stunning, mobile-friendly layouts that work on all devices
- Instant Generation: Transform your content into visual stories in seconds
- No Authentication Required: Simple, friction-free user experience
- SEO Optimized: Clean, semantic HTML structure for better search visibility
- Node.js 18+
- npm, yarn, or pnpm
- Unsplash Developer Account (for images)
-
Clone the repository
git clone https://github.com/your-username/docspice.git cd docspice -
Install dependencies
npm install # or yarn install # or pnpm install
-
Set up environment variables
cp .env.local.example .env.local
Edit
.env.localand add your Unsplash Access Key:NEXT_PUBLIC_UNSPLASH_ACCESS_KEY=your_unsplash_access_key_here
-
Get your Unsplash API key
- Visit Unsplash Developers
- Create a new application
- Copy your Access Key to the
.env.localfile
-
Run the development server
npm run dev # or yarn dev # or pnpm dev
-
Open your browser Navigate to http://localhost:3000 to see DocSpice in action!
- Text Input: Users paste their content into the beautiful input form
- AI Analysis: The app analyzes the text using natural language processing to extract:
- Key themes and topics
- Important keywords
- Named entities
- Content structure
- Image Search: Based on the analysis, DocSpice searches Unsplash for relevant images
- Article Generation: The system creates a beautifully formatted article with strategically placed images
- Visual Enhancement: The final result is a stunning, magazine-quality article with perfect image placement
- Bloggers: Transform plain blog posts into visually engaging articles
- Content Creators: Enhance social media content with professional layouts
- Students: Create visually appealing reports and presentations
- Writers: Turn manuscripts into illustrated stories
- Marketers: Develop compelling visual content from copy
- Educators: Create engaging educational materials
- Frontend: Next.js 15, React 18, TypeScript
- Styling: Tailwind CSS
- Text Processing: Natural.js for NLP
- Images: Unsplash API
- Icons: Lucide React
- Deployment: Vercel-ready
docspice/
├── src/
│ ├── app/
│ │ ├── api/generate/ # API endpoint for article generation
│ │ ├── article/[id]/ # Dynamic article display pages
│ │ ├── globals.css # Global styles
│ │ ├── layout.tsx # Root layout
│ │ └── page.tsx # Home page
│ └── lib/
│ ├── textAnalysis.ts # NLP and keyword extraction
│ └── unsplash.ts # Unsplash API integration
├── public/ # Static assets
├── .env.local.example # Environment variables template
└── README.md
| Variable | Description | Required |
|---|---|---|
NEXT_PUBLIC_UNSPLASH_ACCESS_KEY |
Your Unsplash API Access Key | Yes |
- Themes: Modify theme categories in
src/lib/textAnalysis.ts - Image Selection: Adjust search parameters in
src/lib/unsplash.ts - Layout: Customize article layouts in
src/app/article/[id]/page.tsx - Styling: Update global styles in
src/app/globals.css
- Push your code to GitHub
- Connect your repository to Vercel
- Add environment variables in your Vercel dashboard
- Deploy automatically!
DocSpice can be deployed on any platform that supports Next.js:
- Netlify
- Railway
- AWS Amplify
- DigitalOcean App Platform
- Lighthouse Score: 95+ across all metrics
- Image Optimization: Next.js automatic image optimization
- Caching: Efficient API caching strategies
- SEO: Semantic HTML and meta optimization
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Unsplash for providing beautiful, free images
- Natural.js for NLP capabilities
- Tailwind CSS for utility-first styling
- Next.js for the amazing React framework
- 📧 Email: support@docspice.com
- 🐛 Issues: GitHub Issues
- 💬 Discussions: GitHub Discussions
Made with ❤️ by the DocSpice team