Neo4j
Store connected data and query relationships in a Neo4j graph database.
- database
- graph
Guide: Connect to a database from outside
Run it
briq run neo4jbriq_run({ recipe: "neo4j", wait: true })curl -X POST https://api.briq.cloud/v1/briqs \
-H "Authorization: Bearer $BRIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"recipe": "neo4j",
"wait": true
}'
# → { "briqs": [{ "id": "bq_…", … }], "outputs": { "NEO4J_BOLT_URL": "…" }, … }
# ... when done, for each briq id
curl -X DELETE https://api.briq.cloud/v1/briqs/<id> \
-H "Authorization: Bearer $BRIQ_API_KEY"stack: app
services:
neo4j:
recipe: neo4j
# its defaults, each a field you can set:
# image: neo4j:5
# size: small
# volume: { gb: 2 }Fields
| Name | Type | Options | Default |
|---|---|---|---|
| image | string | — | "neo4j:5" |
| env | record | { key: string | { secret, value?, literal?, scope?, hosts?, locations? } } | {} |
| cmd | string | string[] | — | — |
| size | enum | pico, micro, nano, small, medium, large, xlarge | "small" |
| volume | object | { gb? } | {"gb":2} |
| files | record | { key: string | { base64 } } | — |
| egress | object | { hosts } | — |
Outputs
Returned by briq_run once the stack is healthy. Hosts resolve inside your team network; secrets are generated per run.
- NEO4J_BOLT_URL
- bolt://neo4j.<stack>.internal:7687
- NEO4J_HTTP_URL
- http://neo4j.<stack>.internal:7474
- NEO4J_USER
- neo4j
- NEO4J_PASSWORD
- <NEO4J_PASSWORD>
What it runs
| Briq | Image | Ports | Size | Volume |
|---|---|---|---|---|
| neo4j | neo4j:5 | 7474, 7687 | small | 2 GB at /data |
When to use it
- The agent's memory is relationships: which service calls which, which bug hit which customer. A graph answers "what is connected to this?" directly.
- The agent should write facts in Cypher as it learns them, and query them later.
- You are prototyping a recommendation, fraud or dependency-graph feature and need a real Bolt endpoint.
Tips
- Auth is on: user
neo4j, passwordNEO4J_PASSWORDin the outputs. - Connect from outside:
briq_exposeport 7687 withprotocol: "bolt"gives aneo4j+s://address. See Connect to a database from outside. - Bolt (
NEO4J_BOLT_URL) works with the official drivers, orcypher-shellviabriq_exec. - Browser for a human:
briq_exposeport 7474 withmode: "private"(the briq restarts to publish it), and port 7687 withprotocol: "bolt". In the Browser, connect to theneo4j+s://address asneo4j. - Bigger graph? The volume starts small: set
volume: { gb: 20 }. Set it when the briq is created, and it counts toward your plan's disk.