Skip to content

Repository files navigation

Sleek AI

Sleek AI Preview

ci License: MIT Last Commit

A full-stack AI chat application featuring real-time messaging, file ingestion, and vector search capabilities. Optimized for speed, reliability, and seamless AI interactions.

Features

  • AI Chat Interface: Interactive chat with AI models.
  • File Ingestion: Upload and process documents (PDF, Docx, TXT) for context-aware responses.
  • Vector Search: Semantic search powered by Pinecone and Google Gemini embeddings.
  • Authentication: Secure user authentication via Clerk.
  • Background Processing: Asynchronous file processing with BullMQ workers.
  • Infrastructure: Containerized development environment with Docker.

Tech Stack

React Tailwind CSS Lucide-React Hono Clerk Prisma PostgreSQL Redis BullMQ Cloudinary LangChain Pinecone Groq Gemini Docker Grafana Prometheus Zod Pino Turborepo pnpm OXC

Architecture

Architecture Diagram

Prerequisites

  • Node.js (v24+)
  • pnpm (v10+)
  • Docker & Docker Compose

Installation & Setup

  1. Clone the Repository

    git clone https://github.com/sunjay-dev/sleek-ai.git
    cd sleek-ai
  2. Install Dependencies

    pnpm install
  3. Environment Configuration

    Copy the .env.example file to .env in the backend directory and fill in your secrets.

    cp apps/backend/.env.example apps/backend/.env
  4. Start Infrastructure (Redis/Postgres)

    docker compose up -d redis
  5. Database Migration

    pnpm --filter @app/db prisma:migrate
  6. Run Development Servers

    pnpm dev

    This will start all services via Turborepo.

Project Structure

This is a Turborepo monorepo containing:

  • apps/frontend/: Vite + React application with Tailwind CSS.
  • apps/backend/: Hono.js API server serving the frontend and handling chat logic, authentication, and job dispatching.
  • apps/worker/: BullMQ-based background worker for processing file metadata and vector embeddings.
  • packages/shared/: Shared TypeScript types, schemas, and utility functions.
  • packages/db/: Prisma schema and database client.
  • packages/typescript-config/: Shared TypeScript configurations.

Scripts

Command Description
pnpm dev Start all services in development mode
pnpm build Build all packages
pnpm lint Lint with oxlint
pnpm format Check formatting with oxfmt
pnpm format:fix Auto-fix formatting

Docker

# Build and run everything
docker compose up --build

# Or run in detached mode
docker compose up -d

Contribution

See CONTRIBUTING.md for guidelines on how to contribute to this project.

About

A full-stack AI chat application featuring real-time messaging, file ingestion, and vector search capabilities. Optimized for speed, reliability, and seamless AI interactions.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages