
Security News
PEP 810 Proposes Explicit Lazy Imports for Python 3.15
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Generate static HTML documentation for GraphQL APIs.
GraphiQL is great. So are tools like Altair and Insomnia. But they aren't necessarily enough.
docql
comes in when you want documentation for GraphQL APIs that lives in a
shared place. Having HTML documentation allows teams to link to specific
objects and fields to enhance conversation, reference the docs when away from
the computer, and generally have a place to see the entire GraphQL schema at a
glance.
There are two ways to use docql
.
The easiest way to get started is to run docql
off of the npm registry.
npx docql -e $API -o ./doc
If native binaries are more your style and you have access to Rust's cargo
,
you can install with cargo install
.
cargo install docql
docql -e $API -o ./doc
USAGE:
docql [OPTIONS] --output <path> <--endpoint <url>|--schema <path>>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-e, --endpoint <url> The URL of the GraphQL endpoint to document
-x, --header <header>... Additional headers when executing the GraphQL introspection query (e.g. `-x
"Authorization: Bearer abcdef"`
-n, --name <name> The name to give to the schema (used in the title of the page) [default: GraphQL Schema]
-o, --output <path> The directory to put the generated documentation
-s, --schema <path> The output of a GraphQL introspection query already stored locally
FAQs
Generate static HTML documentation for GraphQL APIs.
We found that docql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
An opt-in lazy import keyword aims to speed up Python startups, especially CLIs, without the ecosystem-wide risks that sank PEP 690.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.