npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

gatsby-source-dropbox-paper

v0.1.0

Published

A source plugin for Gatsby that pulls data from the Dropbox Paper API.

Downloads

19

Readme

Dropbox Paper Source Plugin for Gatsby

Use this plugin to pull data from a Dropbox Paper account into a Gatsby site or application.

Installation

  1. Run npm install gatsby-source-dropbox-paper.

  2. Get an access token for your Dropbox account, which can be generated here.

  3. 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!

Usage

Setting Output Format

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"
    },
},

Querying for Data

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
        }
      }
    }
  }
}

Get Transformed Markdown

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
          }
        }
      }
    }
  }
}

The Future

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:

  • The ability pull documents by status.
  • The ability to pull documents by specific directory.
  • Other stuff.

Contributions

Please do!

License

MIT © Alex MacArthur