miurla/morphic
AI SEARCH ENGINE WITH GENERATIVE UI
Morphic is an AI search engine that returns cited answers and renders them as rich UI components. It supports multiple search modes, model and provider selection, chat history, and Docker deployment.
// KEY FEATURES
- Generative UI: answers render as rich components from JSON stream
- Two search modes: Quick and Adaptive with model and provider selection
- Chat history in PostgreSQL, shareable links, file uploads
- Ready Docker stack: PostgreSQL, Redis, SearXNG without extra keys
// DEEP DIVE: HOW IT WORKS
Morphic works as a single Next.js application: React frontend with shadcn/ui and Tailwind, backend on Vercel AI SDK streams responses in a custom JSON format that the client turns into interactive blocks — source grids, attributed images, headings. Search is delegated to pluggable providers (Tavily, SearXNG, Brave, Exa), generation to any compatible LLM (OpenAI, Anthropic, Google, Ollama, Vercel AI Gateway). Auth via Better Auth or Supabase, history in PostgreSQL, cache and queues in Redis.
Differs from Perplexity clones and simple RAG wrappers in that UI is not limited to markdown: the model returns a structured component spec rendered live. Includes SearXNG — a metasearch engine without API keys, enabling a fully autonomous instance. Two modes: Quick for fast answers and Adaptive for iterative deepening. Ollama and OpenAI-compatible endpoints support makes fully local runs possible.
Requires Docker (recommended) or Bun + Node.js for development. Production needs PostgreSQL and Redis (brought up by compose). At least one LLM provider key is mandatory; search API keys optional — SearXNG works without them. File uploads need S3-compatible storage config. Apache 2.0 license.
// USE CASES
Best for: developers and researchers who need a self-contained open-source AI search
- Deploy a private search engine with local models via Ollama without external APIs
- Configure adaptive search with Tavily or Brave for deep research with citations
- Use guest mode for one-off queries without registration or history retention
// QUICK START
docker pull ghcr.io/miurla/morphic:latest
git clone https://github.com/miurla/morphic.git
cd morphic
cp .env.local.example .env.local
docker compose up -dCommands are taken from the repository README — check the current version on GitHub before running.
New repositories every 30 minutes
REDDYX AI scans GitHub 24/7 and ships the best AI/ML/Web3 projects to Telegram.
Join on Telegram