Gathering detailed insights and metrics for mercurius
Gathering detailed insights and metrics for mercurius
Gathering detailed insights and metrics for mercurius
Gathering detailed insights and metrics for mercurius
mercurius-auth
Mercurius Auth Plugin adds configurable Authentication and Authorization support to Mercurius.
mercurius-codegen
[![npm version](https://badge.fury.io/js/mercurius-codegen.svg)](https://badge.fury.io/js/mercurius-codegen)
mercurius-validation
Mercurius Validation Plugin adds configurable Validation support to Mercurius.
@mercuriusjs/gateway
A plugin for mercurius federation
npm install mercurius
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
2,358 Stars
814 Commits
237 Forks
32 Watching
12 Branches
157 Contributors
Updated on 24 Nov 2024
JavaScript (94.64%)
TypeScript (3.42%)
HTML (1.79%)
Shell (0.16%)
Cumulative downloads
Total Downloads
Last day
-3.9%
14,310
Compared to previous day
Last week
14.4%
83,712
Compared to previous week
Last month
4%
334,378
Compared to previous month
Last year
346.3%
7,439,235
Compared to previous year
15
1
Mercurius is a GraphQL adapter for Fastify
Features:
1npm i fastify mercurius graphql 2# or 3yarn add fastify mercurius graphql
The previous name of this module was fastify-gql (< 6.0.0).
1'use strict' 2 3const Fastify = require('fastify') 4const mercurius = require('mercurius') 5 6const app = Fastify() 7 8const schema = ` 9 type Query { 10 add(x: Int, y: Int): Int 11 } 12` 13 14const resolvers = { 15 Query: { 16 add: async (_, { x, y }) => x + y 17 } 18} 19 20app.register(mercurius, { 21 schema, 22 resolvers 23}) 24 25app.get('/', async function (req, reply) { 26 const query = '{ add(x: 2, y: 2) }' 27 return reply.graphql(query) 28}) 29 30app.listen({ port: 3000 })
Check GitHub repo for more examples.
The project is kindly sponsored by:
The Mercurius name was gracefully donated by Marco Castelluccio. The usage of that library was described in https://hacks.mozilla.org/2015/12/web-push-notifications-from-irssi/, and you can find that codebase in https://github.com/marco-c/mercurius.
MIT
The latest stable version of the package.
Stable Version
1
7.5/10
Summary
Uncaught Exception in mercurius
Affected Versions
>= 8.10.0, < 8.11.2
Patched Versions
8.11.2
2
5.3/10
Summary
mercurius has Uncaught Exception when using subscriptions
Affected Versions
< 8.13.2
Patched Versions
8.13.2
5.3/10
Summary
mercurius has Uncaught Exception when using subscriptions
Affected Versions
>= 9.0.0, < 11.5.0
Patched Versions
11.5.0
Reason
9 commit(s) and 7 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 18/26 approved changesets -- score normalized to 6
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More