awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
MichalLytek avatar

MichalLytek/type-graphql

0
View on GitHub↗
8,088 星标·671 分支·TypeScript·MIT·9 次浏览typegraphql.com↗

Type Graphql

Type-graphql is a toolkit and framework for creating type-safe GraphQL APIs. It functions as a schema generator and resolver library that uses TypeScript classes and decorators as the primary source of truth for data structures and query logic.

The project enables the definition of GraphQL schemas and resolvers through typed classes rather than manual schema definition language. This approach ensures that TypeScript types automatically align with the GraphQL schema to prevent runtime errors.

The framework provides capabilities for API implementation, including input data validation and access control through guards. It further supports resolver organization via dependency injection and controller classes.

Features

  • GraphQL APIs - Provides a framework for exposing data models through automatically generated type-safe GraphQL interfaces.
  • GraphQL Schema Generation - Provides a framework to generate GraphQL schemas and resolvers using TypeScript classes and decorators as the source of truth.
  • GraphQL - Provides a library for implementing GraphQL queries and mutations via typed controller classes.
  • Schema Generation - Uses class decorators to automatically derive GraphQL schemas from TypeScript metadata at runtime.
  • Single-Source-of-Truth Modeling - Uses TypeScript classes as the shared primary definition for both data models and the GraphQL schema.
  • Field Resolvers - Implements field resolvers within controller classes to handle data fetching and mutations.
  • GraphQL Schema Definitions - Defines GraphQL schemas and types using TypeScript classes to maintain a single source of truth.
  • Schema-First Development Frameworks - Prioritizes typed classes as the source of truth for generating the GraphQL schema and logic.
  • Type-Safe API Frameworks - Leverages the TypeScript static type system to ensure the GraphQL schema and API contracts align.
  • Resolver Mappings - Maps GraphQL queries and mutations to specific methods within controller classes using metadata reflection.
  • Access Control Guards - Uses guards to block unauthorized requests to specific GraphQL resolvers based on security policies.
  • Input Validation - Verifies and sanitizes incoming GraphQL arguments against defined rules to ensure data integrity.
  • Dependency Injection Containers - Provides an inversion-of-control container to decouple business logic from GraphQL resolvers.
  • Dependency Injection - Decouples business logic from the API by injecting required service dependencies into resolvers.
  • Metadata Reflection Frameworks - Utilizes reflect-metadata to dynamically inspect decorated class properties for schema generation.
  • Request Interception Middleware - Implements a chain of guards and validation functions that intercept requests before they reach resolvers.
  • Controller-Based Organization - Structures business logic and data fetching using class-based controllers and dependency injection.
  • Web Framework Integrations - TypeScript-based framework for building GraphQL APIs.
  • Web Frameworks - Framework for creating GraphQL APIs using TypeScript classes and decorators.

Star 历史

michallytek/type-graphql 的 Star 历史图表michallytek/type-graphql 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Type Graphql 的开源替代方案

相似的开源项目,按与 Type Graphql 的功能重合度排序。
  • 19majkel94/type-graphql19majkel94 的头像

    19majkel94/type-graphql

    8,088在 GitHub 上查看↗

    Type-graphql is a framework for building GraphQL servers that uses TypeScript classes as the single source of truth for schema definitions and types. It provides a schema generator and a resolver framework that allows developers to define queries and mutations using class-based controllers and decorators. The project focuses on a schema-first approach where TypeScript classes and metadata reflection are used to automatically derive GraphQL schemas. It incorporates a dependency injection container to manage the instantiation and lifecycle of resolver classes. The system includes a middleware

    TypeScript
    在 GitHub 上查看↗8,088
  • graphql-python/graphenegraphql-python 的头像

    graphql-python/graphene

    8,238在 GitHub 上查看↗

    Graphene is a library and framework for building type-safe GraphQL APIs and schemas using Python objects and resolvers. It provides a system for mapping internal data models to typed GraphQL schemas, enabling the creation of servers that process queries and execute resolvers to return structured data. The project includes a full implementation of the Relay specification, providing standardized patterns for global object identification and cursor-based pagination. It utilizes a class-based approach to schema definition and supports interface-based type inheritance. The framework covers a broa

    Python
    在 GitHub 上查看↗8,238
  • async-graphql/async-graphqlasync-graphql 的头像

    async-graphql/async-graphql

    3,671在 GitHub 上查看↗

    async-graphql is a type-safe framework for building specification-compliant GraphQL servers in Rust. It uses procedural macros to automatically generate schemas from native language structures, ensuring consistency between the data model and the API specification. The project provides native support for Apollo Federation v2, allowing entities and fields to be shared and resolved across multiple distributed subgraphs. It also implements real-time data streaming via WebSocket subscriptions and asynchronous event streams. The framework includes a wide array of capabilities for schema design, su

    Rust
    在 GitHub 上查看↗3,671
  • litestar-org/litestarlitestar-org 的头像

    litestar-org/litestar

    8,302在 GitHub 上查看↗

    Litestar is a high-performance Python ASGI web framework designed for building asynchronous APIs and web services. It functions as a type-safe toolkit that leverages Python type hints to provide automatic request validation and response serialization, while natively generating interactive API documentation based on the OpenAPI specification. The framework is distinguished by its integrated dependency injection system, which manages shared resources and resolves complex nested service chains directly within request handlers. It further organizes API development through class-based controllers

    Pythonapiasgiasyncio
    在 GitHub 上查看↗8,302
查看 Type Graphql 的所有 30 个替代方案→

常见问题解答

michallytek/type-graphql 是做什么的?

Type-graphql is a toolkit and framework for creating type-safe GraphQL APIs. It functions as a schema generator and resolver library that uses TypeScript classes and decorators as the primary source of truth for data structures and query logic.

michallytek/type-graphql 的主要功能有哪些?

michallytek/type-graphql 的主要功能包括:GraphQL APIs, GraphQL Schema Generation, GraphQL, Schema Generation, Single-Source-of-Truth Modeling, Field Resolvers, GraphQL Schema Definitions, Schema-First Development Frameworks。

michallytek/type-graphql 有哪些开源替代品?

michallytek/type-graphql 的开源替代品包括: 19majkel94/type-graphql — Type-graphql is a framework for building GraphQL servers that uses TypeScript classes as the single source of truth… graphql-python/graphene — Graphene is a library and framework for building type-safe GraphQL APIs and schemas using Python objects and… async-graphql/async-graphql — async-graphql is a type-safe framework for building specification-compliant GraphQL servers in Rust. It uses… litestar-org/litestar — Litestar is a high-performance Python ASGI web framework designed for building asynchronous APIs and web services. It… loopbackio/loopback-next — LoopBack Next is a Node.js API framework used for building REST and multi-protocol APIs. It functions as an OpenAPI… elysiajs/elysia — Elysia is a high-performance TypeScript web framework designed for building type-safe backend services. It provides a…