# Export findings to Supabase and FalkorDB

> Write findings and verdicts to a Postgres table, or the evidence graph to FalkorDB, from Keryn Web, only when you press Send.

Source: https://keryn.dev/docs/guides/export-stores/

## Goal

Keep findings and verdicts in a store you run: a table you can query in Supabase, or an evidence graph you can traverse in FalkorDB. Nothing is written until you press Send, and each write goes only to the address you configured.

## Before you start

- A result in [Keryn Web](https://keryn.dev/docs/guides/web-app/) with the findings (and, if you want them, [verdicts](https://keryn.dev/docs/guides/triage/)).
- For Supabase: a project you own and a key that may insert into one table. For FalkorDB: either a [relay](https://keryn.dev/docs/reference/connectors/relay/) in front of your database, or a client to load a script yourself.
- Findings describe weaknesses in your code. Decide who may read the destination before you create it.

## Supabase: findings as rows

1. In Settings, Connectors, choose Supabase. The app shows the SQL that creates the table. Run it in the Supabase SQL editor. The table has row level security on and grants nothing to `anon`, because a project's anon key is public.
2. Enter the project address, the table name and a key. The `service_role` key bypasses row level security, so use it only in a tab you trust and do not choose "remember for this tab" for it.
3. Press **Test**. It checks the address and key without sending a finding.
4. Press **Send**. The panel names the host and the number of rows first; confirm to write.

The columns, the key header and the exact fields are on the [Supabase page](https://keryn.dev/docs/reference/connectors/supabase/), generated from the product's catalog. A verdict, its confidence, grounds and fix are separate `triage_*` columns; the proof level is its own pair of columns (`proof_level`, `proof_rung`) and a verdict never changes it.

Query it the way you query anything in Postgres. The table is `keryn_findings` by default, with one row per finding, so "the errors that reached proof level 3 or higher" is a `where` clause on `severity` and `proof_level`.

## FalkorDB: the evidence graph

The graph is the evidence graph of one scan, written as openCypher statements: a `Scan` node that `REPORTED` each `Finding`, which is `IN_FILE` a `File`, `VIOLATES` a `Rule` and is `TAGGED` with a `Taxon` (a CWE or OWASP entry), plus the `Component` nodes of the AI-BOM that the scan `INVENTORIED` and the code `USES`. There are two routes.

- **Through a relay.** Deploy the [Keryn relay](https://keryn.dev/docs/reference/connectors/relay/) on Vercel or Netlify with the `falkordb` package, point Keryn Web at it, press **Test** (the relay's health route says whether graph writes are enabled) and **Send**. The database credentials stay in the relay's environment, never in the tab.
- **Without a relay.** Download the graph as an openCypher script and load it yourself with `redis-cli`, FalkorDB Browser or any openCypher client. Nothing leaves the page, because you carry the file.

The labels and relationships are on the [FalkorDB page](https://keryn.dev/docs/reference/connectors/falkordb/).

## Keep the keys small

Secret fields stay in the tab's memory. Use a key that can write one table or one graph and nothing else, rotate it when the tab is shared, and use Forget on the connector when you finish. Every request is pinned to the one origin you entered, with no cookies and no referrer; a redirect to another origin is refused.

## What you just proved

You moved evidence from a tab to a store **by choice**, across one edge that you configured and confirmed. The page cannot write anywhere else: the content security policy of the page lists the hosts a connector may reach, and the [connectors overview](https://keryn.dev/docs/reference/connectors/) prints that list.

## Next

- [Triage](https://keryn.dev/docs/guides/triage/) first, so the verdicts are stored with the findings when you press Send.
- Hand the same findings to your pipeline as files: [CI](https://keryn.dev/docs/guides/ci/) and [formats](https://keryn.dev/docs/reference/formats/).
