
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
gatsby-source-dropbox-paper
Advanced tools
A source plugin for Gatsby that pulls data from the Dropbox Paper API.
Use this plugin to pull data from a Dropbox Paper account into a Gatsby site or application.
Run npm install gatsby-source-dropbox-paper
.
Get an access token for your Dropbox account, which can be generated here.
In your gatsby-config.js
file, add the plugin and the access token to the plugins
array:
plugins: [
{
resolve: "gatsby-source-dropbox-paper",
options: {
access_token: "your-access-token"
}
]
You're all set!
By default, data will be pulled in Markdown format, but you may also specify "html" by including a format
option:
plugins: [
'gatsby-plugin-react-helmet',
{
resolve: "gatsby-source-dropbox-paper",
options: {
access_token: "your-access-token",
format: "html"
},
},
You can use the following GraphQL fields to pull raw data into your pages.
{
allDropboxPaperDocument(limit: 10) {
edges {
node {
content
doc_id
owner
title
created_date
status {
_tag
}
revision
last_updated_date
last_editor
id
internal {
type
content
contentDigest
owner
}
}
}
}
}
Using the gatsby-transformer-remark plugin, you can access pulled Markdown transformed into HTML. Simply use the childMarkdownRemark
field when querying for data.
{
allDropboxPaperDocument(limit: 10) {
edges {
node {
childMarkdownRemark {
id
html
excerpt
timeToRead
wordCount {
paragraphs
sentences
words
}
}
}
}
}
}
Right now, this plugin pulls all documents from an authenticated account, which is less than ideal. Improvements will come with changes to this plugin, as well as the evolution of the Dropbox API, which has limited capabilities in terms of filtering documents to be pulled. Here's what I'd like to see in the future:
Please do!
MIT © Alex MacArthur
FAQs
A source plugin for Gatsby that pulls data from the Dropbox Paper API.
The npm package gatsby-source-dropbox-paper receives a total of 6 weekly downloads. As such, gatsby-source-dropbox-paper popularity was classified as not popular.
We found that gatsby-source-dropbox-paper 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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.