GraphQL API
The most powerful API for accessing your WebAssembly modules, now completely open for all to use
Last updated
Was this helpful?
The most powerful API for accessing your WebAssembly modules, now completely open for all to use
Last updated
Was this helpful?
All WAPM services (accessible via both the registry frontend and the CLI client ) use the WAPM GraphQL API to interact with and retrieve data from the WAPM Registry.
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
If you want to learn more about GraphQL, please visit the official Website:
The WAPM GraphQL API (and the GraphiQL IDE) can be accessed here:
is using the WAPM GraphQL API to automatically expose the WASI modules and commands in the online shell
Let's see now a few things that we can do with it!
We can do a POST to with the the following as the query
POST field:
Which should return something similar to:
Which should return something similar to:
Happy hacking! π
If we want to search all the packages published that have certain interface (for example, WASI), we can do a POST to with the the following as the query
POST field: