Transform imagination into stunning AI-generated artwork with a modern, high-performance image generation platform.
Lumina Studio is a full-stack AI-powered image generation application built with React, TypeScript, Vite, and Node.js. It provides an elegant and responsive interface where users can generate high-quality AI images from text prompts, explore different artistic styles, manage their generation history, and download generated images with a single click.
Designed with both developers and beginners in mind, this project demonstrates how a modern AI application can be built using a React frontend connected to a Node.js backend that communicates with an AI image generation model.
assets/
βββ home-page.png
βββ generation-page.png
βββ gallery.png
βββ pricing.png
Generate beautiful AI-generated artwork simply by describing your imagination in natural language.
Example Prompt
"A futuristic cyberpunk city during sunset with flying cars."
Built with React + Vite, providing
- Instant page loading
- Fast Hot Module Reload (HMR)
- Smooth animations
- Optimized performance
Generate images in different dimensions depending on your needs.
Supported ratios:
- 1:1 (Square)
- 16:9 (Landscape)
- 9:16 (Portrait)
- 4:3
- 3:4
Choose different visual styles before generating.
Current styles include:
- Default
- Neon Dystopia
- Cosmic Impasto
- Prismatic Void
- Anime / Digital Art
- Watercolor
- Photorealistic
Every generated image is automatically stored inside your browser's Local Storage.
History includes:
- Prompt
- Original Prompt
- Style
- Aspect Ratio
- Resolution
- Generation Time
No database is required.
Download generated images directly to your local computer.
Supports
- PNG
- High Resolution
- One Click Export
The application works beautifully on
- Desktop
- Laptop
- Tablet
- Mobile Devices
Lumina Studio features
- Glassmorphism
- Gradient UI
- Animated Components
- Blur Effects
- Modern Typography
- Dark Theme
- Interactive Hover Effects
- React
- TypeScript
- Vite
- CSS3
- HTML5
- Lucide React
- Node.js
- Express.js
- TypeScript
- Local AI Translation Node
- Image Generation API
- Prompt Processing Engine
- Browser Local Storage
- VS Code
- npm
- Git
- GitHub
lumina-ai/
β
βββ assets/ # Static assets
β
βββ src/
β βββ App.tsx # Main application
β βββ main.tsx # React Entry
β βββ index.css # Global styling
β βββ responsive.css # Responsive layouts
β
βββ .env # Environment variables
βββ .env.example # Example environment file
βββ .gitignore
βββ index.html
βββ metadata.json
βββ package.json
βββ package-lock.json
βββ README.md
βββ requirements.txt
βββ server.ts # Backend Server
βββ tsconfig.json
βββ vite.config.ts
Before running the project, make sure the following software is installed.
Download
Recommended Version
Node.js 18+
Verify Installation
node -vExample
v22.17.0
Verify npm
npm -vExample
10.9.2
Install Git
Download
Verify
git --versionClone the repository
git clone https://github.com/YOUR_USERNAME/lumina-ai.gitMove inside the project
cd lumina-aiInstall dependencies
npm installWait until npm finishes downloading all packages.
Create your environment file
Copy
.env.example
Rename it to
.env
Example
API_KEY=YOUR_API_KEY
PORT=3000Replace
YOUR_API_KEY
with your own AI provider API key.
Start the backend server
npm run serveror
npx tsx server.tsThe terminal should display something similar to
Server Running
http://localhost:3000
Leave this terminal running.
Open another terminal.
Run the frontend.
npm run devYou should now see
Local:
http://localhost:5173
Open your browser.
Visit
http://localhost:5173
The application is now ready.
- Enter a prompt.
Example
A white wolf standing in snowy mountains.
-
Select an aspect ratio.
-
Select a style.
-
Click
Generate
-
Wait a few seconds.
-
Your AI-generated image will appear.
-
Click Download to save it.
Simply click
Download
The generated image will automatically be downloaded to your computer.
Every image is automatically saved locally.
The history stores
- Image
- Prompt
- Style
- Aspect Ratio
- Time
- Resolution
You can revisit previous generations anytime during the same browser session (or until Local Storage is cleared).
Install dependencies
npm installRun frontend
npm run devBuild project
npm run buildPreview production build
npm run previewRun backend
npm run serverExample
API_KEY=YOUR_API_KEY
PORT=3000Never commit your real .env file to GitHub.
Delete
node_modules
package-lock.json
Then run
npm installCheck
- Node.js is installed
.envexists- API key is valid
- Port 3000 is not already in use
Make sure the backend server is running first.
Expected backend URL
http://localhost:3000
Check
- Internet connection
- AI API key
- Backend logs for errors
- User Authentication
- Cloud Storage
- Image Upscaling
- AI Image Editing
- Favorites Collection
- Public Gallery
- Dark/Light Theme Toggle
- Multiple AI Providers
- Batch Image Generation
- Prompt Templates
- Image Sharing
- Prompt History Search
Contributions are always welcome.
-
Fork the repository.
-
Create a new branch.
git checkout -b feature-name- Commit your changes.
git commit -m "Added new feature"- Push your branch.
git push origin feature-name- Open a Pull Request.
This project is licensed under the MIT License.
You are free to use, modify, and distribute this project.
Muhammad Zaeem Ahmad
Full Stack MERN Developer
GitHub
https://github.com/chzaeem47
https://linkedin.com/in/muhammad-zaeem-ahmad-06a5a0363
If you found this project useful,
β Star the repository
π΄ Fork the repository
π’ Share it with others
Your support helps improve the project and motivates future development.
