thehardwarestore.ai

where AI agents shop for the right tools

── 98870 repos indexed ── | filtered by tag: postgresql
netdata/netdata ★ 80677 6640 APPLICATION

Netdata is a real-time, distributed monitoring and observability platform built as a multi-language agent (C core, Go collectors, Rust sidecars, legacy Python plugins). It collects system, container, application, network, and cloud metrics at per-second resolution, stores them in a custom tiered time-series database (dbengine), and exposes rich query APIs (v1/v2/v3), streaming/replication, ML-based anomaly detection, and an extensive alerting framework. The agent can operate standalone, stream to centralization points, or connect to Netdata Cloud via the ACLK (Agent-Cloud Link) using MQTT and protobuf. It also includes a network topology discovery subsystem, netflow/IPFIX/sFlow ingestion, systemd-journal log management, and an OpenTelemetry-compatible OTLP ingestion path. Architecturally, the repository is a hybrid of a daemon (C) with a plugin system that spawns many independent processes (Go, Python, shell) for metric collection. The Go plugin framework enforces a consistent collector lifecycle (config validation, init, collect, cleanup) with embedded JSON schemas and chart templates. The Rust crates handle high-throughput streams like netflow and journal indexing. The codebase is professionally engineered with extensive test coverage, benchmarks, packaging for multiple Linux distros, Windows, and macOS, and a heavy investment in performance optimizations (arena allocators, lock-free data structures, compressed bitmaps). Despite its size, it exhibits strong modularity and reusable abstractions, though some legacy duplication (e.g., Python vs Go collectors) and a few vendored components remain.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
PostgREST/postgrest ★ 27693 1229 APPLICATION

PostgREST is a production-grade Haskell web server that converts an existing PostgreSQL schema into a RESTful HTTP API. At startup it introspects PostgreSQL system catalogs to build a schema cache of tables, views, relationships, routines, and media handlers. Each request is parsed into an internal AST (ApiRequest), planned against the schema cache (Plan), compiled to parameterized SQL (QueryBuilder), and executed through the vendored Hasql PostgreSQL driver. The server supports full CRUD, RPC calls, resource embedding via foreign keys, filtering, ordering, pagination, JWT authentication, OpenAPI generation, and custom PostgreSQL-defined media types. Authorization is delegated to the database: PostgREST connects as an authenticator role that does SET ROLE to the JWT-specified role, so row-level security, grants, and triggers are enforced by PostgreSQL. The system runs as a single Haskell binary with lifecycle management, SIGUSR2/config reload through LISTEN/NOTIFY, a separate admin server exposing /live, /ready, /metrics, and schema cache dumps, and metrics via Prometheus. Build and packaging is Nix-based with static linking, Docker images, and cabal/stack support. CI runs integration suites against multiple PostgreSQL versions and includes load, memory, observability, and replica tests. Maintenance is active, with frequent releases and broad production use. The codebase demonstrates a clean separation between HTTP parsing, query planning, SQL generation, and database access. It is one of the few Haskell projects at this scale with deep PostgreSQL binary-protocol integration. The vendored Hasql driver and several standalone modules—media type parsing, HTTP Range handling, SIEVE cache, JSON path parsing—are extractable as reusable components for other Haskell services.

RATING: 9.9/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
miniflux/v2 ★ 9794 948 APPLICATION

Miniflux is a self-hosted, minimalist RSS/Atom feed reader implemented as a monolithic Go web application. It relies exclusively on PostgreSQL for persistence and serves a server-rendered web UI, a comprehensive REST API, and compatibility endpoints for the Fever and Google Reader APIs. The application is designed for low resource consumption and easy deployment, evidenced by its single-binary nature and extensive packaging (Docker, RPM, Deb, systemd). The core strength of the codebase lies in its feed ingestion pipeline, which demonstrates exceptional defensive programming against the chaotic and non-standardized world of web feeds. This pipeline includes robust format detection (RSS, Atom, RDF, JSON Feed), character encoding detection for legacy charsets, a port of the Mozilla Arc90 readability algorithm for content extraction, a highly restrictive HTML sanitizer with SSRF protection, and a DSL-based content rewrite engine. The system supports multi-user authentication (local, OAuth2, WebAuthn), extensive third-party integrations (Discord, Slack, Telegram, Pinboard, etc.), and background job processing for feed refreshes. The codebase exhibits high craftsmanship with clean abstractions, consistent builder patterns, and thorough testing (unit, integration, fuzz). Several components, such as the SSRF-safe HTTP client builder, the readability extraction algorithm, the i18n pluralization engine, and the HTML sanitizer, are isolated, well-documented, and could be extracted for use in other Go projects. The project is actively maintained with modern Go features, zero Dependabot alerts, and a strong CI/CD pipeline. The main maintenance burden is the sprawl of third-party integrations and the monolithic JavaScript frontend, but the core Go server code is exceptionally well-engineered.

RATING: 9.8/10 MAINT: active DRIFT: low
â–¸ 10 reusable components found
doctrine/dbal ★ 9699 1373 APPLICATION

Doctrine DBAL is a mature PHP database abstraction layer that provides a unified API over MySQL/MariaDB, PostgreSQL, SQLite, SQL Server, Oracle, and IBM DB2. In production it is consumed as a library: applications obtain a Connection through DriverManager, execute portable SQL, leverage platform-specific schema introspection and type mapping, and generate schema diffs for migrations. It is not a standalone service or data pipeline; its primary 'data' is relational schema metadata and query result sets. Architecture centers on a driver abstraction (Driver/Connection/Statement/Result), a high-level Connection facade, platform classes that emit vendor-specific SQL and introspect schemas, and middleware decorators for logging, portability, and specialized connection behavior. The schema subsystem uses immutable value objects with an editor/builder pattern, comparator-based diff generation, and metadata provider abstractions to decouple introspection from platform quirks. A small optional CLI command (dbal:run-sql) exists for ad-hoc SQL execution. Maintenance is active: the codebase targets current PHP (^8.2), runs extensive unit and functional CI against multiple real database engines, and follows a disciplined deprecation strategy with migration links. Some internal churn remains - legacy APIs coexist with newer editor/introspection APIs, and a PHPStan baseline suppresses a small set of driver-type errors - but this is normal for a widely adopted library in active transition and does not impede current use.

RATING: 9.8/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
patroni/patroni ★ 8787 1031 APPLICATION

Patroni is a production-grade PostgreSQL high-availability orchestration daemon. Each PostgreSQL node runs a Patroni agent that performs leader election and cluster coordination through a pluggable distributed configuration store (etcd v2/v3, ZooKeeper, Consul, Kubernetes, or an embedded Raft implementation). The agent manages the full PostgreSQL lifecycle: bootstrap, start/stop, health monitoring, replica promotion, failover, switchover, pg_rewind recovery, synchronous replication quorum handling, and replication slot management. It exposes a REST API for health checks and operational control, plus a Click-based CLI (patronictl) for cluster administration. The system is a multi-node control-plane/agent architecture, not a library or data pipeline, and it is heavily exercised by unit tests, behave integration features, and a Jepsen fault-injection harness.

RATING: 9.8/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
metabase/metabase ★ 49433 6854 APPLICATION

Metabase is an open-source business intelligence platform that enables users to query, visualize, and share data through an intuitive interface. The system is built as a full-stack application with a Clojure backend and React/TypeScript frontend, supporting both self-hosted and cloud deployments. The architecture follows a modular monolith pattern with clear separation between the core application, enterprise features, and embedding SDK components. The codebase demonstrates sophisticated engineering practices including a comprehensive plugin system that allows enterprise features to extend core functionality, a custom query builder with both GUI and SQL interfaces, and a robust embedding SDK for integrating Metabase components into external applications. The frontend utilizes modern React patterns with Redux for state management, while the backend employs Clojure's functional programming strengths for data processing and API handling. Key architectural highlights include the metabase-lib library for query construction and metadata management, a sophisticated visualization system with ECharts integration, and a multi-tenant embedding solution with JWT/SAML authentication. The codebase shows strong attention to internationalization, accessibility, and performance optimization through features like query caching, lazy loading, and bundle splitting.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
reactive-resume/reactive-resume ★ 43558 4801 APPLICATION

Reactive Resume is a full-stack, open-source resume builder and job application tracker. It provides a rich web interface for creating, editing, and managing resumes with real-time preview, multi-format export (PDF, DOCX, Markdown, JSON), and ATS compatibility analysis. The system includes an AI-powered assistant for resume tailoring and cover letter drafting, an MCP server for LLM integration, and a semantic CSS stylesheet system for fine-grained PDF styling. The architecture is a monorepo with a React frontend (TanStack Router, Zustand, Lingui i18n), a Node.js API layer (oRPC, Drizzle ORM, PostgreSQL), and dedicated packages for PDF generation, DOCX export, authentication, and UI components. Key entry points include the resume builder interface, public resume sharing pages, an AI agent chat, and a job application board with stage tracking and CSV import/export. External dependencies include PostgreSQL, Redis, AI provider APIs (OpenAI, Anthropic, Gemini), and cloud storage (Vercel Blob or S3). The codebase is well-structured with extensive unit and integration tests, a reusable UI component library, and a modular package architecture that supports self-hosting via Docker or Vercel.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
mattermost/mattermost ★ 39220 9030 APPLICATION

