
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
@gramps/data-source-xkcd
Advanced tools
Load the latest xkcd comic, or look one up by its ID.
This is a GrAMPS data source for GraphQL.
To get all available fields for this data source, try out these two queries in GraphiQL. (See the quickstart for details on starting GraphiQL.)
query getLatestComic {
getLatestComic {
...ComicFields
}
}
query getComicById($id: ID!) {
getComicById(id: $id) {
...ComicFields
}
}
fragment ComicFields on XKCD_Comic {
num
title
safe_title
img
alt
transcript
year
month
day
link
news
}
Use the following arguments:
{
"id": 1900
}
# Clone the repo
git clone git@github.com:gramps-graphql/data-source-xkcd.git
# Move into it
cd data-source-xkcd/
# Install dependencies
yarn install
Start the app with the following command:
# Develop with mock data
yarn mock-data
Open the URL displayed in your console to see GraphiQL.
Once you’ve got your data source configured to load live data, you can enable live data in development:
# Develop with live data
yarn live-data
Open the URL displayed in your console to see GraphiQL.
Currently, there is no watch capability (PRs welcome!), so the service needs to be stopped (control
+ C
) and restarted (yarn [mock-data|live-data]
) to reflect new changes to the data source.
FAQs
GrAMPS GraphQL data source to load xkcd comics.
The npm package @gramps/data-source-xkcd receives a total of 45 weekly downloads. As such, @gramps/data-source-xkcd popularity was classified as not popular.
We found that @gramps/data-source-xkcd 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
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.