Home
Softono
conar

conar

Open source TypeScript
1.4K
Stars
107
Forks
45
Issues
8
Watchers
2 weeks
Last Commit

About conar

AI-powered tool for working with Postgres, MySQL, MSSQL and Clickhouse. (beta)

Platforms

Web Self-hosted

Languages

TypeScript

Conar Logo Conar.app

image

Conar is an AI-powered open-source project that simplifies database interactions. Built for PostgreSQL, MySQL, MSSQL, Clickhouse with support for other databases coming in the near future. Store your connections securely in our cloud and ask AI to help you write and optimize SQL queries.

Features

  • ๐Ÿ” Secure & Open

    • Open-source codebase
    • Encrypted connection strings
    • Password protection
  • ๐Ÿ’พ Multi-Database Support

    • PostgreSQL
    • MySQL
    • MSSQL
    • Clickhouse
    • Sqlite (coming soon)
    • MongoDB (coming soon)
  • ๐Ÿค– AI-Powered Features

    • Intelligent SQL assistance
    • Ability to change AI model
    • More coming soon..

Stack

  • React with TypeScript
  • Electron
  • TailwindCSS and shadcn/ui
  • Vite
  • TanStack Start/Router/Query/Form/Virtual
  • Arktype
  • Bun
  • Hono
  • oRPC
  • Drizzle ORM
  • Better Auth
  • AI SDK with Anthropic, OpenAI, Gemini and XAI
  • Railway
  • PostHog
  • Resend
  • ToDesktop
  • Stripe

Development Setup

  • ๐Ÿ“ฆ Package Installation

    pnpm install
  • ๐Ÿณ Start Database with Docker Compose

    This will start the PostgreSQL database & Redis in the background.

    pnpm run docker:start
  • ๐Ÿ—„๏ธ Prepare Database

    This will run database migrations to set up the required tables and schema.

    pnpm run drizzle:migrate
  • ๐Ÿš€ Run the Project

    This starts all development servers through portless (HTTPS on .local.conar.app domains):

    Service URL
    API https://api.local.conar.app
    App https://app.local.conar.app
    Main https://main.local.conar.app
    Proxy https://proxy.local.conar.app
    pnpm run dev

    To run a single app without Turbo, cd into its directory (e.g. apps/api) and run pnpm run dev.

Testing

  • Unit Tests
    pnpm run test

Before running E2E tests, make sure to start the test server: pnpm run test:start and db postgresql://postgres:postgres@localhost:5432/conar

  • E2E Tests
    pnpm run test:e2e
Built with โค๏ธ