Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grats

Package Overview
Dependencies
Maintainers
1
Versions
239
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grats

**Grats is still experimental. Feel free to try it out and give feedback, but they api is still in flux**

  • 0.0.0-main-1acf2fbd
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
126
decreased by-15.44%
Maintainers
1
Weekly downloads
 
Created
Source

-=[ ALPHA SOFTWARE ]=-

Grats is still experimental. Feel free to try it out and give feedback, but they api is still in flux

Grats: Implementation-First GraphQL for TypeScript

Join our Discord!

What if building a GraphQL server were as easy as writing the resolvers?

When you write your GraphQL server in TypeScript, your fields and resovlers are already annotated with type information. Grats leverages your existing type annotations to automatically extract an executable GraphQL schema from your generic TypeScript resolver code.

By making your TypeScript implementation the source of truth, you never have to worry about valiating that your implementiaton matches your schema. Your implementation is your schema!

Read the docs: https://capt.dev/grats

Contributing

See CONTRIBUTING.md in the repo root for details on how to make changes to this project.

Acknowledgements

  • @mofeiZ and @alunyov for their Relay hack-week project exploring a similar idea.
  • @josephsavona for input on the design of Relay Resolvers which inspired this project.
  • @bradzacher for tips on how to handle TypeScript ASTs.
  • Everyone who worked on Meta's Hack GraphQL server, the developer experince of which inspired this project.
  • A number of other projects which seem to have explored similar ideas in the past:

FAQs

Package last updated on 13 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc