<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Jasper Blues</title>
    <description>The latest articles on DEV Community by Jasper Blues (@jasperblues).</description>
    <link>https://dev.to/jasperblues</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F262569%2F28a5b047-bed8-4a9d-bf37-b196636152b9.jpeg</url>
      <title>DEV Community: Jasper Blues</title>
      <link>https://dev.to/jasperblues</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jasperblues"/>
    <language>en</language>
    <item>
      <title>Graph RAG on the database you already run: meet Drivine</title>
      <dc:creator>Jasper Blues</dc:creator>
      <pubDate>Thu, 29 Oct 2026 20:52:34 +0000</pubDate>
      <link>https://dev.to/jasperblues/graph-rag-on-the-database-you-already-run-meet-drivine-27kn</link>
      <guid>https://dev.to/jasperblues/graph-rag-on-the-database-you-already-run-meet-drivine-27kn</guid>
      <description>&lt;p&gt;If you want graph RAG, you usually get told to stand up a graph database first. Drivine takes the other road: bring the graph to the database you already run.&lt;/p&gt;

&lt;p&gt;Here's the four-and-a-half-minute version (with captions):&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/uETP0EN_04E" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  What Drivine is
&lt;/h2&gt;

&lt;p&gt;Drivine is an open-source graph database client for &lt;strong&gt;TypeScript, Python and the JVM&lt;/strong&gt;. It comes as three libraries:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/liberation-data/drivine" rel="noopener noreferrer"&gt;Drivine&lt;/a&gt;&lt;/strong&gt; for Node.js and TypeScript: &lt;code&gt;npm install @liberation-data/drivine&lt;/code&gt;, with a NestJS module, or without Nest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/liberation-data/drivine-python" rel="noopener noreferrer"&gt;drivine-python&lt;/a&gt;&lt;/strong&gt;: &lt;code&gt;pip install drivine&lt;/code&gt;. It's async first, with a sync API generated from the async one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;a href="https://github.com/liberation-data/drivine4j" rel="noopener noreferrer"&gt;drivine4j&lt;/a&gt;&lt;/strong&gt; for Kotlin and Java: &lt;code&gt;org.drivine:drivine4j&lt;/code&gt;, with Spring Boot support and a code-generated DSL.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All three share one storage format. A graph written by any of them is read, stamped and checked the same way by the others, so a Python service and a Kotlin service can work on the same store.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compose views, not models
&lt;/h2&gt;

&lt;p&gt;A person can play many roles. So instead of one big model that has to serve every use case, you declare a &lt;em&gt;view&lt;/em&gt; for each one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;@NodeFragment&lt;/code&gt; maps one node.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;@GraphView&lt;/code&gt; composes fragments, and the relationships between them, from a &lt;code&gt;@Root&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Drivine writes the statement that loads the whole view, with everything related to it, in &lt;strong&gt;one round trip&lt;/strong&gt;. Saves are one statement too. There's no lazy loading and no session cache to keep warm.&lt;/p&gt;

&lt;p&gt;On top of that sits a typed query DSL: filters, ordering, keyset paging and index advice. Its references come from your own classes, or from code generated from them (KSP on the JVM, stubs in Python).&lt;/p&gt;

&lt;p&gt;When you'd rather write the query yourself, the &lt;strong&gt;persistence manager&lt;/strong&gt; takes plain Cypher.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cypher on every store
&lt;/h2&gt;

&lt;p&gt;This is the part I'm proudest of. Drivine supports:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Neo4j, Memgraph, FalkorDB and Amazon Neptune&lt;/strong&gt;, which run your Cypher as written;&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Postgres, Oracle and SQLite&lt;/strong&gt;, where Drivine &lt;strong&gt;compiles your Cypher to SQL&lt;/strong&gt;. It works over two tables, one of nodes and one of relationships, and gives back the same rows.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cypher"&gt;&lt;code&gt;&lt;span class="k"&gt;MATCH&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="py"&gt;p:&lt;/span&gt;&lt;span class="n"&gt;Person&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="ss"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;:KNOWS&lt;/span&gt;&lt;span class="ss"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="py"&gt;friend:&lt;/span&gt;&lt;span class="n"&gt;Person&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;p.name&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;$name&lt;/span&gt;
&lt;span class="k"&gt;RETURN&lt;/span&gt; &lt;span class="n"&gt;friend.name&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same statement runs on a graph engine or on the Postgres you already have in production. The compiler is checked against a shared &lt;a href="https://github.com/liberation-data/drivine-cypher-spec" rel="noopener noreferrer"&gt;Cypher spec&lt;/a&gt;, which pins the rows each statement gives on Neo4j, Postgres, Oracle and SQLite. All three libraries run the same spec. (SQLite is drivine4j's for now.)&lt;/p&gt;

&lt;p&gt;That's what "graph RAG on any database" means: you build the AI app's knowledge graph in the database your team already operates, backs up and trusts. Vector search comes along too, through pgvector on Postgres.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Docs and quick starts: &lt;strong&gt;&lt;a href="https://drivine.org/" rel="noopener noreferrer"&gt;drivine.org&lt;/a&gt;&lt;/strong&gt;. They say you can be up and running in five minutes.&lt;/li&gt;
&lt;li&gt;Star or file an issue on GitHub: &lt;a href="https://github.com/liberation-data/drivine" rel="noopener noreferrer"&gt;TypeScript&lt;/a&gt; · &lt;a href="https://github.com/liberation-data/drivine-python" rel="noopener noreferrer"&gt;Python&lt;/a&gt; · &lt;a href="https://github.com/liberation-data/drivine4j" rel="noopener noreferrer"&gt;JVM&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Drivine is a community project by Liberation Data, and drivine4j is the graph client behind &lt;a href="https://hub.embabel.com" rel="noopener noreferrer"&gt;Embabel&lt;/a&gt;, agentic AI for the JVM. I'd love to hear what you build with it, and which database you'd run it on.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>database</category>
      <category>postgres</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Drivine - database client for TypeScript/Node.js</title>
      <dc:creator>Jasper Blues</dc:creator>
      <pubDate>Tue, 03 Mar 2020 01:29:34 +0000</pubDate>
      <link>https://dev.to/jasperblues/drivine-database-client-for-typescript-node-js-15b1</link>
      <guid>https://dev.to/jasperblues/drivine-database-client-for-typescript-node-js-15b1</guid>
      <description>&lt;p&gt;Hey Folks!&lt;/p&gt;

&lt;p&gt;We recently published version 1.0 and followed with 1.x of Drivine. Drivine is a database library for Node.js and TypeScript, with first-class support for graph-databases like Neo4j.&lt;/p&gt;

&lt;p&gt;My favorite feature in this release is distributed transactions - even across databases of different types. We use this facility on a business process management product, a multi-tenanted application where transactions must span a master database and a separate customer database.&lt;/p&gt;

&lt;p&gt;Details are available on the website: &lt;a href="https://drivine.org"&gt;https://drivine.org&lt;/a&gt; &lt;/p&gt;

</description>
      <category>node</category>
      <category>typescript</category>
    </item>
  </channel>
</rss>
