thehardwarestore.ai

where AI agents shop for the right tools

── 99268 repos indexed ── | filtered by tag: #sqlite
colbymchenry/codegraph ★ 73135 4694 APPLICATION

CodeGraph is a local-first, cross-language code intelligence engine designed to give AI coding agents structured knowledge of a codebase: symbols, references, call graphs, import graphs, inheritance, routes, and framework-specific dynamic dispatch. It indexes source with tree-sitter WASM grammars (or an optional native Rust kernel for speed), stores the resulting graph in SQLite with FTS5, then resolves cross-file references and synthesizes edges for indirect patterns like web frameworks, DI containers, callbacks, and event dispatch. The primary interfaces are a CLI (codegraph), an MCP server exposing tools for agents, an embeddable programmatic API, and a Svelte web viewer.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 6 reusable components found
tobymao/sqlglot ★ 9682 1334 APPLICATION

SQLGlot is a pure-Python SQL parser, transpiler, optimizer, lineage analyzer, diff engine, and in-process executor with support for 30+ SQL dialects including Snowflake, BigQuery, DuckDB, Spark, Trino, Postgres, and MySQL. The core pipeline tokenizes SQL source, parses it into a rich expression AST, applies optimizer passes such as column qualification, predicate pushdown, subquery decorrelation, type annotation, and simplification, then generates dialect-specific SQL. It also includes a planner/executor for running queries against Python data structures and a CLI for transpilation and tokenization. Despite the breadth of dialect coverage, the architecture centralizes shared language machinery in base tokenizer/parser/generator classes, with dialects as declarative overrides, and the library has zero required runtime dependencies.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 6 reusable components found
mackyle/sqlite ★ 1958 511 APPLICATION

This repository contains the SQLite embedded SQL database engine source code, mirrored from the actively maintained SQLite project. The core is a C library that parses SQL, compiles it into a custom bytecode virtual machine (VDBE), and executes it against a B-tree storage layer backed by a transactional pager and a pluggable OS abstraction (VFS). Primary entry points are the public C API in src/sqlite.h.in, the sqlite3 command-line shell built from src/shell.c.in, and the init functions of many loadable extensions.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 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
groue/GRDB.swift ★ 8691 1070 APPLICATION

GRDB.swift is a mature Swift library providing a comprehensive toolkit for SQLite databases, designed for application development on Apple platforms (iOS, macOS, tvOS, watchOS) and Linux. It offers both low-level access to SQLite (Database, Statement, Row, DatabaseValue) and high-level ORM-like abstractions: record protocols (FetchableRecord, PersistableRecord, TableRecord), a fluent query interface with associations (belongsTo, hasOne, hasMany, hasManyThrough), migrations, full-text search (FTS3/4/5), and reactive observation via ValueObservation and Combine publishers. The architecture is protocol-driven and composable, with a clear separation between core database access, query interface SQL generation, record persistence, and observation layers. In production, this is a library rather than a standalone service; it is embedded in Swift applications to manage SQLite databases. It handles connection serialization (DatabaseQueue), concurrent reads (DatabasePool), WAL snapshots, transactions, savepoints, schema introspection, custom SQL functions, and database backup. The codebase is heavily tested with hundreds of unit tests, crash tests, and performance benchmarks comparing against Core Data, Realm, FMDB, and SQLite.swift. The library is actively maintained (v7.11.1, Swift 6.1+, Xcode 16.3+), with low technical drift and a strong emphasis on API stability and performance. While not a data-research repository, its performance benchmarking and reactive observation features make it relevant for data-driven applications.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
ankitects/anki ★ 31890 3316 APPLICATION

Anki is a mature, cross-platform spaced-repetition flashcard application. While it is fundamentally an end-user product, it contains significant embedded algorithmic and data-analysis components (FSRS memory-state scheduling, revlog analytics, retention simulation) that make it a hybrid of application and computational research. The production system consists of a Rust backend that owns all core logic, scheduling, SQLite persistence, sync, and media management; a Python Qt desktop frontend (`aqt`); a TypeScript/Svelte web UI for modern editors, graphs, deck options, and image occlusion; and a standalone sync server binary. Communication between languages is driven by protobuf service definitions, with generated bindings for Rust, Python, and TypeScript.

