Preparing for system design interviews?  Try bugzed.com →

graphql-scalar

JSON →
library 0.1.0 ·javascript
verified Jun 7, 2026

graphql-scalar v0.1.0 is a TypeScript library for creating configurable custom GraphQL scalars with built-in sanitization, validation, and transformation. It provides factory functions like createStringScalar, createIntScalar, and createFloatScalar that accept options for constraints (min/max length, pattern, numeric range) and hooks (coerce, parse, sanitize, serialize, validate). The package ships with type declarations and has peer dependencies on graphql and tslib (^1.10.0). It supersedes older packages (graphql-input-number, graphql-input-string) with breaking changes. Release cadence is low; no recent updates. Key differentiators include TypeScript first-class support and a unified API for creating scalars with common patterns. Note: tslib peer dependency may cause issues with TypeScript projects using importHelpers.

total hits 11
actors 3 distinct systems
last hit 21d ago human
GPTBot
3
Amazonbot
2
Humans
5

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇧🇷 Brazil · 🇫🇷 France · 🇬🇧 United Kingdom