Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aliciusschroeder/localgen-ui

A DALLE-3 web UI that can be exported to a single HTML-file. Useful for accessing features not available via ChatGPT (vivid vs natural style, explicit aspect ratio and more precise prompting) or after hitting usage limits.
https://github.com/aliciusschroeder/localgen-ui

dall-e-3 dall-e-api preact shadcn-ui tailwindcss typescript web-ui

Last synced: about 2 months ago
JSON representation

A DALLE-3 web UI that can be exported to a single HTML-file. Useful for accessing features not available via ChatGPT (vivid vs natural style, explicit aspect ratio and more precise prompting) or after hitting usage limits.

Awesome Lists containing this project

README

        

# LocalGen-UI

![Build Status](https://img.shields.io/github/actions/workflow/status/aliciusschroeder/localgen-ui/vite-build.yml?style=plastic)
![License](https://img.shields.io/github/license/aliciusschroeder/localgen-ui?style=plastic)

A user-friendly, browser-based interface for generating images using OpenAI's DALLยทE API โ€” no server setup required! Everyting is build into one single html file. Perfect for both developers and creatives, it offers an intuitive way to bring your ideas to life.

## ๐Ÿ“‹ Table of Contents

- [Features](#-features)
- [Demo](#-demo)
- [Quick Start](#-quick-start)
- [Installation](#-installation)
- [Usage](#-usage)
- [Security](#-security)
- [Roadmap](#-roadmap)
- [Contributing](#-contributing)
- [License](#-license)
- [Acknowledgments](#-acknowledgments)

## โœจ Features

- ๐Ÿ–ผ๏ธ Generate images using DALL-E AI directly in your browser
- ๐Ÿš€ Standalone application - runs entirely in your browser, no server needed
- ๐Ÿ’พ Local storage of generated images using IndexedDB for offline access
- ๐Ÿ”’ Secure handling of API keys - stored locally, never sent to any server except OpenAI
- ๐Ÿ› ๏ธ Debug mode for testing without consuming API credits
- ๐Ÿ“ฅ Easy download option for your favorite creations
- ๐ŸŽจ Intuitive user interface adapting to your screen size

## ๐Ÿ“ท Demo

Check out the live demo hosted on Cloudflare Pages: [๐Ÿ‘‰ Live Demo](https://localgen-ui.pages.dev/)

![LocalGen-UI Screenshot](https://raw.githubusercontent.com/aliciusschroeder/localgen-ui/main/doc/screenshot_986x621.jpg)

## ๐Ÿš€ Quick Start

1. Visit the [Cloudflare Page](https://localgen-ui.pages.dev/) to use LocalGen-UI immediately.
2. Or download the `index.html` file from the latest [build action](https://github.com/aliciusschroeder/localgen-ui/actions/workflows/vite-build.yml) and open it in your browser.

## ๐Ÿ› ๏ธ Installation

If you want to build the project locally:

```bash
git clone https://github.com/aliciusschroeder/localgen-ui.git
cd localgen-ui
npm install
npm run build
```

After building, you'll find a single HTML file in the `dist` directory.

## ๐Ÿณ Using Docker

You can also run LocalGen-UI using Docker, which allows for easy deployment and eliminates the need for local installations. Follow these steps:

1. Ensure you have Docker and Docker Compose installed on your machine.

2. Clone the repository and navigate into the project directory:

```bash
git clone https://github.com/aliciusschroeder/localgen-ui.git
cd localgen-ui
```

3. Build and start the services using Docker Compose:

```bash
docker compose up --build
```

If you want to run it in detached mode (background), use:

```bash
docker compose up --build -d
```

4. Access LocalGen-UI in your browser at `http://localhost:8080`.

To stop the services, simply run:

```bash
docker compose down
```

## ๐ŸŽฎ Usage

1. Open LocalGen-UI in your browser.
2. Enter your OpenAI API key in the settings.
3. Choose your image generation options.
4. Click "Generate" and watch your ideas come to life!

๐Ÿ’ก Tip: Use the API key "sk-debug" for testing without making actual API calls.

## ๐Ÿ” Security

Your API key is stored locally in your browser and is only sent to OpenAI's servers for image generation requests. Users are responsible for the safe handling of their keys. For maximum security, you may want to review the [source code](https://github.com/aliciusschroeder/localgen-ui/tree/main/src) and build the project yourself.

## ๐Ÿ—บ๏ธ Roadmap

I already have some ideas in mind (i.e. Internationalization support) but I'm not set on a fixed plan yet and instead improve the project based on actual real-world feedback.

So your input shapes the future of LocalGen-UI. Share your ideas in the [Issues](https://github.com/aliciusschroeder/localgen-ui/issues) section!

## ๐Ÿ’ฌ Contributing

I'd love your input! Check out the [Contributing Guide](https://github.com/aliciusschroeder/localgen-ui/blob/main/CONTRIBUTING.md) for ways to get started. Please adhere to the [Code of Conduct](https://github.com/aliciusschroeder/localgen-ui/blob/main/CODE_OF_CONDUCT.md).

## ๐Ÿ“ License

This project is licensed under the MIT License. See the [LICENSE](https://github.com/aliciusschroeder/localgen-ui/blob/main/LICENSE) file for details.

## ๐Ÿ™ Acknowledgments

- Inspired by [Powerdalle](https://github.com/JPhilipp/powerdalle/)
- Built with โค๏ธ using:
- [Preact](https://preactjs.com/)
- [Vite](https://vitejs.dev/)
- [TypeScript](https://www.typescriptlang.org/)
- [Tailwind CSS](https://tailwindcss.com/)

---

Feel free to โญ๏ธ this repository if you find it useful!

![LocalGen-UI Logo](https://raw.githubusercontent.com/aliciusschroeder/localgen-ui/main/doc/logo_darkmode_1500x1200.png)