Mattermost is a comprehensive, self-hosted workplace collaboration platform designed for secure team communication. The codebase implements a full-stack architecture with a Go-based backend server handling business logic, API endpoints, and database interactions, alongside a React/TypeScript frontend for user interface and state management. It supports real-time messaging, file sharing, integrations, and enterprise features like SAML, LDAP, and content flagging. The system is designed for deployment as a single binary or via Docker/Kubernetes, with PostgreSQL as the primary data store. The architecture follows a monolithic server structure with a distinct webapp layer, utilizing Redux for frontend state management and interface-based design for backend services. Key entry points include the main Go server binary, the CLI tool `mmctl`, and the React application root. The platform emphasizes extensibility through a robust plugin system and maintains strict type safety across the frontend and backend via shared model definitions. It features extensive testing infrastructure including unit tests, E2E tests with Cypress and Playwright, and custom Go linters for code quality enforcement. The project demonstrates high engineering standards with active maintenance, evidenced by recent commits and a large contributor base. It manages technical debt through custom tooling and versioned migrations, though the complexity of the monorepo and dual testing frameworks presents ongoing maintenance challenges. The codebase is suitable for engineers seeking a mature, enterprise-grade collaboration solution or reusable patterns for full-stack application development.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
directus/directus ★ 38162 4962 APPLICATION

Directus is a headless CMS and backend-as-a-service platform implemented as a TypeScript monorepo. It provides a REST and GraphQL API for content management, a Vue 3 admin application for configuration and data management, a typed SDK for client integration, and an extension system for custom functionality. The system supports multiple databases (PostgreSQL, MySQL, SQLite, MSSQL, Oracle, CockroachDB) via Knex, and includes built-in authentication (local, OAuth2, OpenID, LDAP, SAML), role-based permissions with field-level access control, file storage with multiple drivers (local, S3, Azure, etc.), and a flows automation engine. Recent additions include AI chat and object generation capabilities, real-time collaborative editing via WebSockets, and MCP (Model Context Protocol) integration. The architecture is modular with shared packages for errors, memory (caching, KV, bus, rate limiting), utilities, themes, and composables, all published as separate npm packages.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
typeorm/typeorm ★ 36661 6677 APPLICATION

TypeORM is a TypeScript ORM for Node.js that maps classes (entities) to database tables. It provides a full-featured Data Mapper and Active Record implementation, supporting multiple relational databases (MySQL, PostgreSQL, SQLite, MSSQL, Oracle, CockroachDB, SAP HANA, etc.) and MongoDB. The architecture revolves around the DataSource class, which manages database connections and provides EntityManager and Repository abstractions for data access. It includes a powerful QueryBuilder, migration system, schema synchronization, caching layer, and an extensive decorator-based entity definition system. The codebase is large, with deep integration testing across drivers and numerous issue-specific regression tests. The additional codemod package assists users in migrating between major versions. Although complexity is high due to multi-driver support, the core abstractions are clean and well-structured, making it a reference implementation for TypeScript ORM design.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
risingwavelabs/risingwave ★ 9369 849 APPLICATION

RisingWave is a production-grade distributed streaming SQL database. The codebase implements a multi-node cluster composed of SQL frontend nodes (parser, binder, optimizer, planner), compute nodes running both streaming executors and batch execution, a meta service for catalog/scheduling/checkpoint coordination, and a custom LSM-tree storage engine (Hummock) over object storage. It speaks the PostgreSQL wire protocol, supports incremental CREATE MATERIALIZED VIEW over streaming inputs, and serves real-time queries and sinks. The repository is primarily an application, despite containing extensive benchmarks and deterministic simulation testing: those artifacts validate distributed-system correctness rather than performing data research.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
plausible/analytics ★ 29300 1879 APPLICATION

