Skip to content

LucidEdit/x-image

Repository files navigation

X-Image

A web application for converting HTML content to beautiful images, perfect for social media sharing and visual content creation.

Developed by Lucid. Try it out at getlucid.app/text-to-image.

Tech Stack

  • Frontend: Next.js, React, Tailwind CSS
  • UI Components: Shadcn UI
  • Backend: Postgres, Supabase, Drizzle ORM, Server Actions
  • Deployment: Vercel

Getting Started

Prerequisites

  • Node.js (v18 or newer)
  • pnpm (npm install -g pnpm)
  • Supabase CLI

Installation

  1. Clone the repository:
git clone [repository-url]
cd x-image
  1. Install dependencies:
pnpm install
  1. Set up Supabase:

Follow the Supabase Local Development Guide to set up your local Supabase instance.

# Start Supabase (this will automatically create the x-images storage bucket and apply RLS policies)
npx supabase start

The local setup automatically configures:

  • x-images storage bucket for community image uploads
  • Row Level Security (RLS) policies for public access
  • Database schema and seed data
  1. Set up environment variables:

Copy the .env.example file to .env.local and update the variables as needed:

cp .env.example .env.local
  1. Run database migrations:
pnpm db:migrate
  1. Run the development server:
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Features

  • HTML to Image Conversion: Transform HTML content into beautiful PNG images
  • Multiple Themes: Choose from various built-in themes for different styles
  • Community Feed: Browse and share images created by the community
  • Public Storage: Images are automatically stored and made publicly accessible
  • Modern UI: Clean, responsive design with intuitive user experience

Available Themes

The application includes three built-in themes:

  • book-excerpt - Clean book-style layout with serif fonts
  • dark-mono-poster - Dark theme with monospace fonts
  • manifesto - Modern manifesto-style layout with mixed typography

Learn More

To learn more about the technologies used:

Deployment

The app is configured for deployment on Vercel.

License

MIT

About

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •