TypeGraphQL
Hapi
Our great sponsors
TypeGraphQL | Hapi | |
---|---|---|
30 | 50 | |
7,934 | 14,476 | |
- | 0.2% | |
8.8 | 6.8 | |
4 days ago | 7 days ago | |
TypeScript | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
TypeGraphQL
-
Cerbos + GraphQL: Do not reinvent user permissions
In this tutorial, we're building a simple application which uses Cerbos inside of a GraphQL server. The server is written in typescript and uses type-graphql to create the schema and resolvers, and TypeDI to handle dependency injection.
-
Using modern decorators in TypeScript
Using decorators required setting an --experimentalDecorators experimental compiler flag. Several popular TypeScript libraries, such as type-graphql and inversify, rely on this implementation.
- help wanted: Typescript GraphQL Types Response
-
Build a Next App with a full GraphQL API using just a JSON or CSV file
TypeGraphQL
-
What to use with Apollo Server v4 to achieve type-safety?
Have you tried TypeGraphQL v2 (it's in beta). Some in this thread have reported success with it.
-
Apollo Server v4 Breaking Changes. Time to move away?
When moving away from Apollo Server, and you're looking for a replacement built with JavaScript or TypeScript, let me give you some options. If you want to keep building your GraphQL API schema first, you might want to consider Mercurius (which relies on Fastify) or GraphQL Yoga. If you're going to build your GraphQL API code or resolver first, have a look at TypeGraphQL or Nexus. Alternatively, there are great GraphQL-as-a-Service solutions such as StepZen in case you no longer want to build, maintain and host your own GraphQL API.
-
A journey towards a type-safe GraphQL API server
There are two main approaches to keeping the types of the GraphQL schema and entities in business logic in sync. You can generate the schema based on your TypeScript code (e.g. TypeGraphQL), or you can generate types based on your schema (e.g. GraphQL Code Generator). We opted for the latter since it slotted right into our existing GraphQL server implementation using Apollo Server.
-
Do you use a tool for generating your GraphQL schema, or do you write it as part of your development process?
I've used tools (e.g. TypeGraphQL) in the past, and for smaller schemas I've just manually written the schema.
-
FoalTS framework - Version 2.9 is here 🎉
Foal's dependencies have been updated so as to support the latest version of TypeGraphQL.
-
Does Apollo GraphQL cost money to use in production? And other beginner questions about GraphQL
Some alternatives to Pothos are https://nexusjs.org/ https://typegraphql.com/
Hapi
-
Ask HN: Is Express still "de-facto" for building Node back ends?
I tend to use hapi (https://hapi.dev) instead of Express if I need to write a quick backend for something these days.
Fastify looks nice too but I haven't used it.
Been burnt by full-stack frameworks in the past (e.g. Meteor) but they can be a good option for some.
-
Stop using express.js
Restify & Fastify Hapi
-
Node.js Developers: The Key Players in Building Fast and Scalable Web Applications
Hapi.js: https://hapi.dev/
-
Node JS Microservice Frameworks for Developing Scalable Web Apps.
Hapi – The Simple, Secure Framework Developers Trust
-
10 Node.js Frameworks Every Developer Should Know
Hapi.js is one of the best Node.js web framework, which is used for developing application program interfaces. Thanks to a strong plugin system Hapi.js, you can fully manage the development process. Hapi.js motivates the developer to focus on the reuse logic instead of spending time building the infrastructure.
-
Why it's always bus factor = 1 in the node.js ecosystem?
does not seem so https://github.com/hapijs/hapi/releases/tag/v21.0.0 (ok, I'm nitpicking on that one)
-
Validate SvelteKit endpoints with Joi
Joi validator used to be part of hapi but then became a standalone library that you can use everywhere where validation is needed. So for example, here's how username validation can be done:
-
why Next.js is the best choice for create a blog site or even using it with wordpress ? 🤔😉
Server-side rendering: Next.js performs server-side rendering by default. This makes your application optimized for search engines. You can also integrate any middleware like express.js or Hapi.js, and you can run any database like MongoDB or MySQL.
-
Preferred Node backend framework for TS?
NestJs 's typescript support is just stellar since it is a pure typescript project from the ground up. Some missing frameworks in your list - Hapi - feathers - adonisJs - sailsjs (something about this framework never ticked, typescript is a clear after thought compared to the others in the list)
-
12+ Best Node.js Frameworks for Web App Development in 2022
Github repo: https://github.com/hapijs/hapi License: MIT Github stars: 13900
What are some alternatives?
Nest - A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript 🚀
fastify - Fast and low overhead web framework, for Node.js
Next.js - The React Framework
graphql-code-generator - A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
nexus - Code-First, Type-Safe, GraphQL Schema Construction
AdonisJs Application
feathers - The API and real-time application framework
loopback-next - LoopBack makes it easy to build modern API applications that require complex integrations.
graphql-shield - 🛡 A GraphQL tool to ease the creation of permission layer.
apollo-server - 🌍 Spec-compliant and production ready JavaScript GraphQL server that lets you develop in a schema-first way. Built for Express, Connect, Hapi, Koa, and more.
pothos - Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach