
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
gatsby-source-formspree
Advanced tools
The gatsby-source-formspree
plugin uses Formspree's API to fetch form submissions. This allows Gatsby site creators to include user submissions in their website output.
You can find out more about Formspree here and the Formspree API here.
To install it, in the root of your site run:
npm install --save gatsby-source-formspree
Then add the plugin to your gatsby-config.js
file including your form ID and API key:
{
resolve: "gatsby-source-formspree",
options: {
form: "YOUR_FORM_ID",
key: "YOUR_API_KEY",
},
},
You can obtain your form ID by creating a new form in the Formspree dashboard and then copying the 6 digit ID from the form's URL. See Getting your form's hashid in the Formspree help docs.
To create an API key, go into the new form's settings panel and enable the API. Then copy your read-only key and add it to the gatsby config. See API Keys in the Formspree help docs.
This plugin could be used any time you want to display user submitted content on your website. Here are some ideas:
Each of these ideas could be coupled with a deploy hook to rebuild your site when a form is submitted.
This usually shows a code example showing how to include this plugin in a site's config.js
file.
code example
//See this Markdown Cheatsheet on how to format code examples.
This section could also include before-and-after examples of data when the plugin is enabled, if applicable.
If this is a source plugin README, source plugins ought to allow people to query for data within their Gatsby site. Please include code examples to show how to query for data using your source plugin.
If you have unanswered questions, would like help with enhancing or debugging the plugin, it is nice to include instructions for people who want to contribute to your plugin. Starter README template
FAQs
A Gatsby source plugin that fetches formspree submissions
We found that gatsby-source-formspree 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.