# npgsql/npgsql

Npgsql is the .NET data provider for PostgreSQL.

Repository: https://github.com/npgsql/npgsql
Canonical: https://ross.abutalabs.com/products/npgsql
Homepage: http://www.npgsql.org
Language: C#
License: PostgreSQL
License Family: other
Topics: npgsql, database, postgresql, postgres, dotnet, c-sharp, sql
Last push: 2026-08-25T21:56:21+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 5390, "days_push": 8, "days_rel": 98, "gap_med": 9, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3721, forks 888 (observed 2026-08-28T04:08:15.490701+00:00)

## What it is
Npgsql is the open-source ADO.NET data provider for PostgreSQL, written in 100% C#. It lets .NET applications connect to and query PostgreSQL with high performance and full support for advanced PostgreSQL types.

## Use cases
- connect to postgresql from c#
- run sql queries from .net application
- bulk import data into postgres from dotnet
- use postgres arrays and json types in c#
- multi-host failover for postgres connections
- entity framework core postgres provider

## When to choose
- you need a high-performance PostgreSQL driver for .NET
- you need support for advanced PostgreSQL types like ranges, enums, and PostGIS
- you use Entity Framework Core with PostgreSQL
- you need bulk import/export or multi-host load balancing

## When to avoid
- you use a database other than PostgreSQL
- you need a driver for a non-.NET language
- you need a legacy Entity Framework 6 provider (no longer actively maintained)

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database
- domain: databases, backend, developer-tools
- platform: dotnet, cross-platform
- tags: postgresql, ado-net, c-sharp, sql, orm-integration

## Member repositories
- npgsql/npgsql (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:15.490701+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:29:19.721465+00:00, confidence not recorded.
  - readme: https://github.com/npgsql/npgsql (fetched 2026-08-28T04:08:15.490701+00:00, sha 7eb9f51cca27)
  - homepage: http://www.npgsql.org (fetched 2026-08-29T09:23:59.971459+00:00, sha a8c2e4bcfaae)
- Data as of 2026-08-30T08:39:29.467469+00:00.
