36 stable releases

new 5.17.0 Jul 16, 2024
5.14.0 Jun 11, 2024
5.10.2 Mar 4, 2024
5.10.1 Dec 23, 2023
3.0.2 Nov 26, 2022

#1443 in WebAssembly

Download history 195/week @ 2024-04-01 144/week @ 2024-04-08 27/week @ 2024-04-15 881/week @ 2024-04-22 19/week @ 2024-04-29 268/week @ 2024-05-06 62/week @ 2024-05-13 25/week @ 2024-05-20 9/week @ 2024-05-27 5/week @ 2024-06-03 130/week @ 2024-06-10 32/week @ 2024-06-17 8/week @ 2024-06-24 149/week @ 2024-07-01 180/week @ 2024-07-08

374 downloads per month
Used in 5 crates (4 directly)

MIT license

345KB
9K SLoC

Rust 6K SLoC // 0.0% comments GraphQL 3.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.wasmer.wtf/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 Wasmer 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.wasmer.io/graphql/schema.graphql > lib/registry/graphql/schema.graphql

Dependencies

~19–38MB
~659K SLoC