Foundgine.GraphQL.HotChocolate 0.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Foundgine.GraphQL.HotChocolate --version 0.3.0
                    
NuGet\Install-Package Foundgine.GraphQL.HotChocolate -Version 0.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Foundgine.GraphQL.HotChocolate" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Foundgine.GraphQL.HotChocolate" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Foundgine.GraphQL.HotChocolate" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Foundgine.GraphQL.HotChocolate --version 0.3.0
                    
#r "nuget: Foundgine.GraphQL.HotChocolate, 0.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Foundgine.GraphQL.HotChocolate@0.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Foundgine.GraphQL.HotChocolate&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Foundgine.GraphQL.HotChocolate&version=0.3.0
                    
Install as a Cake Tool

<picture> <source media="(prefers-color-scheme: dark)" srcset="docs-site/assets/logo/foundgine-logo-dark.png"> <img src="docs-site/assets/logo/foundgine-logo.png" alt="Foundgine" width="360"> </picture>

Foundgine.io

From intent to authorized execution.

Foundgine is a programmable semantic execution platform for .NET.

Current release: 0.3.0

It creates a controlled boundary between application callers — including APIs, GraphQL, automation, and AI agents — and the data and operations they are allowed to execute.

Instead of allowing every caller to implement its own validation, authorization, query translation, and data-access logic, Foundgine turns structured intent into an authorized execution plan and executes that plan through a provider.

Caller
  │
  ▼
Intent
  │
  ▼
Semantic Model
  │
  ▼
Authorization
  │
  ▼
Execution Plan
  │
  ▼
Provider
  │
  ▼
Result

What is Foundgine?

Foundgine separates what a caller wants from how the application executes it.

A caller submits structured intent. Foundgine resolves that intent against an application-defined semantic model, validates the requested capabilities, applies authorization constraints, builds an execution plan, and sends the plan to a provider such as SQL or InMemory.

The result is a reusable execution boundary that can sit underneath multiple interfaces.

                 Intent Sources

     API       GraphQL       Automation       AI Agent
       \          |              |              /
        \         |              |             /
         └────────┴──────────────┴─────────────┘
                          │
                          ▼
                  ┌───────────────┐
                  │   Foundgine   │
                  │               │
                  │ Semantic      │
                  │ Authorization │
                  │ Planning      │
                  │ Execution     │
                  └───────┬───────┘
                          │
              ┌───────────┼───────────┐
              ▼           ▼           ▼
             SQL       InMemory     Providers

Why does Foundgine exist?

Modern applications increasingly have many callers:

  • web and mobile applications
  • APIs
  • GraphQL clients
  • internal services
  • automation
  • AI agents

Without a common execution boundary, each interface can grow its own authorization, validation, query translation, and data-access path.

Foundgine is designed to centralize the semantic execution model so that different callers can share the same application-defined capabilities and execution rules.

The key idea

Callers describe what they want. Foundgine determines what is allowed, how it should execute, and which provider performs it.

Foundgine and AI agents

AI agents make this boundary particularly important.

An AI model can decide what it wants to accomplish. It should not become the authority over which application data it is allowed to access, nor should it need direct database credentials.

Instead:

AI Agent
    │
    │ structured intent
    ▼
Foundgine
    ├── resolve
    ├── validate
    ├── authorize
    ├── plan
    └── execute
            │
            ▼
        PostgreSQL

This is deliberately different from:

AI → generate SQL → database

Foundgine is intended to keep the application in control of authorization and execution while allowing AI and other structured callers to use application capabilities.

Website

Foundgine.io

Capabilities

Capability Purpose
Semantic modeling Define the application-facing model independently of physical persistence details
Structured intent Represent requested operations without coupling callers directly to SQL
Relationship traversal Express operations across connected domain data
Authorization-aware planning Carry application authorization constraints into execution planning
Execution planning Convert semantic operations into provider-independent plans
Plan rewriting and optimization Transform plans before physical execution
Provider independence Separate semantic operations from provider-specific execution
SQL execution Execute relational plans against SQL providers
InMemory execution Execute the same semantic model without a database
GraphQL integration Use GraphQL as an interface without making GraphQL the execution model
JSON / structured input Accept structured intent from non-GraphQL callers
AOT support Support generated metadata and Native AOT-oriented deployments
AI-agent integration Allow agents to request application capabilities without direct database authority
Execution evidence Make authorization, planning, and execution observable

A 30-second example

A caller asks:

Find customers with accounts over $10,000.

The caller does not need to know the database schema or generate SQL.

Conceptually:

Request
  ↓
Customer
  └── Accounts
        └── Balance > 10,000
  ↓
Authorization
  ↓
Execution plan
  ↓
SQL provider
  ↓
Result

The important boundary is:

What the caller requested
          ≠
What the database can execute

Foundgine connects those two through an application-controlled semantic and planning layer.

Validation status

Foundgine 0.3.0 has passed the repository restore, build, and full automated test gates used for the current release. PostgreSQL-specific integration and benchmark workflows remain separately documented because they depend on a real PostgreSQL environment.

Performance evidence

The 12 August 2026 CoffeeBeanery benchmark contains three successful runs over a deterministic PostgreSQL graph workload.

At concurrency 32:

Implementation Average RPS Average p95
Hot Chocolate + EF Core 139.4 338.4 ms
Foundgine — no cache 2,781.0 20.3 ms
Foundgine — provider-plan cache 2,838.9 19.9 ms

That corresponds to approximately 20.0× the throughput of the baseline without the cache and 20.4× with the cache for this workload.

The benchmark also reports zero application errors, zero request timeouts, and zero cancelled requests across the three successful runs.

These results are workload-specific evidence, not a universal claim that Foundgine is faster than every EF Core or GraphQL workload.

See docs-site/performance/index.md.

What Foundgine is not

Foundgine is not:

  • an ORM replacement
  • a database
  • a GraphQL server
  • an LLM
  • an agent framework
  • an identity provider

It is an execution layer that can sit underneath those kinds of systems.

Vision

Make application capabilities understandable and safely executable by machines.

The long-term vision is a stable semantic execution boundary between what a system asks for and what an application is willing to execute.

That boundary should work for traditional software and intelligent agents alike.

Documentation

The published site (built from docs-site/) is available at https://cristianbarragan.github.io/Foundgine/.

Development

Repository development setup, tests, benchmarks, deployment templates, and contribution guidance should remain separate from the first-time user experience.

BENCHMARK-RESULTS-2026-08-12-CLEAN.md is the source data behind docs-site/performance/index.md; it's kept at the repo root as development/benchmark evidence rather than published-site content.

Security

Foundgine's authorization and execution boundaries are intended to reduce unsafe access paths, but application security remains a shared responsibility. Authentication, secret management, transport security, rate limiting, database permissions, and deployment security remain application and infrastructure responsibilities.

Status

Foundgine is actively evolving. Public API stability, provider coverage, AI-agent integrations, and production deployment patterns should be evaluated against the current 0.3.0 release and the explicit claims in the documentation.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Foundgine.GraphQL.HotChocolate:

Package Downloads
Foundgine.GraphQL.HotChocolate.Mutations

Hot Chocolate mutation adapter for Foundgine.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.2 40 8/22/2026
0.5.1 47 8/22/2026
0.5.0 46 8/22/2026
0.4.0 112 8/16/2026
0.3.0 99 8/15/2026
0.2.1 110 8/15/2026
0.1.0 98 8/14/2026

Initial public packaging of the Foundgine semantic execution layer.