19 个仓库
Standardized interfaces for decoupling application logic from specific database engines.
Distinguishing note: Focuses on the adapter pattern for storage, distinct from general database drivers.
Explore 19 awesome GitHub repositories matching data & databases · Database Adapters. Refine with filters or upvote what's useful.
Payload is a headless content management system and application framework that uses a code-first approach to define data schemas and administrative interfaces. By utilizing a centralized, type-safe configuration object, it automatically generates database schemas, API endpoints, and a fully customizable admin panel. The system is built on a database-agnostic architecture, allowing it to interface with various storage engines while providing a unified, type-safe API for server-side operations, REST, and GraphQL. What distinguishes Payload is its deep extensibility and developer-centric design.
Decouples core application logic from specific database engines using a standardized storage interface.
Next-auth is an authentication and identity management library for web frameworks. It provides a unified system for handling user sign-in and session state across server and client environments, functioning as a session management framework and an OIDC authentication library. The project distinguishes itself through a provider-based identity abstraction that supports multiple authentication methods, including OAuth, email magic links, traditional credentials, and passwordless passkeys. It allows for the registration of custom OAuth or OIDC compliant providers and offers tools to define branda
Implements a pluggable adapter system to decouple authentication data from specific database engines and ORMs.
RethinkDB is a distributed, document-oriented database designed to store and manage JSON-formatted data across scalable clusters. It utilizes a custom log-structured storage engine with B-Tree indexing to ensure high-performance disk I/O and data persistence. The system maintains high availability through automatic sharding and replication, employing a primary-replica voting consensus mechanism to handle node failures and ensure consistent cluster operations. A defining characteristic of the platform is its reactive changefeed engine, which allows applications to subscribe to live data update
Provides adapters and integration layers to connect application logic with persistent database storage systems.
This project is a reactive, offline-first NoSQL database engine designed for JavaScript applications. It provides a robust framework for managing application state by synchronizing data across browsers, mobile devices, and server-side runtimes. By treating local storage as the primary source of truth, it enables applications to remain functional without network connectivity, automatically reconciling changes with remote backends once a connection is restored. The database distinguishes itself through a modular architecture that supports cross-environment synchronization and high-performance d
Adapts SQLite interfaces to work with various platform-specific libraries through a unified adapter.
This project is a TypeScript-based architectural framework designed to implement domain-driven design and hexagonal architecture in enterprise applications. It provides a structured boilerplate that isolates core business logic from infrastructure concerns, ensuring that domain entities, use cases, and external technology adapters remain decoupled and maintainable. The framework distinguishes itself by enforcing strict architectural boundaries and dependency inversion, preventing unauthorized access to core logic from external layers. It utilizes a command-query responsibility segregation pat
Provides standardized interfaces for decoupling application logic from specific database engines and external services.
Debezium is a distributed change data capture platform that streams row-level database modifications as real-time events. By parsing database transaction logs, the system broadcasts structural and data changes to message brokers, enabling reactive processing and data integration across distributed architectures. The platform utilizes log-based capture to extract modifications directly from transaction logs, ensuring minimal impact on source system performance while maintaining the original commit order of operations. It employs database-specific connector adapters to translate proprietary bin
Uses modular adapters to translate proprietary database log formats into a unified event structure.
Keystone is a GraphQL headless content management system and Node.js backend framework. It functions as a schema-driven data manager that automatically generates a GraphQL API and a React administrative dashboard based on a central data model configuration. The system uses an adapter-based database abstraction to decouple core logic from storage layers and a storage-provider abstraction for managing media assets via local or cloud drivers. It distinguishes itself through a component-based field rendering system and a hook-based middleware pipeline for data validation and automation. The fram
Implements an adapter pattern to decouple core logic from specific database engines.
Mikro-ORM is a TypeScript-based object-relational mapping system that provides a unified persistence layer for Node.js applications. It translates TypeScript entities into relational or document-based database schemas, supporting a variety of engines including PostgreSQL, MySQL, MariaDB, MS SQL Server, SQLite, and MongoDB. The project implements the data mapper pattern to decouple in-memory domain models from the database persistence layer. It utilizes a unit of work pattern to track entity changes in memory and commit them in a single coordinated database transaction. The library covers com
Implements a standardized adapter layer to decouple application logic from multiple supported database engines.
AdminJS is a Node.js admin panel and database management UI that provides a visual interface for performing create, read, update, and delete operations based on existing database models. It functions as a low-code backend dashboard and internal tool builder, allowing developers to create management interfaces for monitoring and controlling application state without writing custom frontend code. The project enables the creation of custom business logic workflows and system dashboards, providing non-technical team members with a secure way to manage application data. It supports the development
Provides standardized interfaces that decouple the admin UI from specific database engines.
Ecto is an Elixir database toolkit that maps database rows to Elixir structs and validates data changes through changesets before persistence. It provides a language-integrated query syntax for composing database queries, building them incrementally and securely with compile-time expansion into safe SQL. The toolkit connects to multiple database backends including PostgreSQL, MySQL, MSSQL, SQLite3, ClickHouse, and ETS through a pluggable adapter interface. It supports eager and lazy preloading of associated records to eliminate N+1 query problems, and can store nested data structures as embed
Connects to multiple database backends through a pluggable adapter interface.
Moleculer is a Node.js microservices framework designed for building distributed systems. It functions as a distributed service broker, task orchestrator, and service mesh framework, enabling a decentralized architecture with built-in service discovery and load balancing. The project differentiates itself through a pluggable transport layer supporting protocols such as NATS, Redis, TCP, and Kafka, as well as a dedicated microservices API gateway that maps external HTTP and WebSocket requests to internal service actions. It includes built-in fault tolerance mechanisms, including circuit breake
Provides standardized interfaces to decouple service logic from specific database engines like MongoDB, SQL, and CouchDB.
CanCan 是一个用于 Ruby on Rails 应用程序的授权库,提供了一个用于定义用户权限的声明式框架。它作为一个基于角色的访问控制系统,通过将所有能力定义集中在一个位置,将安全逻辑与控制器解耦。 该库通过将权限规则转换为数据库驱动的过滤器而脱颖而出。这允许系统仅检索用户根据属性条件和定义的范围被允许查看的特定记录,而不是在数据加载后验证权限。 该框架涵盖了通过自动资源加载和强制权限检查进行的授权执行。它包括用于管理权限优先级、解析自定义能力提供程序以及全局处理访问拒绝异常以触发重定向或错误消息的机制。
Connects authorization logic to various database object mappers for consistent permission checks.
Harlequin is a terminal-based SQL IDE that runs queries against DuckDB and SQLite databases, with a plug-in adapter system for connecting to additional database engines. It provides a full-screen text editor with syntax highlighting and fuzzy autocomplete for writing SQL, and displays query results in a scrollable table within the terminal. The application distinguishes itself through a tree-based data catalog that lets you browse database schemas, local files, and remote S3 objects, with the ability to insert or copy paths directly into the query editor. It supports custom key bindings throu
Provides a plug-in adapter system for connecting to multiple database engines from a terminal SQL IDE.
Seek-Tune is an audio fingerprinting library that implements a Shazam-like algorithm for identifying songs from audio recordings. It generates acoustic fingerprints from audio signals and matches them against a known database to recognize songs. The library converts audio into a time-frequency spectrogram using FFT-based frequency analysis, then extracts peak points to create compact, unique fingerprints for each song. It uses combinatorial hashing to combine nearby peak pairs into hash values with time offsets, enabling efficient database lookup and matching through a peak-pair matching algo
Provides a pluggable adapter interface for storing fingerprints in multiple database backends.
Waterline 是一个基于适配器的 Node.js 数据库库和对象关系映射器(ORM)。它作为一个多数据库持久化层,将标准方法调用转换为针对 SQL 和 NoSQL 数据库的特定查询。 该库为管理不同存储(包括 MySQL、PostgreSQL、MongoDB 和 Microsoft SQL Server)提供了统一的接口。这种架构允许在单个应用中集成多个数据库后端,并通过更换适配器而非修改业务逻辑来简化数据库迁移。 该项目涵盖了关系型和文档型映射,为数据存储和检索提供了统一的语法。它利用模式驱动的对象映射来弥合数据库表或集合与 JavaScript 对象之间的鸿沟。
Functions as a persistence layer using standardized interfaces to decouple application logic from specific database engines.
Phinx 是一个 PHP 数据库迁移和版本控制工具,用于跟踪和部署跨不同环境的数据库模式结构变更。它作为一个数据库版本控制系统,允许通过 PHP 代码定义和管理结构修改。 该工具提供了数据库模式版本控制和回滚机制,使用户能够撤销之前应用的迁移并将数据库恢复到特定的先前状态。此外,它还包含一个数据库填充器,用于使用初始基准记录或虚拟数据填充表。 该系统作为一个独立的命令行界面运行,管理迁移的顺序执行,并通过目标数据库内的元数据表跟踪当前的模式版本。
Provides standardized interfaces to decouple migration logic from specific database engines.
该项目是用于在 Next.js 框架中管理用户身份验证和会话状态的参考实现与样板代码。它展示了如何集成 NextAuth.js 来保护路由并处理身份验证的实践案例。 该仓库演示了多种身份验证工作流,包括与第三方提供商的 OAuth 身份集成、使用电子邮件魔法链接的无密码身份验证,以及传统的基于凭据的登录。它特别展示了如何用自定义品牌登录页面替换默认的身份验证界面。 该实现涵盖了广泛的功能,包括通过适配器实现数据库会话持久化、访问令牌轮换,以及使用环境变量进行提供商配置。它还包含了将多种身份验证方法链接到单个用户配置文件的示例,并集成了用于记录身份验证事件的可观测性工具。
Uses standardized adapter interfaces to decouple authentication logic from specific database engines.
bknd is a self-hosted backend-as-a-service platform and serverless backend framework that provides an integrated environment for managing databases, authentication, and file storage. It functions as a headless CMS and a portable API engine designed to run across various JavaScript runtimes, including Node.js, Bun, Cloudflare Workers, and AWS Lambda. The project distinguishes itself through a combination of schema-driven API generation and a built-in database management UI. It enables the definition of data structures either programmatically via a type-safe API or visually through an administr
Provides a translation layer to support multiple database dialects through a unified interface for queries and mutations.
pg-boss is a background task scheduler and distributed task queue that uses PostgreSQL as a reliable message broker for asynchronous job processing. It provides a system for distributing work across multiple application instances, ensuring exactly-once delivery through atomic database transactions. The project includes a cron job scheduler for automating recurring tasks and a PostgreSQL pub-sub system for fan-out event distribution. It also features a web-based management dashboard for monitoring queue statistics and controlling job lifecycles, including manual retries and cancellations. Cap
Includes adjustable fetch and mutation strategies to maintain compatibility across database engines.