40 stable releases

5.21.0 Oct 21, 2024
5.19.0 Sep 9, 2024
5.17.0 Jul 16, 2024
5.10.2 Mar 4, 2024
3.0.2 Nov 26, 2022

#1004 in HTTP server

Download history 150/week @ 2024-07-15 25/week @ 2024-07-22 126/week @ 2024-07-29 7/week @ 2024-08-12 171/week @ 2024-08-19 26/week @ 2024-08-26 145/week @ 2024-09-09 56/week @ 2024-09-16 68/week @ 2024-09-23 202/week @ 2024-09-30 34/week @ 2024-10-07 14/week @ 2024-10-14 164/week @ 2024-10-21 4/week @ 2024-10-28

230 downloads per month
Used in 4 crates (3 directly)

MIT license

350KB
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

~22–45MB
~715K SLoC