Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/cuddly-emus-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@codemix/graph": minor
---

Add `TraversalPath.nodes()`, `relationships()`, `length()`, and `sum()` to make path post-processing easier, and support `ORDER BY` expressions that reference projected aliases before `RETURN` and `WITH`.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<p align="center">
<img src="./codemix-logo.png" alt="codemix" width="240" />
<a href="https://codemix.com/">
<img src="./codemix-logo.png" alt="codemix" width="240" />
</a>
</p>

# @codemix/graph

A fully type-safe, TypeScript-first in-memory property graph database with a Cypher query language parser, a **type-safe [TinkerPop](https://tinkerpop.apache.org/) / [Gremlin](https://tinkerpop.apache.org/docs/current/reference/#gremlin)-style traversal API** (`GraphTraversal`), multiple index types, and pluggable storage adapters including a [Yjs](https://yjs.dev/) CRDT-based adapter for collaborative/realtime/offline-first use.
A fully type-safe, TypeScript-first in-memory property graph database with a Cypher-like query language, a **type-safe [TinkerPop](https://tinkerpop.apache.org/) / [Gremlin](https://tinkerpop.apache.org/docs/current/reference/#gremlin)-style traversal API** (`GraphTraversal`), multiple index types, and pluggable storage adapters including a [Yjs](https://yjs.dev/) CRDT-based adapter for collaborative/realtime/offline-first use.

This is the knowledge graph database for the [codemix](https://codemix.com/) product intelligence platform.

Expand Down
4 changes: 3 additions & 1 deletion packages/graph/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# @codemix/graph

A fully type-safe, TypeScript-first in-memory property graph database with a Cypher-compatible query language, a **type-safe [Apache TinkerPop](https://tinkerpop.apache.org/) / [Gremlin](https://tinkerpop.apache.org/docs/current/reference/#gremlin)-style traversal API** (`GraphTraversal`), lazy indexes, and async transport support.
A fully type-safe, TypeScript-first in-memory property graph database with a (mostly) Cypher-compatible query language, a **type-safe [Apache TinkerPop](https://tinkerpop.apache.org/) / [Gremlin](https://tinkerpop.apache.org/docs/current/reference/#gremlin)-style traversal API** (`GraphTraversal`), lazy indexes, and async transport support.

Part of the [codemix product intelligence platform](https://codemix.com/).

## Table of Contents

Expand Down
20 changes: 17 additions & 3 deletions packages/text-search/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Fast, accurate text search with BM25-inspired scoring, English stemming, and phrase-aware ranking. Zero dependencies.

Part of the [codemix product intelligence platform](https://codemix.com/).

## Features

- **BM25-inspired scoring** — term frequency saturation and document length normalization
Expand Down Expand Up @@ -108,8 +110,16 @@ interface Article {
}

const articles: Article[] = [
{ slug: "intro-react", title: "Introduction to React", content: "Learn React basics" },
{ slug: "vue-guide", title: "Vue.js Guide", content: "Getting started with Vue" },
{
slug: "intro-react",
title: "Introduction to React",
content: "Learn React basics",
},
{
slug: "vue-guide",
title: "Vue.js Guide",
content: "Getting started with Vue",
},
];

const results = rankDocuments(
Expand Down Expand Up @@ -315,7 +325,11 @@ faq.filter((q) => match(q) > 0.3);
```typescript
const users = [
{ id: 1, name: "John Doe", bio: "Software engineer at TechCorp" },
{ id: 2, name: "Jane Smith", bio: "Product manager with engineering background" },
{
id: 2,
name: "Jane Smith",
bio: "Product manager with engineering background",
},
{ id: 3, name: "Bob Wilson", bio: "Marketing specialist" },
];

Expand Down
2 changes: 2 additions & 0 deletions packages/y-graph-storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

A [Yjs](https://yjs.dev) storage adapter for `@codemix/graph` that persists the graph inside a `Y.Doc`, enabling real-time collaborative graph editing, CRDT-based conflict resolution, live reactive queries, and support for rich Yjs shared types (`Y.Text`, `Y.Array`, `Y.Map`) as property values.

Part of the [codemix product intelligence platform](https://codemix.com/).

## Table of Contents

- [Features](#features)
Expand Down
Loading