RATING: 9.7/10 MAINT: active DRIFT: low
▸ 5 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
pocketbase/pocketbase ★ 61276 3724 APPLICATION

PocketBase is an open-source backend-as-a-service (BaaS) platform written in Go. It provides a complete backend solution including a REST API, embedded SQLite database, authentication (password, OAuth2, OTP, MFA), file storage (local or S3), real-time subscriptions via SSE, cron jobs, email sending, and an admin dashboard UI. The architecture is a monolithic Go application with a plugin system (JavaScript VM, automigration, self-update) and a custom reactive JavaScript frontend for the admin panel. Key entry points are the CLI commands (`serve`, `superuser`) and the Go library package for embedding. The codebase is well-structured with clean separation of concerns: `core/` contains models and business logic, `apis/` handles HTTP endpoints, `tools/` provides reusable utilities (hook system, router, auth providers, search/filter, security, filesystem abstraction), and `ui/` is the frontend. It is production-ready with extensive test coverage and active maintenance.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 5 reusable components found
atuinsh/atuin ★ 31955 995 APPLICATION

Atuin is a multi-crate Rust workspace implementing a shell history replacement tool with encrypted sync, a background daemon, a self-hosted server, and an AI assistant. The system replaces the default shell history with a SQLite database that records additional context (exit codes, working directories, session IDs, command durations) and provides fast, fuzzy search via a TUI. History is captured through shell hooks (bash, zsh, fish, nushell, xonsh, PowerShell) and optionally via a PTY proxy that captures command output for full-text search. A background daemon (atuin-daemon) manages history journaling, output capture persistence (Fjall blob store + SQLite FTS5 index), AI session capture from coding agents (Claude Code, Codex, opencode, Pi), and encrypted record sync with the server. The server (atuin-server) is an Axum HTTP application supporting SQLite, Postgres, and MySQL backends, providing user authentication, record sync endpoints, and capability negotiation. The AI subsystem (atuin-ai) includes a TUI chat interface, inline command mode, MCP server, skills system, and permissions framework for safe tool execution. Key entry points include the CLI binary (crates/atuin/src/main.rs), daemon boot (crates/atuin-daemon/src/daemon.rs), server launch (crates/atuin-server/src/bin/main.rs), and AI inline command (crates/atuin-ai/src/commands/inline.rs). External dependencies include SQLite, tokio, tonic (gRPC), Axum, serde, paseto, and various shell-specific integrations.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 4 reusable components found
SeaQL/sea-orm ★ 9913 738 APPLICATION

SeaORM is a production-grade async ORM for Rust, supporting MySQL, PostgreSQL, and SQLite. It provides a rich entity model with derive macros, a fluent query builder, migration framework, code generation from database schemas, and an RBAC authorization layer. The architecture is modular: core ORM crate (sea-orm), derive macros (sea-orm-macros), code generation (sea-orm-codegen), migration framework (sea-orm-migration), synchronous variant (sea-orm-sync), and integrations (sea-orm-rocket). Key patterns include ActiveModel for CRUD, ActiveModelEx for nested mutations, dynamic entities for runtime schemas, and a proxy database trait for custom backends. The codebase is well-tested with integration tests across multiple database backends and includes numerous example applications for web frameworks like Axum, Actix, Rocket, and Loco. The repository is primarily an application library (ORM framework) with no data research components. It is actively maintained with recent releases and a large community. The code demonstrates high craftsmanship with clean abstractions, extensive use of Rust's type system, and careful handling of async/sync duality. However, the duplication between the async and sync variants (sea-orm-sync) introduces maintenance overhead and risk of drift.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 3 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
microsoft/winget-cli ★ 26490 1810 APPLICATION

The microsoft/winget-cli repository is the official source code for the Windows Package Manager (winget) CLI tool. Its primary function is to provide a command-line interface for discovering, installing, upgrading, removing, and configuring software packages on Windows 10 and Windows 11. Beyond simple package management, it includes a full Desired State Configuration (DSC) engine, allowing users to define system state declaratively in YAML files. It also exposes COM APIs (Microsoft.Management.Deployment and Microsoft.Management.Configuration) for programmatic access, PowerShell cmdlets (Microsoft.WinGet.Client), and an MCP server for AI tool integration. The codebase follows a monolithic core architecture with multiple frontends. The core logic resides in AppInstallerCommonCore (utilities, networking, manifest parsing) and AppInstallerRepositoryCore (SQLite indexes, REST clients, source management). The CLI frontend (AppInstallerCLI) orchestrates workflows, while the COM and PowerShell layers provide alternative interfaces. Data flows from user input through command handlers, workflow engines, source resolvers, and finally to installer execution or configuration application. The system heavily relies on SQLite for local package indexes, pinning data, and configuration history, and uses REST APIs for remote package sources. Engineering Quality: The codebase demonstrates strong engineering practices. Notable patterns include a robust SQLite schema versioning system (ISQLiteIndex with versions 1.0-2.1), a cross-process synchronization primitive (CrossProcessLock), HTTP Range Request streaming for efficient installer downloads (HttpRandomAccessStream), and a generic CLI table output formatter. The YAML parser is custom-built to handle various encodings and provide precise error reporting. The dependency graph implementation is a clean, self-contained module for cycle detection and topological sorting. These components are well-isolated and demonstrate patterns applicable to a wide range of Windows and CLI development projects. The project is actively maintained by Microsoft with a high volume of commits, extensive CI/CD pipelines (Azure Pipelines, GitHub Actions), and a large community (26k+ stars, 1300+ open issues). It includes comprehensive unit tests (Catch2), end-to-end tests (NUnit), and fuzzing harnesses (OneFuzz). The technical drift is low, with clear migration paths for schema versions and active dependency management.

RATING: 9.4/10 MAINT: active DRIFT: low
▸ 6 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
usememos/memos ★ 63487 4806 APPLICATION

Memos is a self-hosted, full-stack memo/note-taking application with a Go backend and React/TypeScript frontend. It provides rich features including markdown editing with inline images and math, attachment management (images, video, audio, motion photos), spaces for collaboration, calendar and map views, AI-powered audio transcription, webhooks, SSO/OAuth2 identity providers, and a CEL-based filter engine for advanced querying. The architecture is layered with enforced import rules: internal utilities, provider interfaces (AI, storage, IDP), core business logic, a store layer with driver abstraction supporting SQLite, MySQL, and PostgreSQL, and a server layer exposing ConnectRPC/gRPC and HTTP APIs. The frontend uses CodeMirror 6 for the editor, TanStack Query for data fetching, and extensive custom hooks and UI primitives. The codebase is well-tested with unit, integration, and benchmark tests across both backend and frontend. Notable engineering highlights include a custom Common Expression Language (CEL) engine that compiles user-defined filters to SQL, a sliding window rate limiter, a thread-safe in-memory cache with TTL, and a protocol abstraction layer that transparently handles gRPC and ConnectRPC headers.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 5 reusable components found
actualbudget/actual ★ 29421 3121 APPLICATION

Actual Budget is a mature, open-source personal finance application that operates on a local-first architecture with optional multi-device sync. In production, it provides envelope and tracking budgeting, transaction management, bank account synchronization via GoCardless/SimpleFIN/Pluggy, scheduled transactions, an advanced rules engine for auto-categorization, custom reports and dashboards (including Monte Carlo forecasting), and multi-user sync server capabilities. The system is built as a monorepo with distinct packages: `loot-core` (business logic, SQLite database, CRDT sync, custom AQL query language), `desktop-client` (React SPA with Redux and TanStack Query), `desktop-electron` (Electron wrapper), `mobile-client` (Capacitor-based), `sync-server` (Express with authentication and bank integrations), `cli` (headless management), `api` (public npm package), `component-library` (design system), and `crdt` (conflict-free replicated data type). Data flows from user input or bank imports into a local SQLite store, with optional sync to other devices via a CRDT protocol over a WebSocket/HTTP server. The project demonstrates high engineering craftsmanship with extensive tests, custom but well-documented systems, and a strong modular architecture. It is not a data research project.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 6 reusable components found
piccolo-orm/piccolo ★ 1940 116 APPLICATION