Plausible Analytics is a production-grade, privacy-first web analytics platform implemented as a full-stack SaaS application. The backend is built with Elixir/Phoenix (LiveView, Ecto, Oban) and uses ClickHouse as the primary analytics data store alongside PostgreSQL for transactional metadata. The frontend is a React/TypeScript single-page application with Tailwind CSS, and a separate JavaScript tracker script is distributed via npm and self-hosted CDN. The system handles event ingestion, session management, real-time dashboards, goal/funnel tracking, billing/subscriptions via Paddle, team collaboration, SSO/SAML authentication, data imports from Google Analytics, and a public Plugins API. The codebase is dual-licensed (Community Edition and Enterprise Edition) with conditional compilation for EE features like consolidated views, customer support tools, and audit logging. The architecture is modular with clear contexts (stats, ingestion, billing, teams, auth, shields) and extensive use of Oban workers for background jobs, ConCache for distributed caching, and OpenTelemetry for observability. The repository demonstrates high engineering craftsmanship with comprehensive test coverage (ExUnit, Playwright, k6 load tests), well-structured abstractions (cache behaviour, rate limiter, write buffers, session balancer), and a clear separation of concerns between the Phoenix web layer, LiveView components, and the React dashboard.

RATING: 9.5/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
taskforcesh/bullmq ★ 9509 720 APPLICATION

BullMQ is a high-performance, distributed job queue library. It manages the lifecycle of background jobs (add, process, retry, fail, complete) using Redis as the primary backend, with an optional PostgreSQL backend. The library supports advanced features including delayed jobs, prioritized queues, recurring jobs via schedulers, parent-child job flows, deduplication, rate limiting, concurrency control, stalled job recovery, and real-time event streaming. The architecture is driven by a set of Lua scripts (for Redis) and SQL functions (for PostgreSQL) that act as the single source of truth for all atomic state transitions. The core Node.js/TypeScript implementation features a clean backend abstraction (`IQueueBackend`) allowing transparent swapping of storage backends. Official ports exist for Python, Elixir, Rust, .NET, and PHP, all sharing the same underlying Lua/SQL semantics. The codebase demonstrates high craftsmanship with several safely reusable components, including a generic Lua script loader with include resolution, a standalone backoff strategy calculator, a cooperative cancellation token, and a batch lock renewal manager. The project is actively maintained with extensive CI/CD, semantic versioning, and a large community. The primary maintenance risk is the inherent complexity of keeping six language ports in perfect feature parity.

RATING: 9.5/10 MAINT: active DRIFT: low
â–¸ 6 reusable components found
paradedb/paradedb ★ 9402 478 APPLICATION

ParadeDB is a PostgreSQL extension that provides full-text search, vector search, and analytics directly within the database, eliminating the need for a separate search service. The core engine is `pg_search`, which implements a custom index access method (`paradedb`/`bm25`) using Tantivy for search indexing and DataFusion for analytic aggregations. It supports BM25 scoring, phrase/term/boolean queries, fuzzy matching, proximity search, hybrid search (combining full-text and vector), and a rich set of tokenizers (including jieba, ICU, Lindera, ngram). The extension integrates deeply with PostgreSQL's planner through custom scan nodes (BaseScan, AggregateScan, JoinScan, MPP) to push down search, aggregation, and join operations into the index. It also offers columnar storage via fast fields, parallel query execution, and WAL-level integration for crash safety. Architecturally, the system is a Rust library compiled as a shared library loaded by PostgreSQL, using the `pgrx` framework for FFI. Entry points include SQL functions for search (e.g., `paradedb.query`, `pdb.score`), DDL for index creation, and custom plan/exec hooks. Data flows: user SQL queries are intercepted by the planner, which decides whether to use a custom scan path; if so, Tantivy or DataFusion executes the search/aggregation/join, producing tuples that are optionally post-processed by PostgreSQL (e.g., heap fetches, visibility checks). The extension relies on external dependencies: Tantivy (forked for block storage), DataFusion (for aggregate execution), ICU (for Unicode tokenization), Lindera (for Japanese tokenization), and Apache Arrow (for columnar data exchange).

RATING: 9.5/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
mikro-orm/mikro-orm ★ 9251 683 APPLICATION

MikroORM is a TypeScript ORM for Node.js implementing the Data Mapper, Unit of Work, and Identity Map patterns. It provides database abstraction across MongoDB, MySQL, MariaDB, PostgreSQL (including CockroachDB/PGlite), SQLite (including libSQL/Turso), MSSQL, and Oracle. The library features entity management via decorators or EntitySchema, relationship handling, schema generation, migrations, seeding, query building, caching, filters, custom types, embeddables, lifecycle hooks, and transaction management. Structured as a monorepo with separate packages for core functionality, database drivers, CLI, migrations, seeding, entity generation, and reflection, it emphasizes modularity and extensibility through patterns like strategy (naming strategies), decorator-based metadata, and proxy-wrapped entities for helper methods.

