thehardwarestore.ai

where AI agents shop for the right tools

── 99049 repos indexed ── | filtered by tag: #schema
Automattic/mongoose ★ 27461 4052 APPLICATION

Mongoose is a MongoDB Object Document Mapper (ODM) for Node.js, providing a schema-based solution to model application data. It wraps the official MongoDB Node.js driver, adding a rich layer of schema validation, type casting, query building, middleware (pre/post hooks), population (reference resolution), change tracking, and virtuals. The library is designed to be used both with CommonJS and ESM, and includes extensive TypeScript type definitions for safe type inference. The architecture is centered around a `Mongoose` singleton that manages connections, models, and global configuration, with core classes such as `Schema`, `Model`, `Document`, `Query`, and `Aggregate`. External dependencies include the MongoDB Node.js driver, the BSON library, and the `kareem` middleware package. The repository also includes a comprehensive test suite covering unit, integration, and TypeScript type tests, as well as benchmarks and a documentation website.

RATING: 9.6/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
open-circle/valibot ★ 9039 400 APPLICATION

Valibot is a modular, type-safe schema validation library for TypeScript with zero external dependencies. It provides a comprehensive set of schemas (string, number, object, array, union, etc.), validation actions (email, minLength, regex, etc.), transformation actions (toNumber, toUpperCase, parseJson, etc.), and composition methods (pipe, fallback, forward, cache). The library is tree-shakeable, supports both sync and async validation, and achieves 100% test coverage. Its architecture follows a consistent action/schema object pattern with a `~run` method for runtime validation and extensive TypeScript generics for type inference (InferInput, InferOutput, InferIssue). The repository is a monorepo containing the core library, a documentation website built with Qwik, a codemod for migrating from Zod to Valibot, a JSON Schema conversion package, and an i18n package for localized error messages. The primary entry point is `library/src/index.ts`, which re-exports all schemas, actions, methods, and utilities. Data flows involve defining schemas, optionally piping actions, and then calling `parse` or `safeParse` to validate input against the schema. The library implements the Standard Schema specification for interoperability.

RATING: 9.4/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
python-jsonschema/jsonschema ★ 4990 702 APPLICATION

This is a mature, production-grade Python library implementing JSON Schema validation across multiple drafts (3, 4, 6, 7, 2019-09, 2020-12, and a v1 proposal). It provides a clean API with versioned validator classes (e.g., Draft202012Validator), a simple validate() function, and a deprecated CLI. The architecture is modular, separating core validation logic in _keywords.py, type checking in _types.py, format validation in _format.py, and utilities in _utils.py. It relies on the external `referencing` library for $ref resolution and uses `attrs` for class definitions. The library is thoroughly tested against the official JSON Schema Test Suite, includes performance benchmarks, and supports customization via validator creation/extension patterns. It requires Python >=3.12 and is actively maintained with CI covering Python 3.12-3.15 and PyPy. The codebase exhibits strong engineering practices: immutability, protocol-based interfaces, clear deprecation warnings, and comprehensive error handling.

RATING: 9.4/10 MAINT: active DRIFT: low
â–¸ 1 reusable components found
lk-geimfari/mimesis ★ 4840 361 APPLICATION

Mimesis is a Python library for generating high-quality, locale-aware fake data, intended for use in testing, database seeding, API mocking, and data anonymization. Unlike simpler lorem-ipsum generators, it produces realistic names, addresses, dates, financial data, internet-related strings, and more, across 47 locale variants. The architecture is modular: locale-independent and locale-dependent providers (e.g., Person, Address, Internet) load curated JSON datasets, while a suite of schema tools (Field, Fieldset, Schema, SchemaBuilder) allows declarative generation of flat or relational synthetic datasets with lazy evaluation, dependency resolution, and export to CSV/JSON/pickle. A custom Random class with weighted selection and deterministic seeding ensures reproducibility, and optional plugins integrate with factory_boy and pytest-randomly. The codebase is well-structured, extensively typed (mypy strict), and thoroughly tested, with a strong emphasis on performance (~20-30x faster than comparable libraries like Faker). External runtime dependencies are minimal; the only optional ones are pytz and factory-boy.

RATING: 9.1/10 MAINT: active DRIFT: low
â–¸ 3 reusable components found
dry-rb/dry-schema ★ 492 123 APPLICATION

dry-schema is a Ruby library for data validation and schema definition, not an application or data pipeline. It provides a DSL to describe nested data structures with type coercion and predicate-based rules, then processes input hashes through a multi-step pipeline (key coercion, value coercion, rule application) producing an immutable result with errors, messages, and hints. It exposes Dry::Schema.define for plain schemas, Dry::Schema.Params for HTTP parameter coercion, and Dry::Schema.JSON for JSON payloads, plus optional extensions for monads, structs, JSON Schema generation, info, and hints.

RATING: 9.1/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
formkit/formkit ★ 4756 207 APPLICATION

FormKit is a form-building framework for Vue and React, organized as a monorepo of 15+ packages. The architecture is a core (framework-agnostic) node tree that manages form state, validation, schema rendering, and plugins, with separate packages for framework bindings (Vue, React, Nuxt), inputs, validation rules, internationalization (30+ locales), icons, themes (CSS, Tailwind, UnoCSS), addons (multi-step, floating labels, localStorage), a CLI for scaffolding and theme generation, and Zod integration. It uses a schema system (JSON-serializable) to define form layouts and conditional rendering, and a plugin/feature pattern for extensibility. The repository demonstrates high engineering quality: extensive test coverage (unit, type, e2e memory leak tests), well-structured abstractions (observers, message stores, composables), and cross-framework consistency. However, there are minor inconsistencies (license declared as UNLICENSED despite README claiming MIT, incomplete translations in some locales, deprecated packages like @formkit/tailwindcss, and potential brittleness in remote API dependencies in the CLI). Overall, it's a production-grade form solution with solid reusability of its core patterns.

RATING: 8.7/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
plexinc/papr ★ 498 24 APPLICATION

Papr is a lightweight TypeScript library that provides type-safe schemas and JSON Schema validation for MongoDB collections. It wraps the official MongoDB Node.js driver, offering a familiar API (find, insertOne, updateOne, etc.) while automatically generating JSON Schema validators that are applied to MongoDB collections via `collMod` or `createCollection`. The library supports a wide range of BSON types, timestamps, defaults (static, dynamic, async), hooks (before/after), and custom filter types for enhanced type safety in queries and updates. It is designed as a thin, performant alternative to Mongoose, offloading validation to the MongoDB server. The codebase is well-structured with modular source files, extensive unit and type tests, benchmarks comparing performance against raw MongoDB driver and Mongoose, and comprehensive documentation. It is actively maintained with CI/CD pipelines, automated releases, and dependency management via Renovate.

RATING: 8.5/10 MAINT: active DRIFT: low
â–¸ 4 reusable components found
taxilang/taxilang ★ 199 7 APPLICATION

The Taxi repository implements a comprehensive language workbench for the Taxi DSL (Domain Specific Language) used to define data models, service contracts, and API interfaces with semantic meaning. It features a polyglot architecture with JVM-based compiler, type system, and language server, alongside TypeScript/JavaScript client tools and documentation. The system provides code generation for multiple targets (Java, Kotlin, TypeScript, OpenAPI, Protobuf, etc.), IDE integration via LSP, a CLI for project management, and a query language (TaxiQL). Key strengths include a sophisticated structural type system, expression compilation with intelligent caching and error handling, reactive LSP architecture preventing excessive recompilation, and a clean plugin system for extensibility.

RATING: 8.3/10 MAINT: active DRIFT: low
â–¸ 5 reusable components found
octokit/graphql-schema ★ 205 62 APPLICATION

This is an npm library that provides the GitHub GraphQL schema in JSON and IDL formats, along with a validation function and TypeScript type definitions. It is used by other Octokit libraries to validate GraphQL queries against the official GitHub GraphQL API. The schema is automatically updated hourly via a GitHub Action that fetches the latest schema from GitHub and creates pull requests for changes. The library is simple but robust, relying on the `graphql` package for validation and `graphql-codegen` for TypeScript types. It is not a data research project; it is a straightforward software library.

RATING: 8.0/10 MAINT: active DRIFT: low
â–¸ 1 reusable components found
rsuite/schema-typed ★ 200 29 APPLICATION

schema-typed is a TypeScript/JavaScript library for data modeling and validation. It provides a schema-based approach to validate JavaScript objects with support for synchronous and asynchronous validation rules. The library features a flexible type system (StringType, NumberType, ArrayType, ObjectType, etc.) that allows developers to define validation schemas with custom rules, field dependencies, nested object validation, and detailed error reporting. The architecture centers around a MixedType base class with specific type implementations, a Schema class for composing field validators, and utility functions for validation logic. Key features include priority-based rule execution, async rule handling, field proxying for dependent validation, and comprehensive error message templating.

RATING: 8.0/10 MAINT: active DRIFT: medium
â–¸ 3 reusable components found
graphql-hive/graphql-scalars ★ 1931 141 APPLICATION

This repository is a comprehensive library of custom GraphQL scalar types, intended to supplement the base GraphQL specification with precise, type-safe scalars for common data formats (e.g., UUID, DateTime, EmailAddress, PhoneNumber, IBAN, GeoJSON, ISBN, etc.). It exports over 80 scalar definitions as `GraphQLScalarType` instances, along with corresponding SDL type definitions, mock generators, and JSON Schema extensions. The architecture is clean and uniform: each scalar is implemented as a self-contained module with `serialize`, `parseValue`, and `parseLiteral` methods, leveraging a shared validation pattern via `createGraphQLError`. The library integrates seamlessly with GraphQL codegen via `extensions.codegenScalarType` and provides a `RegularExpression` factory for creating custom regex-based scalars. Production usage is as a dependency for GraphQL servers (Apollo, Yoga, etc.) where precise input validation and output formatting are required. The codebase is well-tested with per-scalar unit tests, integration tests for date/time scalars, and bundle-size checks. While the majority of scalars are simple regex or range validations, several modules (GeoJSON, IBAN, iso-date) demonstrate non-trivial validation logic and are safely reusable. The repository also includes a Next.js documentation website and automated release tooling via Changesets.

