awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
MichalLytek avatar

MichalLytek/type-graphql

0
View on GitHub↗
8,088 stars·671 forks·TypeScript·MIT·24 viewstypegraphql.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 history

Star history chart for michallytek/type-graphqlStar history chart for michallytek/type-graphql

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does michallytek/type-graphql do?

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.

What are the main features of michallytek/type-graphql?

The main features of michallytek/type-graphql are: GraphQL APIs, GraphQL Schema Generation, GraphQL, Schema Generation, Single-Source-of-Truth Modeling, Field Resolvers, GraphQL Schema Definitions, Schema-First Development Frameworks.

What are some open-source alternatives to michallytek/type-graphql?

Open-source alternatives to michallytek/type-graphql include: 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…

Open-source alternatives to Type Graphql

Similar open-source projects, ranked by how many features they share with Type Graphql.
  • 19majkel94/type-graphql19majkel94 avatar

    19majkel94/type-graphql

    8,088View on 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
    View on GitHub↗8,088
  • graphql-python/graphenegraphql-python avatar

    graphql-python/graphene

    8,238View on 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
    View on GitHub↗8,238
  • async-graphql/async-graphqlasync-graphql avatar

    async-graphql/async-graphql

    3,671View on 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
    View on GitHub↗3,671
  • litestar-org/litestarlitestar-org avatar

    litestar-org/litestar

    8,302View on 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
    View on GitHub↗8,302
  • See all 30 alternatives to Type Graphql→