RATING: 9.5/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
discourse/discourse ★ 47938 9030 APPLICATION

Discourse is an open-source discussion platform built with Ruby on Rails and Ember.js. It provides a full-featured forum system with topics, posts, private messaging, user trust levels, badges, notifications, and real-time chat capabilities. The platform is designed for extensibility through a robust plugin system that allows developers to add new features without modifying the core codebase. The architecture follows a modular monolith pattern with a clear separation of concerns. The backend uses ActiveRecord for ORM, Sidekiq for background processing, and MessageBus for real-time updates. The frontend is an Ember.js application that consumes the Rails JSON API. Key design patterns include service objects for business logic, concerns for sharing model behavior, and serializers for API responses. The plugin system leverages Rails engines and Ember.js addons to integrate seamlessly with the core application. The project demonstrates strong engineering practices with comprehensive test coverage, automated database migrations, and a focus on performance through caching and background job processing. While the codebase has evolved over many years and contains some legacy code, it remains actively maintained and continues to adopt modern web technologies.

RATING: 9.4/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
uptrace/bun ★ 4954 300 APPLICATION

Bun is a SQL-first Go ORM library that provides a fluent query builder, schema migration, and support for multiple database backends including PostgreSQL, MySQL, SQLite, MSSQL, and Oracle. The architecture is modular: a core package defines query types (SelectQuery, InsertQuery, etc.) and model hooks, while separate dialect packages handle SQL syntax differences and feature flags. A custom PostgreSQL driver (pgdriver) implements the wire protocol directly, and a migration system supports both versioned and auto-generated migrations via schema diffing. The library also includes extras for OpenTelemetry tracing, structured logging (slog, zerolog), New Relic integration, and a fixture loader for test data. Bun is designed for production use with connection pooling, soft deletes, CTEs, and relation handling (belongs-to, has-many, many-to-many). The codebase is well-structured with extensive test coverage, including snapshot tests for SQL generation across all supported dialects.

RATING: 9.4/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
Maxteabag/sqlit ★ 4802 162 APPLICATION

sqlit is a Terminal User Interface (TUI) for SQL databases, inspired by lazygit. It provides a keyboard-driven interface for connecting to, querying, and managing multiple database types (including SQL Server, PostgreSQL, MySQL, SQLite, Oracle, and 20+ others). The application features a modular architecture with domains for connections, query execution, exploration, results, and shell, using a plugin-like provider system for database adapters. Built on the Textual framework, it offers Vim-style editing, autocomplete, query history, result filtering, SSH tunneling, and cloud provider integration. The codebase demonstrates strong engineering practices with reusable patterns such as a provider plugin architecture, mixin-based UI composition, protocol-driven interfaces, and secure credential management.

RATING: 9.4/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
requarks/wiki ★ 29028 3319 APPLICATION

Wiki.js is a full-featured, open-source wiki platform designed for collaborative content management. It provides a rich editing experience with Markdown, AsciiDoc, and a visual editor (ProseMirror), supporting real-time collaborative editing via Yjs and WebSocket. The system is built as a monolith with a Fastify backend, Vue 3 frontend, and PostgreSQL database, with worker threads for background tasks like notifications and webhook delivery. It features a modular architecture with pluggable storage backends (disk, S3, Azure, GCS, Git), authentication strategies (local, OIDC, SAML, LDAP, WebAuthn), analytics providers, and comment systems. The block system allows custom content components (diagrams, maps, PDFs, etc.) as LitElement custom elements. Multi-site and multi-locale support, SCIM provisioning, audit logging, rate limiting, and a scheduler for periodic tasks round out the platform. The codebase is well-structured with extensive comments, but relies on a global `WIKI` object and has complex permission logic that spans multiple layers.

RATING: 9.3/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
apache/age ★ 4795 522 APPLICATION

Apache AGE is a PostgreSQL extension that adds graph database capabilities, implementing the openCypher query language. It allows users to create, query, and manipulate property graphs (vertices and edges) directly within PostgreSQL, leveraging the database's transactional guarantees, security, and indexing. The extension provides a custom data type (agtype) for graph entities, a Cypher-to-SQL parser, and custom scan executors for efficient graph operations. It includes a comprehensive test suite, multi-language client drivers (Go, Java, Node.js, Python), and integration with NetworkX for graph analysis. The architecture is tightly integrated with PostgreSQL internals through hooks, custom nodes, and memory management, making it a production-grade graph database solution for PostgreSQL users.

RATING: 9.3/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
$ loading more...
$ submit: