#wasmer #graphql #registry #packages #download #interaction

wasmer-registry

Crate to interact with the wasmer registry, download packages, etc

29 stable releases

new 5.10.4 Apr 6, 2024
5.10.2 Mar 4, 2024
5.10.1 Dec 23, 2023
5.9.0 Oct 27, 2023
3.0.2 Nov 26, 2022

#1335 in WebAssembly

Download history 1273/week @ 2023-12-22 1172/week @ 2023-12-29 2312/week @ 2024-01-05 1120/week @ 2024-01-12 772/week @ 2024-01-19 109/week @ 2024-01-26 2/week @ 2024-02-02 2/week @ 2024-02-09 18/week @ 2024-02-16 35/week @ 2024-02-23 210/week @ 2024-03-01 88/week @ 2024-03-08 62/week @ 2024-03-15 5/week @ 2024-03-22 47/week @ 2024-03-29 271/week @ 2024-04-05

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

MIT license

220KB
6K SLoC

Rust 3.5K 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.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–40MB
~674K SLoC