Skip to content

grai.build Documentation

Welcome to the grai.build documentation! This guide will help you understand and use grai.build to manage your graph database schemas.

๐Ÿ“š Documentation Structure

Getting Started

Core Features

Advanced Features

New to grai.build?

Start here:

  1. Getting Started Guide - Install and create your first project
  2. Philosophy - Understand the "why" behind grai.build
  3. CLI Reference - Learn the command-line tools

Common Tasks

  • Initialize a project: grai init
  • Validate your schema: grai validate
  • Build Cypher output: grai build
  • Create a migration: grai migrate "description"
  • Apply migrations: grai migrate upgrade
  • Deploy to Neo4j: grai run --password <password>
  • View lineage: grai lineage
  • Create visualization: grai visualize

Need Help?

๐Ÿ“– Documentation by Topic

Schema Definition

Learn how to define your graph schema:

Development Workflow

Data Operations

Analysis & Visualization

๐ŸŽฏ Use Cases

dbt Users

If you're familiar with dbt, you'll feel at home with grai.build:

  • YAML-based definitions - Like dbt models
  • Build command - Similar to dbt build
  • Data loading - Like dbt run but for graphs (from BigQuery, Postgres, Snowflake)
  • Documentation generation - Like dbt docs generate
  • Incremental builds - Skip unchanged files (via build cache)
  • Profiles - Multi-environment configs like dbt
  • APOC optimization - Automatic 2-3x speedup for bulk loading

See: Philosophy

Data Engineers

Managing graph schemas and loading data in production:

  • CI/CD integration - Validate schemas and load data in your pipeline
  • Version control - Track schema changes in git
  • Multiple environments - Dev, staging, production configs
  • Data source connectors - BigQuery, Snowflake, PostgreSQL (future)
  • Orchestration-ready - Integrates with Airflow, Prefect, etc.

See: Data Loading, Profiles

Data Analysts

Exploring and documenting graph structures:

  • Lineage visualization - See upstream/downstream dependencies
  • Impact analysis - Understand change implications
  • Interactive docs - Browse your graph schema

See: Lineage Tracking, Visualization

๐Ÿ—๏ธ Architecture

grai.build follows a clear pipeline:

YAML Definitions โ†’ Parser โ†’ Validator โ†’ Compiler โ†’ Cypher Scripts โ†’ Neo4j
                                                   โ†“
                                            Lineage Tracker
                                                   โ†“
                                            Visualizations

Data Sources (BigQuery, etc.) โ†’ Data Loader โ†’ Batching โ†’ Neo4j
                                     โ†“
                                Verbose Logging

Each component is independent and testable, making the tool reliable and extensible.

๐Ÿค Contributing

Want to contribute to grai.build?

  • ๐Ÿ› Report bugs
  • ๐Ÿ’ก Suggest features
  • ๐Ÿ“– Improve documentation
  • ๐Ÿงช Write tests
  • ๐Ÿ”ง Submit pull requests

See our Contributing Guide and Code of Conduct.

๐Ÿ“„ License

grai.build is open source under the MIT License.


Ready to get started? Head to the Getting Started Guide!