19 releases (stable)

new 4.7.0 Jun 1, 2023
4.4.1 Apr 21, 2023
4.2.0 Mar 28, 2023
3.1.1 Jan 26, 2023
3.0.2 Nov 26, 2022

#941 in WebAssembly

Download history 116/week @ 2023-02-09 127/week @ 2023-02-16 407/week @ 2023-02-23 431/week @ 2023-03-02 321/week @ 2023-03-09 313/week @ 2023-03-16 2133/week @ 2023-03-23 2795/week @ 2023-03-30 946/week @ 2023-04-06 1156/week @ 2023-04-13 1438/week @ 2023-04-20 1358/week @ 2023-04-27 783/week @ 2023-05-04 1262/week @ 2023-05-11 1873/week @ 2023-05-18 1718/week @ 2023-05-25

6,090 downloads per month
Used in 8 crates (5 directly)

MIT license

175KB
5K SLoC

Rust 3K SLoC // 0.0% comments GraphQL 2.5K SLoC SQL 68 SLoC

wasmer-registry

This crate provides integration with the Wasmer package registry GraphQL API.

Development

Updating the GraphQL Schema

The GraphQL API schema used for generating queries and mutations is located at ./graphql/schema.graphql.

To update it to a deployed version of the backend, run:

npx get-graphql-schema https://registry.wapm.dev/graphql > graphql/schema.graphql

Formatting GraphQL Files

To format the GraphQL query and mutation files, run:

npx prettier --write ./graphql/**/*.graphql

lib.rs:

High-level interactions with the WAPM backend.

The GraphQL schema can be updated by running make in the Wasmer repo's root directory.

$ make update-graphql-schema
curl -sSfL https://registry.wapm.io/graphql/schema.graphql > lib/registry/graphql/schema.graphql

Dependencies

~14–28MB
~567K SLoC