New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@tyforge/graphql

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tyforge/graphql

Type-safe GraphQL client with Result pattern, introspection blocking, and exception mapping for TyForge

latest
Source
npmnpm
Version
0.2.8
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@tyforge/graphql

Type-safe GraphQL client with Result pattern, introspection blocking, and exception mapping for TyForge.

Installation

npm install @tyforge/graphql tyforge

Usage

import { ServiceGraphQL } from "@tyforge/graphql";
import { ok } from "tyforge/result";
import { FString, FUrlOrigin } from "tyforge/type-fields";

class MyGraphQL extends ServiceGraphQL {
  protected readonly _classInfo = { name: "MyGraphQL", version: "1.0.0", description: "GraphQL client" };
  readonly endpoint = FUrlOrigin.createOrThrow("https://api.example.com/graphql");

  protected async getAuthHeaders() {
    return ok({ "Authorization": FString.createOrThrow("Bearer token") });
  }
}

Security

  • Introspection query blocking
  • SSRF protection (private IP blocking, DNS rebinding detection)
  • Prototype pollution protection in variables
  • Sanitization depth limit (50 levels)
  • Response size limit (10MB)
  • Redirect blocking (redirect: "error")
  • Timeout validation (1-300000ms)

License

MIT

FAQs

Package last updated on 27 May 2026

Related posts