Sign inSign up

liwei2633/typix

By liwei2633

•Updated 8 months ago

One-stop AI image creation tool

Image
Machine learning & AI
0

10K+

liwei2633/typix repository overview

⁠Typix - Type To Pixels

Version Docker License

Typix is a modern, open-source, user-friendly, and privacy-secure AI tool focused on media content generation, providing creators with a one-stop generation experience.

ā šŸŽÆ Quick Start

No registration required, instantly experience premium AI image generation services, including cutting-edge models like Flux and SDXL (daily free quota limited, first come first served).

⁠✨ Core Features

Focus on AI image generation, turning creativity into visual art instantly

  • šŸ“± Local First - Prioritize local storage and offline functionality
  • šŸ  Self-hosted - Full control over your data and privacy
  • šŸŽ Free Generation - Free image generation with Cloudflare Workers AI
  • ā˜ļø One-click Deploy - Quick deployment with Docker and Cloudflare Workers
  • šŸ¤– Multi-model Support - Support multiple AI models and service providers
  • šŸ”„ Cloud Sync - Seamlessly sync your content across all devices

ā šŸ”’ Data Security

Typix puts your data security and privacy protection first:

  • šŸ›”ļø Browser Local Storage - Based on WASM SQLite technology, all data is completely stored in your browser
  • šŸ” Zero Data Upload - Your creative content, settings and other sensitive data never leave your device
  • 🚫 No Server Dependencies - Client mode requires no external server dependencies, ensuring data sovereignty
  • šŸ”„ Optional Cloud Sync - Support for optional cloud sync functionality

We protect both your creativity and privacy.

⁠⚔ Powered by Leading AI Models

Integrated with cutting-edge AI models and services to provide the best image generation experience:

  • Google - Advanced AI models with cutting-edge image generation capabilities
  • OpenAI - Industry-leading AI technology
  • Flux - High-quality image generation models
  • Fal - Fast AI inference service
  • Cloudflare - Free AI model support

More service providers and models are being integrated continuously.

ā šŸš€ Quick Deployment

Deploy to Cloudflare

Cloudflare Workers deployment provides free access to Cloudflare AI image generation services.

After successful deployment, you'll get a typix.xxx.workers.dev domain to start using!

⁠Docker Deployment
docker run --name typix -d -p 9999:9999 liwei2633/typix
⁠Node.js Deployment
⁠Prerequisites
  • Node.js 20+
  • pnpm or npm
⁠Deployment Steps
  1. Clone and install
git clone https://github.com/monkeyWie/typix.git
cd typix
pnpm install
  1. Configure environment variables
cp .env.node.example .env
# Edit .env file to configure necessary parameters
  1. Database initialization
pnpm db:generate
pnpm db:migrate
  1. Build project
pnpm build:node
  1. Start service
node .bin/node.js

ā šŸ› ļø Development Documentation

⁠Tech Stack

Frontend:

  • React 18 - Modern UI framework
  • TypeScript - Type-safe JavaScript
  • Tailwind CSS - Atomic CSS framework
  • shadcn/ui - High-quality UI component library
  • Tanstack Router - Type-safe routing management
  • Zustand - Lightweight state management
  • BetterAuth - Modern authentication solution

Backend:

  • Hono.js - Lightweight web framework
  • SQLite - Embedded database
  • Drizzle ORM - Type-safe ORM

Development Tools:

  • Vite - Fast build tool
  • Biome - Code formatting and linting
  • pnpm - Package manager
⁠Local Development Guide
⁠Environment Setup
  1. Install Node.js 20+
  2. Install pnpm
npm install -g pnpm
⁠Development Workflow
  1. Clone project
git clone https://github.com/monkeyWie/typix.git
cd typix
  1. Install dependencies
pnpm install
  1. Database initialization
# Generate database migration files
pnpm db:generate

# Execute migration
pnpm db:migrate
  1. Start development server
# Start frontend development server
pnpm dev
⁠Project Structure
src/
ā”œā”€ā”€ app/                    # Frontend application
│   ā”œā”€ā”€ components/         # React components
│   ā”œā”€ā”€ hooks/             # Custom Hooks
│   ā”œā”€ā”€ routes/            # Route pages
│   ā”œā”€ā”€ stores/            # State management
│   └── lib/               # Utility libraries
ā”œā”€ā”€ server/                # Backend service
│   ā”œā”€ā”€ api/               # API routes
│   ā”œā”€ā”€ ai/                # AI provider integration
│   ā”œā”€ā”€ db/                # Database schemas
│   └── service/           # Business logic

ā šŸ“„ License

This project is licensed under the Apache License 2.0⁠.

You are free to:

  • āœ… Commercial use
  • āœ… Modify code
  • āœ… Distribute project
  • āœ… Private use

But you must:

  • šŸ“ Include copyright notice
  • šŸ“ Include license file
  • šŸ“ State significant changes

If this project helps you, please consider giving us a ⭐ Star!

Tag summary

Content type

Image

Digest

sha256:d42a925fb…

Size

651.7 MB

Last updated

8 months ago

docker pull liwei2633/typix