TypeGraph
Type-safe graphs on Postgres/SQLite (no graph DB required)
Last verified:
What is TypeGraph?
TypeGraph is a TypeScript-first knowledge graph platform that lets you define your ontology once with Zod, query it with a fluent builder, and evolve it at runtime when your application or agents need new structure. It presents the idea that your schema becomes your database, your types become your queries, and the system handles database orchestration, API validation, and TypeScript types together.
It is designed around graph-native modeling: nodes, edges, traversals, smart relationships, and typed query composition. The website emphasizes features like full type safety, multi-hop graph queries, runtime schema evolution, hybrid retrieval that combines vector similarity with BM25 full-text search, and support for semantic fields directly in the schema.
TypeGraph also targets AI-native and agentic workflows. The site highlights use cases where LLMs need structured context, where agents can propose new kinds and edges, and where reviewed schema extensions can be committed as durable schema versions without code generation or redeployment.
It is aimed at developers building knowledge graphs, RAG systems, identity and access systems, recommendation engines, or other applications where relationships matter. The site also positions it as approachable for prototyping with in-memory or SQLite storage, while allowing a move to PostgreSQL without changing application logic.
The website does not present a conventional SaaS-style pricing table, paid tiers, or free plan details. Based on the site content, TypeGraph appears to be an open-source/developer platform with documentation and product pages rather than a hosted subscription product with published pricing.
TypeGraph pricing
Pricing model: Freemium
The website does not show a pricing table, free tier, or paid plans. The homepage instead focuses on product capabilities, examples, and developer documentation, including support for in-memory, SQLite, and PostgreSQL adapters. No included quotas, seat counts, or billing terms are listed on the site content available here.
TypeGraph pros
- Define the data model once with Zod
- Unifies database, validation, and types
- Type-safe query builder
- Fluent graph traversal API
- Supports multi-hop relationship queries
- Runtime schema evolution
- Agents can propose new kinds and edges
- Reviewed schema changes can be committed atomically
- No codegen required for schema evolution
- No redeploy needed for new schema versions
- Hybrid retrieval combines vector and full-text search
- Semantic fields can be declared in the schema
- Built for RAG and agentic systems
- Supports smart relationship rules like inverse and transitive logic
- Zero-infrastructure start with in-memory or SQLite
- Can swap to PostgreSQL without changing app logic
- Good fit for knowledge graphs
- Useful for fine-grained authorization modeling
- Helpful for recommendation-style relationship discovery
TypeGraph cons
- No published pricing page on the website
- No free tier details shown
- No paid plan details shown
- Open-source-style docs may leave deployment burden on users
- Runtime evolution still requires operator review
- Hybrid search depends on external embedding generation
- Some advanced features are showcased more than exhaustively documented on the homepage
- Scaling from SQLite to PostgreSQL still requires infrastructure setup
- The site focuses on graph use cases, so it may be overkill for simple CRUD apps
- The homepage does not list managed hosting or support SLAs
Frequently asked questions about TypeGraph
What is TypeGraph?
TypeGraph is a TypeScript-first knowledge graph platform for defining an ontology once with Zod, querying it with a fluent builder, and evolving the schema at runtime. It is presented as a system where the schema, database behavior, API validation, and TypeScript types are orchestrated together.
How do you define data in TypeGraph?
You define nodes and edges as part of a graph ontology, and the homepage shows examples built from Zod schemas. The idea is to declare structure once and then reuse that structure for typed querying, validation, and graph operations.
What kind of querying does TypeGraph support?
TypeGraph supports a fluent, type-safe query builder for graph traversals. The site shows chained queries with .from(), .whereNode(), .traverse(), .to(), and .select(), which are meant for multi-hop relationship queries and structured filtering.
Does TypeGraph support runtime schema changes?
Yes. The website highlights runtime schema evolution through defineGraphExtension() and store.evolve(), where agents can propose new kinds and edges, an operator can review them, and the system can commit the changes as a new durable schema version without code generation or redeployment.
What search features are included?
TypeGraph highlights hybrid retrieval that combines BM25 full-text search with vector similarity in a single query. The site also shows searchable semantic fields and the ability to compose full-text conditions inside normal graph traversals.
What is TypeGraph good for?
The website emphasizes knowledge graphs for RAG, complex identity and access control, and recommendation engines. These are all cases where relationship-aware querying and structured domain modeling are more useful than plain tables alone.
Can TypeGraph start small and scale later?
Yes. The site says you can start with an in-memory or SQLite graph for prototyping and later switch to PostgreSQL without changing application logic. That positioning suggests it is meant to be flexible across development and production stages.
Does TypeGraph require code generation?
The homepage explicitly says runtime schema evolution happens with no codegen. The workflow shown is to propose schema extensions, approve them, and commit them directly as new schema versions.
What database or storage options does TypeGraph support?
The website mentions in-memory, SQLite, and PostgreSQL adapters. It presents these as a zero-infrastructure start for prototyping and a path to scale without rewriting application logic.
Is TypeGraph a hosted service with pricing plans?
Not on the website content provided here. The site does not list a hosted subscription product, free tier, or paid plans, and instead reads like a developer platform and documentation site focused on the TypeGraph framework itself.