Piccolo is an async-first Python ORM and query builder targeting PostgreSQL, SQLite, and CockroachDB. It provides a declarative table definition system, automatic schema migrations, a CLI for project scaffolding, user authentication, fixture dump/load, and Pydantic model generation. The codebase is well-structured with clean abstractions (column types, query delegates, engine abstraction, migration auto-generation) and an extensive test suite covering multiple database backends. It is actively maintained with frequent releases and supports recent Python and database versions.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
hoangnb24/repository-harness ★ 1218 432 APPLICATION

This repository implements a 'Repository Harness'—a Rust-based CLI framework designed to make software codebases legible and operable for AI agents. It functions as a control plane for agent-assisted development, managing project state (stories, decisions, traces) through a combination of Git-native documents and a durable SQLite layer. The system enforces architectural rules and invariants via mechanical validation rather than process bureaucracy, distinguishing between a generic 'Core' payload and product-specific 'Consumer' work (e.g., Symphony). Key capabilities include self-updating binaries, semantic changeset replay for auditability, and explicit agent skills for onboarding and auditing. Architecturally, the codebase follows a clean separation of concerns with a Rust workspace containing `harness` (core logic) and `harness-cli` (interface). It utilizes a repository pattern to decouple business logic from database access, implementing transactional logging via JSONL changesets that support idempotent replay. The tool manages its own lifecycle through a robust installer that supports cross-platform profiles (Core vs. Core+CLI) and handles file conflicts via deterministic three-way merges. Evidence capsules and epoch fencing ensure data integrity during agent interactions and state transitions. The project demonstrates a high level of engineering maturity through its focus on reproducibility and trust boundaries. It includes extensive documentation (ADRs, execution plans, stories) and a comprehensive test suite covering installer contracts, changeset rebuilds, and boundary checks. The separation of the 'Symphony' product into a distinct repository while retaining protocol primitives in the core highlights a mature approach to library vs. application boundaries.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
zombiezen/go-sqlite ★ 982 41 APPLICATION

zombiezen/go-sqlite is a Go library providing low-level bindings to SQLite 3 using the CGo-free modernc.org/sqlite implementation. It offers direct access to SQLite features including connection management, statement execution, blob I/O streaming, online backup API, user-defined functions (scalar and aggregate), session API for changesets, virtual table support, and schema migration tools. The architecture follows a modular design with core sqlite package for basic operations, sqlitex for extended utilities (connection pooling, execution helpers), sqlitefile for blob-backed buffers, and sqlitemigration for schema migrations. The library is safe for concurrent use through connection pooling and proper error handling, with comprehensive test coverage demonstrating its reliability.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 4 reusable components found
saulpw/visidata ★ 9341 374 APPLICATION

VisiData is a terminal-based interactive spreadsheet application for exploring, cleaning, restructuring, and analyzing tabular data. It provides a real-time curses interface for loading data from diverse sources (CSV, JSON, Excel, SQL databases, APIs, etc.), applying transformations via hundreds of keyboard-driven commands (sort, filter, pivot, melt, unfurl, etc.), and saving results. The architecture centers around a Sheet/Column abstraction with a plugin system for loaders, features, and specialized applications (vgit for Git, vdsql for SQL). Key strengths include its extensible command system, dynamic type inference, and reversible operations via undo/redo. While the core is cohesive, the extensive optional dependencies and experimental features introduce some maintenance complexity.

RATING: 9.2/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
$ loading more...
$ submit: