explaingit

miurla/morphic

8,830TypeScriptAudience · developerComplexity · 4/5LicenseSetup · moderate

TLDR

An open-source AI search tool that connects language models to the web and displays answers in a generative interface instead of a plain list of links, supporting OpenAI, Anthropic, Google, and local models via Ollama.

Mindmap

mindmap
  root((Morphic))
    What it does
      AI web search
      Generative answers
      Shareable results
    AI providers
      OpenAI Anthropic
      Google Ollama local
    Search backends
      Tavily Brave Exa
      SearXNG self-hosted
    Tech stack
      Next.js React
      PostgreSQL Redis
    Deploy options
      Docker Compose local
      Vercel one-click
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Self-host a Perplexity-style AI search engine that answers questions with real-time web results.

USE CASE 2

Build a private AI assistant for a team that searches the web without sending queries to external services.

USE CASE 3

Deploy an AI search interface using local models via Ollama and self-hosted SearXNG for fully private operation.

Tech stack

TypeScriptNext.jsReactPostgreSQLRedisDockerSupabaseBun

Getting it running

Difficulty · moderate Time to first run · 30min

Requires API keys for at least one AI provider and one search provider, Docker Compose bundles the database, Redis, and SearXNG together for local setup.

Use freely in open or closed projects, you must keep the license and copyright notices and cannot hold contributors liable.

In plain English

Morphic is an open-source search tool that connects AI language models to the web and returns answers in a generative interface. Instead of showing a plain list of links, it constructs a response on the page using the results it finds. You can switch between a Quick mode (faster, simpler) and an Adaptive mode depending on how much depth you want. The project supports several AI providers, including OpenAI, Anthropic, Google, and Ollama (for running models locally). On the search side, it works with Tavily, SearXNG, Brave, and Exa. You pick which combination you want through a model selector in the interface. SearXNG, a self-hosted search engine, is bundled in the Docker setup so you can run the whole thing without signing up for a separate search API. Chat history is stored in a PostgreSQL database, and you can share search results with others using unique URLs. It supports file uploads and has optional user authentication through Supabase. If you do not want to create an account, a guest mode lets you use it anonymously. The recommended way to run it locally is with Docker Compose, which starts the database, a Redis instance, SearXNG, and the application itself together. For local development, it uses Bun as the package manager and runtime. There is also a one-click deploy option for Vercel if you want to host it in the cloud. The code is written in TypeScript on top of Next.js and React. It is licensed under the Apache License 2.0.

Copy-paste prompts

Prompt 1
Walk me through deploying Morphic locally with Docker Compose using Ollama for local models and SearXNG for search.
Prompt 2
How do I configure Morphic to use Anthropic as the AI provider and Brave Search as the search backend?
Prompt 3
Set up Morphic with Supabase authentication so users must log in with an account before running searches.
Prompt 4
How do I deploy Morphic to Vercel and connect it to a Supabase PostgreSQL database for storing chat history?
Open on GitHub → Explain another repo

← miurla on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.