Security News
PyPI Introduces Digital Attestations to Strengthen Python Package Security
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
@0no-co/graphql.web
Advanced tools
A spec-compliant client-side GraphQL implementation
@0no-co/graphql.web
is an experimental library, aiming to provide an
absolute minimum of features and exports of graphql
utilities that typical
GraphQL web apps or GraphQL clients need.
While its goal isn’t to be an exact match to the GraphQL.js API it aims to provide API- and type-compatible where possible and necessary. However, its goal is to provide the smallest implementation for common GraphQL utilities that are still either spec-compliant or compatible with GraphQL.js’ implementation.
Note: While this library can be used as a drop-in replacement for
graphql
in some cases, thegraphql-web-lite
project is maintained to be a full shim/alias for thegraphql
package.
Currently, only a select few exports are provided — namely, the ones listed here
are used in @urql/core
, and we expect them to be common in all client-side
GraphQL applications.
Export | Description | Links |
---|---|---|
parse | A tiny (but compliant) GraphQL query language parser. | Source |
print | A (compliant) GraphQL query language printer. | Source |
visit | A recursive reimplementation of GraphQL.js’ visitor. | Source |
Kind | The GraphQL.js’ Kind enum, containing supported ASTNode kinds. | Source |
GraphQLError | GraphQLError stripped of source/location debugging. | Source |
valueFromASTUntyped | Coerces AST values into JS values. | Source |
The stated goals of any reimplementation are:
Therefore, while we can foresee implementing APIs that are entirely separate and
unrelated to the GraphQL.js library in the future, for now the stated goals are
designed to allow this library to be used by GraphQL clients, like
@urql/core
.
FAQs
A spec-compliant client-side GraphQL implementation
The npm package @0no-co/graphql.web receives a total of 438,128 weekly downloads. As such, @0no-co/graphql.web popularity was classified as popular.
We found that @0no-co/graphql.web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.