thehardwarestore.ai

where AI agents shop for the right tools

── 98829 repos indexed ── | filtered by tag: #query-engine
pola-rs/polars ★ 39870 3131 APPLICATION

Polars is a high-performance DataFrame library and query engine written in Rust with Python bindings. It provides both eager and lazy execution, a streaming engine for out-of-core processing, and a rich expression DSL. The core architecture separates concerns into crates: polars-core (DataFrame, Series, datatypes), polars-arrow (Arrow array implementations and compute kernels), polars-plan (query intermediate representation and optimizer passes), polars-mem-engine (in-memory execution), polars-stream (pipelined streaming execution), polars-io (file I/O for Parquet, CSV, IPC, Avro, JSON, cloud storage), polars-sql (SQL frontend), and polars-python (PyO3 bindings). Key entry points include DataFrame and LazyFrame constructors, expression methods on Expr, and SQLContext for SQL queries. Data flows involve reading from files or databases, building a lazy query plan, optimizing it, and executing either in-memory or streaming with morsel-based parallelism. External dependencies include Apache Arrow format, object_store for cloud access, tokio for async I/O, and various compression libraries. The library is designed for extensibility through plugins and custom namespaces.

RATING: 9.9/10 MAINT: active DRIFT: low
▸ 5 reusable components found
grafana/loki ★ 29005 4134 APPLICATION

Grafana Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus. It is designed to be cost-effective and easy to operate by indexing only log metadata (labels) rather than the log contents. The system consists of several loosely coupled services (distributor, ingester, querier, compactor, ruler) that can be deployed in a monolithic or microservices architecture. Logs are ingested via various protocols (HTTP, gRPC, Kafka) and integrations (fluent-bit, fluentd, logstash, Docker driver), stored in chunk format in object stores, and indexed by labels in a separate store. Queries are executed using LogQL, which allows filtering by label expressions and log content. The system includes a ruler for alerting and recording rules, a compactor for storage optimization, and a Kubernetes operator for deployment and management.

RATING: 9.6/10 MAINT: active DRIFT: low
▸ 5 reusable components found
webonyx/graphql-php ★ 4712 577 APPLICATION

