Story of CocoIndex, at 1k stars

The story of CocoIndex at 1,000 GitHub stars: the open-source engine that combines custom transformation logic with incremental processing for data indexing.

Changelog3 min read
Story of CocoIndex, at 1k stars
Enlarge cover

Story of CocoIndex, at 1k stars

Zoom in to see details.

Story of CocoIndex, at 1k stars

We have been working on CocoIndex, a real-time data framework for AI, for a while, with a growing community. We officially crossed 1k stars earlier this week. Thanks to everyone who starred, forked, contributed, or shared the project.

CocoIndex is a data transformation framework with a Rust core engine. It prepares data for AI through embeddings, knowledge graphs, and other transformations.

cocoindex · key featureswhere all three overlap
Transformations beyond SQL
LLM inferencestructured extractionvector embeddings
Custom logic
Incremental processing
CocoIndex is the overlap of all three

The design, inspired by spreadsheets, has the framework handle source updates while developers define only a series of data transformations.

Star history so far:

star historycocoindex-io/cocoindex
View chart data
DateStars
2025-03-030
2025-03-0449
2025-03-0572
2025-03-0693
2025-03-07103
2025-03-08120
2025-03-09139
2025-03-10171
2025-03-11187
2025-03-12197
2025-03-13245
2025-03-14255
2025-03-15268
2025-03-16277
2025-03-17284
2025-03-18286
2025-03-19292
2025-03-20299
2025-03-21305
2025-03-22322
2025-03-23334
2025-03-24342
2025-03-25356
2025-03-26363
2025-03-27371
2025-03-28377
2025-03-29385
2025-03-30390
2025-03-31394
2025-04-01402
2025-04-02415
2025-04-03424
2025-04-04439
2025-04-05455
2025-04-06462
2025-04-07463
2025-04-08469
2025-04-09475
2025-04-10477
2025-04-11483
2025-04-12487
2025-04-13493
2025-04-14509
2025-04-15519
2025-04-16525
2025-04-17535
2025-04-18549
2025-04-19556
2025-04-20619
2025-04-21731
2025-04-22758
2025-04-23762
2025-04-24788
2025-04-25821
2025-04-26834
2025-04-27847
2025-04-28857
2025-04-29859
2025-04-30863
2025-05-01869
2025-05-02910
2025-05-03929
2025-05-04939
2025-05-05960
2025-05-06989
2025-05-071003
2025-05-081014

Cumulative stars per day, counted from the GitHub stargazers API.

What is data flow programming?

Unlike a workflow orchestration framework where data is usually opaque, in CocoIndex, data and data operations are first-class citizens. CocoIndex follows the idea of the dataflow programming model. Each transformation creates a new field solely based on input fields, without hidden state or value mutation. All data before/after each transformation is observable, with lineage out of the box.

For example, this is a kind of data flow: parse files → data mapping → data extraction → knowledge graph.

CocoInsight v0 data flow view: parse files, data mapping, data extraction, knowledge graph
DataflowEnlarge

Dataflow

Zoom in to see details.

CocoInsight v0 data flow view: parse files, data mapping, data extraction, knowledge graph

Users don’t define create, update, or delete operations. Instead they define, for a set of source data, the transformation or formula. The framework takes care of the data operations such as when to create, update, or delete.

With operations like:

python
# ingest
data['content'] = flow_builder.add_source(...) 

# transform
data['out'] = data['content'] 
    .transform(...)
    .transform(...)

# collect data
collector.collect(...)

# export to db, vector db, graph db ...
collector.export(...) 

How does CocoIndex keep data fresh?

As a data framework, CocoIndex treats data freshness as a core requirement and maintains it through incremental processing.

cocoindex enginesync · real-time supported
sourcebatch 1already indexed
sourcebatch 2already indexed
source updatebatch 3just arrived
cocoindex compute engineYour transformationsUpdates the index on every source update, automatically. Only batch 3 runs.
target storeIndex
row 1arow 1brow 2arow 2brow 3arow 3b
new source data and its rowsthe work that runsunchanged, not reprocessed