RATING: 7.9/10 MAINT: active DRIFT: medium
â–¸ 4 reusable components found
SleekDB/SleekDB ★ 1001 88 APPLICATION

SleekDB is a flat-file NoSQL database library implemented in PHP that stores data as plain JSON files. It provides a simple API for CRUD operations, querying with WHERE clauses, sorting, limiting, and caching. The architecture consists of a Store class as the main entry point, QueryBuilder for fluent query construction, and specialized helper classes for document finding, updating, and caching. Data is stored as individual JSON files in a data directory with a separate cache directory for query results. The library requires no third-party dependencies beyond PHP 8.4+ with JSON and MBString extensions. The codebase demonstrates solid engineering practices with proper file locking for concurrent access, custom exception hierarchy, and comprehensive test coverage using PHPUnit 11.0. The query builder follows the builder pattern with method chaining. Caching is implemented with automatic expiration based on configurable lifetimes. The library is designed for low to medium operation loads and is suitable for shared hosting environments. Some deprecated methods are marked for removal in version 3.0, indicating active maintenance and refactoring. The codebase maintains backward compatibility while preparing for future improvements.

RATING: 7.8/10 MAINT: maintained DRIFT: low
â–¸ 5 reusable components found
graphql-editor/graphql-zeus ★ 1977 112 APPLICATION

GraphQL Zeus is a TypeScript-first GraphQL client generator that produces a fully type-safe query builder from any GraphQL schema. It provides a CLI tool (`zeus`) that accepts a GraphQL schema file or introspection URL and generates a complete TypeScript client with zero runtime dependencies beyond `cross-fetch` and `ws` (for subscriptions). The generated client supports multiple transport modes: standard HTTP via `Chain` and `Thunder` (with custom fetch injection), WebSocket subscriptions (both legacy and `graphql-ws`), and Server-Sent Events (SSE). It also offers integration helpers for Apollo Client (`typedDocumentNode`) and exports reusable selection set composition via `Selector`. The monorepo is structured into three packages: `graphql-zeus` (CLI orchestration), `graphql-zeus-core` (code generation engine and runtime functions), and `graphql-zeus-jsonschema` (JSON Schema generation from input types). The code generation pipeline parses the schema into a tree structure, then templates it into TypeScript types and runtime functions. The project is moderately well-maintained with active issues and a test suite focused on the core code generator, though the CLI lacks automated tests and the build tooling relies on the deprecated `ttypescript` package, indicating some technical drift.

RATING: 7.6/10 MAINT: maintained DRIFT: medium
â–¸ 7 reusable components found
rmyndharis/antigravity-skills ★ 1535 262 APPLICATION

This repository is a comprehensive skill manager for AI agents, providing a CLI tool (Node.js and Python) to search, install, list, and update a large library of over 300 skill definitions. The skills are structured markdown files with YAML frontmatter, each defining a specific capability or workflow for an AI assistant (e.g., code review, security audit, database optimization, TDD orchestration). The application includes a catalog generation pipeline, validation scripts with baseline support, and CI checks to ensure skill quality and consistency. While the bulk of the repository is composed of skill content (instruction playbooks), the active software layer—the CLI, catalog builder, and validator—represents a well-engineered dual-language application with tests and automation.

RATING: 7.6/10 MAINT: maintained DRIFT: low
â–¸ 6 reusable components found
couchbaselabs/node-ottoman ★ 295 99 APPLICATION

Ottoman is a Node.js Object-Document Mapper (ODM) for Couchbase, heavily inspired by Mongoose. It provides a schema-driven modeling layer with type validation, hooks, indexes, and a programmatic N1QL query builder. The library abstracts CRUD operations on Couchbase documents, supports distributed ACID transactions, full-text search, and automatic index management (N1QL, View, and RefDoc indexes). It is designed for production use with TypeScript, includes extensive test coverage against a real Couchbase instance, and offers a CLI for scaffolding. The codebase is well-structured but shows signs of stagnation: the last release (2.5.8) is unpublished, dependencies are outdated (Node >=8, couchbase SDK v4, lodash 4.18.1), and the CHANGELOG has not been updated since early 2022. Despite this, the core architecture is solid and the library remains functional for existing Couchbase projects.

RATING: 6.6/10 MAINT: stale DRIFT: high
â–¸ 2 reusable components found
── end of results ──
$ submit: