LiminalAI
The AI platform that turns hand-drawn sketches into production-ready code
Install / Use
/learn @Liminal-A-I/LiminalAIREADME
Liminal AI - The AI platform that turns hand-drawn sketches into production-ready code
LiminalAI is a powerful tool that transforms your sketches and ideas into fully functional user interfaces using AI.
🔗 Links
🚀 Features
- AI-Powered Design Generation: Convert sketches to functional UI designs
- Real-time Preview: See your designs come to life instantly
- Export Options: Export to multiple formats (HTML, React, PNG, SVG)
- Collaboration Tools: Work together in real-time
- Version Control: Track and manage design iterations
- Accessibility Focus: AI-powered accessibility suggestions
- Cloud Storage: Secure design storage and sharing
🛠️ Tech Stack
- Frontend: Next.js, React, TailwindCSS
- Backend: Node.js, TypeScript
- AI/ML: Claude 3.5 Sonnet
- Storage: Cloudflare R2
- Database: PostgreSQL
- Caching: Redis
- Monitoring: Prometheus, Grafana
📋 Prerequisites
- Node.js (v18 or higher)
- npm or yarn
- PostgreSQL (optional)
- Redis (optional)
🔧 Installation
-
Clone the repository:
git clone https://github.com/yourusername/LiminalAI.git cd LiminalAI -
Install dependencies:
npm install # or yarn install -
Set up environment variables:
cp .env.example .envEdit
.envwith your configuration (see Environment Configuration section below) -
Run database migrations (if using PostgreSQL):
npm run migrate # or yarn migrate -
Start the development server:
npm run dev # or yarn dev
🔐 Environment Configuration
The application uses environment variables for configuration. Copy .env.example to .env and configure the following:
Required Variables
OPENAI_API_KEY: Your OpenAI API keyCLOUDFLARE_ACCOUNT_ID: Cloudflare account IDCLOUDFLARE_ACCESS_KEY: Cloudflare access keyCLOUDFLARE_SECRET_KEY: Cloudflare secret keyJWT_SECRET: Secret key for JWT tokens
Optional Variables
NODE_ENV: Environment type (development/production/test)PORT: Server port (default: 3000)DATABASE_URL: PostgreSQL connection stringREDIS_URL: Redis connection stringENABLE_METRICS: Enable/disable metrics collectionLOG_LEVEL: Logging level (debug/info/warn/error)
See .env.example for a complete list of available configuration options.
🏗️ Project Structure
LiminalAI/
├── app/ # Next.js app directory
│ ├── api/ # API routes
│ ├── components/ # React components
│ └── pages/ # Page components
├── lib/ # Utility functions
├── services/ # External service integrations
├── src/
│ ├── config/ # Configuration
│ ├── core/ # Core business logic
│ └── types/ # TypeScript types
├── public/ # Static assets
└── tests/ # Test files
🧪 Testing
Run the test suite:
npm test
# or
yarn test
Run tests with coverage:
npm run test:coverage
# or
yarn test:coverage
📈 Monitoring
The application includes built-in monitoring:
- Metrics: Available at
/metrics(when enabled) - Health Check: Available at
/api/health - Status: Available at
/api/status
🔒 Security
- All API endpoints are rate-limited
- JWT-based authentication
- Input validation using Zod
- CORS protection
- Security headers using Helmet
- SQL injection protection
- XSS protection
🚀 Deployment
-
Build the application:
npm run build # or yarn build -
Start the production server:
npm start # or yarn start
Docker Deployment
docker build -t LiminalAI .
docker run -p 3000:3000 LiminalAI
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🤝 Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📞 Support
- Issues: GitHub Issues
✨ Acknowledgments
- TLDraw team for the amazing canvas library
- All our contributors and supporters
Related Skills
node-connect
354.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
112.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
354.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
354.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