The framework takes care of:

  1. Change data capture
  2. Figuring out what exactly needs to be updated, and updating only that instead of recomputing everything, backed by memoization of computation results.

This makes it fast to reflect any source updates to the target store. If stale data reaching AI agents is a concern, the framework does that freshness work so you don’t build the infrastructure yourself.

Built-in modules and custom modules

Data preparation depends on the use case, and no one solution fits all. Model choice is a balance of quality, performance, and price, and no single option wins every case. Many projects in the data infrastructure ecosystem optimize for different goals: parsers, embedding models, vector DBs, graph DBs, and many others.

We take the composition approach. Instead of building everything, we provide native plugins for parsers, models, and databases, and standardize the interface so any module can be plugged in or swapped.

Our focus is the incremental pipeline and compute engine.

Tooling

Alongside the standard statistics and reports, we also built CocoInsight: a companion UI that connects to your on-premises CocoIndex server to show pipeline data, with zero pipeline data retention. CocoInsight is not part of CocoIndex v1; the screenshots below show the v0 tooling.

As mentioned earlier, CocoIndex is heavily influenced by spreadsheets. CocoInsight reflects this directly: you can see all the data as a table, and how it looks after each transformation.

This is an example of mapping:

CocoInsight v0 mapping view: source rows beside the mapped output of one transformation
MappingEnlarge

Mapping

Zoom in to see details.

CocoInsight v0 mapping view: source rows beside the mapped output of one transformation

Beyond the data transformation insights, the tooling also made LLM transformations visible, for example:

  • Inspect the chunking (when the pipeline chunks) and debug why a chunk shows up in search results
CocoInsight v0 chunking view: a document with its chunks and their positions
ChunkingEnlarge

Chunking

Zoom in to see details.

CocoInsight v0 chunking view: a document with its chunks and their positions
  • Understand the relation extraction for graphs
CocoInsight v0 relationship view: entities and the relationships extracted between them
Add relationshipsEnlarge

Add relationships

Zoom in to see details.

CocoInsight v0 relationship view: entities and the relationships extracted between them

The aim was to make the data at each step visible.

Source and discussion

Browse the GitHub repository or discuss CocoIndex and data infrastructure on Discord.

Frequently asked questions

What is CocoIndex?

CocoIndex is a real-time data transformation framework for AI, with its core engine written in Rust. It prepares fresh data for AI (embeddings, knowledge graphs, and other transformations).

The design, inspired by spreadsheets, has the framework handle source updates while developers define only a series of data transformations.

What is dataflow programming and how does CocoIndex use it?

In CocoIndex, data and data operations are first-class citizens, following the dataflow programming model. Each transformation creates a new field solely based on input fields, without hidden state or value mutation, so all data before and after each transformation is observable with lineage out of the box.

See What is data flow programming?

How does CocoIndex keep indexed data fresh?

CocoIndex relies on incremental processing: the framework handles change data capture and then figures out exactly what needs to be updated, updating only that instead of recomputing everything. This makes it fast to reflect source updates in the target store.

Developers don't define create, update, or delete operations themselves. They define the transformation for a set of source data, and the framework decides when to create, update, or delete. See How does CocoIndex keep data fresh?

Does CocoIndex have built-in modules, and can I plug in my own?

Yes. CocoIndex takes a composition approach rather than building everything itself: it provides native plugins for parsers, embedding models, vector DBs, graph DBs, and more, and standardizes the interface so you can plug in and swap any module.

See Built-in modules and custom modules.

What is CocoInsight?

CocoInsight is a companion UI for pipeline insights, described in this post. It has zero pipeline data retention and connects to your on-premises CocoIndex server, showing the data as a table after each transformation, including chunking and relation extraction for graphs. CocoInsight is not part of CocoIndex v1.

See Tooling.

Is CocoIndex open source?

Yes. CocoIndex is open source on GitHub, and this post marks the milestone of crossing 1,000 stars. The source is on GitHub; discussion is on Discord.

See Source and discussion.

Build fresh context for your agents.

CocoIndex keeps derived data in sync with its sources. Only what changed re-runs.