fastify-jwt
fastify-swagger
fastify-jwt | fastify-swagger | |
---|---|---|
3 | 8 | |
477 | 854 | |
2.5% | 2.9% | |
6.9 | 7.7 | |
26 days ago | 13 days ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
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.
fastify-jwt
-
Build a Go API with wallet authentication, JWT, Gin
Let me explain it again. The banlist is mean to inspect the payload/claims and deny access even if the signature/JWT is valid. We don't need to change anything else. A lot of libraries already provide such a feature. For example https://github.com/fastify/fastify-jwt via the trusted preHook.
-
Fastify + Okta Login (redirect)
Hey, thanks for the reply. I'm doing a port from another stack, and that app's implementation is using using the Okta SAML integration. I see how to secure my app's endpoints without issue, but the question I've got comes in with the actual login workflow. Okta's documentation (link) is exclusively focusing on Express + Passport for the OIDC option. Fastify's ecosystem (link) has fastify-auth + fastify-jwt. But I don't see a SAML implementation, which is where I originally was intending to go because the idp is already set up and tested.
- Show HN: Express-Session-JWT
fastify-swagger
-
Craft OpenAPI Specs & Production-Ready SDKs with Fastify
With Speakeasy, you can create client SDKs based on an OpenAPI specification. Fastify ships with the @fastify/swagger plugin, which provides convenient shortcuts for generating good OpenAPI specifications. We'll start this tutorial by registering @fastify/swagger in a Fastify project to generate a spec.
-
Testing for Breaking Changes in Fastify APIs
First let’s get our current OpenAPI specification out of Fastify and onto the file system. If you have not added the https://github.com/fastify/fastify-swagger plugin first go do that. Then use this simple script I called generate-spec.ts to write your OpenAPI specification to the filesystem.
- Is there a FastAPI alternative for Node?
- Is NestJS good for startups?
-
Automatic swagger ui for nodejs/express? (Info in comments)
The fastify-swagger docs has an example https://github.com/fastify/fastify-swagger
-
Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 1
@fastify/swagger is a fastify plugin to serve a Swagger UI, using Swagger (OpenAPI v2) or OpenAPI v3 schemas automatically generated from your route schemas, or from an existing Swagger/OpenAPI schema.
-
How do you write your API documentation? Any self-hosted utilities you'd recommend?
On the Node.js framework side of things, Fastify has support for Swagger with the fastify-swagger plugin.
-
How do you unify TypeScript for both frontend and backend?
With this approach, backend can be any programming languages that support OpenAPI or Swagger. Personally, I use fastify-swagger; but I can also be things like Python's FastAPI or Golang's Gin/Buffalo/Native.
What are some alternatives?
mercurius - Implement GraphQL servers and gateways with Fastify
fastify-openapi-glue - A plugin for the Fastify webserver to autogenerate a Fastify configuration based on a OpenApi(v2/v3) specification.
nodejs-integration-tests-best-practices - ✅ Beyond the basics of Node.js testing. Including a super-comprehensive best practices list and an example app (March 2024)
widdershins - OpenAPI / Swagger, AsyncAPI & Semoasa definitions to (re)Slate compatible markdown
nodejs-integration-test-practices-and-examples - ✅ Master the art of the most powerful testing technique for Node.js: Component tests. Including super-comprehensive best practices list and an example app (August 2021) [Moved to: https://github.com/testjavascript/nodejs-integration-tests-best-practices]
openapi-client-axios - JavaScript client library for consuming OpenAPI-enabled APIs with axios
docker-fastify-restful-api - Node.js RESTful API boilerplate using Traefik, Docker, Docker Compose, Fastify, JWT and Mongodb
tsoa - Build OpenAPI-compliant REST APIs using TypeScript and Node
fastify-hasura - A Fastify plugin to have fun with Hasura.
awesome-jsonschema - A curated list of awesome JSON Schema resources, tutorials, tools, and more.
fastify - Fast and low overhead web framework, for Node.js
swagger-jsdoc - Generates swagger/openapi specification based on jsDoc comments and YAML files.