DEV.co
AI Frameworks · miurla

morphic

Morphic is an open-source AI-powered search engine that combines traditional web search with generative AI to produce cited, streaming answers with rich UI components. It supports multiple AI providers (OpenAI, Anthropic, Google, Ollama) and search backends (Tavily, SearXNG, Brave, Exa), with optional chat history, authentication, and file upload capabilities.

Source: GitHub — github.com/miurla/morphic
9k
GitHub stars
2.3k
Forks
TypeScript
Primary language
Apache-2.0
License (OSI-approved)

Key facts

Objective fields from the source. Values we can't verify are shown as “Unknown” rather than guessed.

FieldValue
Repositorymiurla/morphic
Ownermiurla
Primary languageTypeScript
LicenseApache-2.0 — OSI-approved
Stars9k
Forks2.3k
Open issues52
Latest releasev1.5.0 (2026-06-10)
Last updated2026-07-01
Sourcehttps://github.com/miurla/morphic

What morphic is

Built on TypeScript/Next.js with React and shadcn-ui, Morphic streams structured JSON to render generative UI components in real-time. It integrates with Vercel AI SDK, supports pluggable LLM providers and search APIs, stores conversation history in PostgreSQL, uses Upstash for caching, and includes Docker Compose deployment with built-in SearXNG and Redis.

Quickstart

Get the morphic source

Clone the repository and explore it locally.

terminalbash
git clone https://github.com/miurla/morphic.gitcd morphic# follow the project's README for install & configuration

Need it deployed, integrated, or customized instead? DEV.co ships production installs.

Best use cases

Self-hosted enterprise search with cited AI summaries

Organizations needing private, on-premises AI search without external API dependencies can deploy Morphic locally with Ollama and SearXNG, ensuring sensitive queries remain internal while generating grounded, source-credited answers.

Rapid prototyping of generative UI search applications

Teams building next-generation search experiences can fork Morphic as a reference implementation or starter template, leveraging its streaming JSON architecture, multi-provider LLM support, and component library to accelerate time-to-market.

Multi-model search interface with provider flexibility

Projects requiring dynamic LLM provider selection (OpenAI today, Anthropic tomorrow, custom endpoints) benefit from Morphic's model selector and Vercel AI SDK abstraction, enabling experimentation without architectural redesign.

Implementation considerations

  • Requires at least one LLM API key (OpenAI, Anthropic, Google, Ollama, or OpenAI-compatible endpoint) and optionally a search API key (Tavily, Brave, Exa) or bundled SearXNG.
  • PostgreSQL and Redis must be provisioned or deployed via Docker Compose for chat history, caching, and multi-instance support; local SQLite is not suitable for production.
  • Generative UI relies on streaming JSON parsing in the browser—ensure client-side JavaScript is not blocked and streaming responses are not proxied through incompatible middleware.
  • Authentication via Supabase Auth is optional but recommended for production; guest mode is available but lacks user tracking and rate-limiting.
  • File upload support depends on additional configuration (S3-compatible storage or local volume mounting in Docker); verify quota, scanning, and virus-check policies before enabling.

When to avoid it — and what to weigh

  • Turnkey SaaS search product needed immediately — Morphic is a framework/application, not a managed service. Deploying to production requires infrastructure setup, API key management, database provisioning, and ongoing DevOps—not suitable for teams wanting zero operational overhead.
  • Proprietary codebase or strict license compliance required — Apache-2.0 permits commercial use but requires attribution and derivative-work disclosure. Organizations with policies against open-source dependencies or mandatory proprietary code should avoid or conduct legal review.
  • Minimal AI provider choice or vendor lock-in acceptable — If your stack already commits to a single provider (e.g., Azure OpenAI only), Morphic's multi-provider abstraction adds unnecessary complexity. Direct provider SDKs may be simpler.
  • Real-time search with sub-second latency critical — Morphic streams generative UI and search results, introducing inherent latency. Applications demanding immediate response times (sub-500ms) should evaluate traditional vector-search or cached-index architectures.

License & commercial use

Licensed under Apache License 2.0 (OSI-approved, permissive). Permits commercial use, modification, and distribution with attribution and derivative-work disclosure required. No warranty provided.

Commercial use is explicitly permitted under Apache-2.0. However, derivative works must include a copy of the license and notice of changes. If integrating Morphic into a proprietary product, ensure your legal team confirms compliance with attribution and disclosure obligations. No indemnification or commercial support is included in the open-source grant.

DEV.co evaluation signals

Editorial assessment — not user reviews. Directional, with an explicit confidence level.

SignalAssessment
MaintenanceActive
DocumentationAdequate
License clarityClear
Deployment complexityModerate
DEV.co fitStrong
Assessment confidenceHigh
Security considerations

LLM API keys and search API keys are stored in environment variables; ensure .env.local is not committed to version control and is injected securely in production. PostgreSQL and Redis should run on private networks and use strong credentials. Morphic does not appear to include built-in rate-limiting, request signing, or DDoS protection—add these at the proxy/load-balancer layer. File upload feature requires secure storage and virus scanning; no details provided. No security audit or vulnerability disclosure policy is documented; monitor GitHub issues and releases for patches.

Alternatives to consider

Perplexity (SaaS) / Perplexity API

Commercial, closed-source alternative offering AI-powered search as a managed service. Eliminates infrastructure management but locks you into their provider choice and pricing model.

LlamaIndex / LangChain (frameworks)

Open-source Python frameworks for building retrieval-augmented generation (RAG) pipelines. More granular control over ingestion and retrieval, but steeper learning curve and no built-in UI.

You.com / Neeva (commercial search with AI)

Proprietary AI search engines offering API access. Simpler integration than self-hosting Morphic, but less transparency and flexibility on indexing and model choice.

Software development agency

Build on morphic with DEV.co software developers

Morphic is production-ready for teams building generative UI search products or self-hosted enterprise applications. Start with Docker Compose, configure your LLM provider, and iterate. For managed infrastructure, professional support, or custom integrations, consult a DevOps or AI application specialist.

Talk to DEV.co

Related open-source tools

Surfaced by semantic similarity across the DEV.co open-source index.

Related on DEV.co

Explore the category and the services that help you build with it.

morphic FAQ

Can I use Morphic without paying for third-party APIs?
Yes, with limitations. Use Morphic with Ollama (free, runs locally) for the LLM and SearXNG (bundled in Docker Compose) for search. No external API keys required. However, local Ollama models may have lower quality than OpenAI/Anthropic, and SearXNG's search index may lag behind Tavily.
Does Morphic support custom data indexing or RAG?
Not out-of-box. Morphic is designed for web search + generative summarization. To index custom documents, you would need to extend the search backend or integrate a RAG framework separately.
Is there a hosted version of Morphic I can use directly?
Not provided by the project maintainers. You must self-host on your own infrastructure (Docker, Vercel, VMs, etc.). Some third parties may offer hosted instances; verify compatibility and support before relying on them.
What happens if an LLM API goes down or rate-limits my requests?
Morphic will fail to generate summaries and return an error to the user. Built-in failover or retry logic is unknown; check the codebase and consider adding retry middleware or fallback providers in your deployment.

Work with a software development agency

Adopting morphic is usually one piece of a larger software development effort. As a software development agency, DEV.co provides software development services and web development expertise — pairing senior software developers and web developers with your team to design, build, and operate ai frameworks software in production.

Ready to Deploy an AI Search Engine?

Morphic is production-ready for teams building generative UI search products or self-hosted enterprise applications. Start with Docker Compose, configure your LLM provider, and iterate. For managed infrastructure, professional support, or custom integrations, consult a DevOps or AI application specialist.