Knotty AI Generator is a React-based web application designed to generate images using prompts. It provides a user-friendly interface for creating, saving, and managing prompts, as well as generating images with customizable settings.
- User Authentication: Register, login, and manage user sessions.
- Prompt Management: Create, save, and load prompts for image generation.
- Image Generation: Generate images using positive and negative prompts with customizable settings like samplers, schedulers, and CFG scale.
- Image History: View and download previously generated images.
- Token Management: Track and update token counts in real-time.
- Responsive Design: Fully responsive layout for desktop and mobile devices.
- Dark Mode: Modern dark-themed UI for better user experience.
- Frontend: React, TypeScript, TailwindCSS
- Build Tool: Vite
- State Management: React Context API
- API Integration: Fetch API and Axios
- Icons: Lucide React
- Utilities: clsx for conditional class management
-
Clone the repository:
git clone https://github.com/clean128/knotty-ai.git cd knotty-ai -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open the application in your browser at
http://localhost:5173.
npm run dev: Start the development server.npm run build: Build the application for production.npm run preview: Preview the production build.npm run lint: Run ESLint to check for code quality issues.
knotty-ai/
├── src/
│ ├── components/ # Reusable UI components
│ ├── contexts/ # Context API for state management
│ ├── pages/ # Application pages
│ ├── services/ # API service logic
│ ├── types/ # TypeScript type definitions
│ ├── App.tsx # Main application component
│ ├── main.tsx # Application entry point
│ └── index.css # Global styles
├── public/ # Static assets
├── vite.config.ts # Vite configuration
├── tailwind.config.js # TailwindCSS configuration
├── tsconfig.json # TypeScript configuration
├── package.json # Project metadata and dependencies
└── README.md # Project documentation
Create a .env file in the root directory and add the following variables:
VITE_API_BASE_URL=https://your-api-url.comTailwindCSS is configured in tailwind.config.js and postcss.config.js. You can customize the theme and plugins as needed.
-
Build the application:
npm run build
-
Serve the
distfolder using a static file server or deploy it to a hosting platform like Vercel, Netlify, or AWS S3.
Contributions are welcome! Please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Commit your changes and push the branch.
- Open a pull request.
This project is licensed under the MIT License.
For questions or support, please contact the project maintainers:
- Telegram: @clean1280
- Website: Beast Generator