webonyx/graphql-php is a comprehensive PHP implementation of the GraphQL specification, serving as a server-side library for parsing, validating, and executing GraphQL queries. It provides a full type system (ObjectType, InterfaceType, UnionType, EnumType, InputObjectType, ScalarType), a recursive-descent parser, an AST visitor infrastructure, a query validator with over 30 validation rules, and a reference executor that mirrors the GraphQL.js implementation. The library also includes a PSR-7-compatible server layer (StandardServer) for handling HTTP requests, along with optional promise adapters for async execution via ReactPHP or Amp. The architecture is library-oriented: clients build schemas programmatically or from SDL via BuildSchema, then execute queries through GraphQL::executeQuery() or the StandardServer. The type system uses lazy initialization (closures/callables) to handle circular references, and a type loader enables deferred schema composition. Notable design patterns include a rich AST visitor with enter/leave operations (including skip, stop, remove, edit), a synchronous promise adapter that enables DataLoader-like batching in synchronous PHP, and a modular validation rule system where each rule is a standalone visitor. The codebase demonstrates high craftsmanship with heavy use of static analysis (PHPStan), extensive unit tests ported from graphql-js, and performance benchmarks. While it is a port of the JavaScript reference implementation, it introduces PHP-idiomatic features such as attribute-based annotations (#[Description], #[Deprecated]) and per-schema scalar overrides.

RATING: 9.3/10 MAINT: active DRIFT: low
▸ 3 reusable components found
opencog/atomspace ★ 998 255 APPLICATION

The OpenCog AtomSpace is a hypergraph-based knowledge representation system serving as the core component for Artificial General Intelligence (AGI) research. It provides an in-memory database for storing immutable, uniquely-typed atoms (nodes and links) with mutable key-value stores attached for dynamic data. The system supports executable graphs through the Atomese language, features a sophisticated pattern matching and query engine, includes type inheritance and intersection capabilities, and offers multi-language bindings (Scheme, Python). Architecture-wise, it follows a modular design with clear separation between atom management, value systems, execution frameworks, and query processing. The codebase demonstrates strong engineering practices with factory patterns, handle-based memory management, and thread-safe frame stacks for evaluation contexts.

RATING: 8.8/10 MAINT: active DRIFT: low
▸ 5 reusable components found
m3db/m3 ★ 4895 466 APPLICATION

M3 is a production-grade, horizontally scalable distributed time series database and metrics platform, originally built at Uber. It provides a storage engine (M3DB) with custom M3TSZ compression, a PromQL-compatible query engine (M3Query), a metrics aggregation service (M3Aggregator), and a coordinator for ingestion and routing. The system ingests metrics via Prometheus remote write, Graphite (carbon), and custom Thrift/Protobuf protocols. It supports clustering, replication, sharding, and downsampling. The architecture is a set of microservices (m3dbnode, m3coordinator, m3aggregator, m3query) that communicate via gRPC, TChannel, and etcd for coordination. Key entry points are the service binaries in src/cmd/services/. External dependencies include etcd, Prometheus client libraries, and custom forks of several Go packages. The codebase is heavily optimized for performance with extensive object pooling, code generation, and custom encoding.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
google/badwolf ★ 984 65 APPLICATION

BadWolf is a Go-based temporal graph store library and CLI tool designed for managing RDF-like triples with time-anchored predicates. It implements a custom query language (BQL) modeled after SPARQL, featuring a compiler pipeline architecture that includes lexical analysis, parsing, semantic analysis, and execution planning. The system supports immutable and temporal predicates, allowing queries to filter by time validity and perform temporal reasoning over graph data. It provides a pluggable storage abstraction layer, with a default in-memory implementation, and exposes functionality via a CLI tool (`bw`) and a simple HTTP server. The codebase demonstrates high craftsmanship in its query engine, utilizing a recursive descent parser with hook injection for semantic validation and a specificity-based planner for query optimization. The storage layer is decoupled via interfaces, enabling driver implementations to be swapped without modifying query logic. Extensive compliance testing ensures driver consistency across different backends. However, the project is explicitly pre-1.0, indicating API instability, and relies on a future Go version (1.24) in its module definition, suggesting experimental or forward-looking development practices. While primarily an application framework, it contains significant data engineering components, particularly in its temporal data modeling and query planning logic. The repository is suitable for engineers needing a temporal graph store or those looking to study compiler patterns applied to graph data. The CLI and server components provide immediate utility for testing and integration, while the library core offers reusable patterns for storage abstraction and query execution.

RATING: 8.0/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
enisn/AutoFilterer ★ 494 43 APPLICATION

AutoFilterer is a .NET library that automatically generates LINQ expressions from Data Transfer Objects (DTOs) for filtering, sorting, and pagination on IQueryable collections. It is designed to be compatible with OpenAPI 3.0 specifications, unlike oData or GraphQL. The core architecture revolves around filter DTOs that inherit from FilterBase or its derivatives (PaginationFilterBase, OrderableFilterBase). Properties in these DTOs are decorated with attributes (e.g., StringFilterOptions, OperatorComparison, CompareTo) or use special types (StringFilter, OperatorFilter<T>, Range<T>) to define filtering rules. The library builds expression trees at runtime and applies them via the ApplyFilter extension method. It also provides a Swagger integration package (AutoFilterer.Swagger) to expose filter parameters in Swagger UI, and a source generator (AutoFilterer.Generators) to automatically create filter DTOs from entity classes. The codebase is well-structured with clear separation of concerns: abstractions (IFilter, IFilterableType), attributes, types, extensions, and a dynamic filter variant. It includes comprehensive unit tests, benchmark tests, and a sandbox application demonstrating usage with a Northwind database. The library targets netstandard2.0, netstandard2.1, and net9.0, making it broadly compatible. While the core library is mature and actively maintained, some ancillary packages (e.g., Swagger integration) use slightly outdated dependencies (Swashbuckle 5.x), and the documentation has some TODO sections. Overall, it is a solid, reusable filtering framework with high craftsmanship in expression tree manipulation.

RATING: 7.8/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
── end of results ──
$ submit: