Skip to content

Commit 85da358

Browse files
Deploying to gh-pages from @ 2c6a3e6 🚀
1 parent 1d66d53 commit 85da358

7 files changed

Lines changed: 96 additions & 35 deletions

File tree

Dropbox.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width">
7-
<title>Dropbox Node SDK Class: Dropbox</title>
7+
<title>Dropbox JavaScript SDK Class: Dropbox</title>
88

99
<!--[if lt IE 9]>
1010
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@@ -20,7 +20,7 @@
2020
<div class="navbar navbar-default navbar-fixed-top ">
2121
<div class="container">
2222
<div class="navbar-header">
23-
<a class="navbar-brand" href="index.html">Dropbox Node SDK</a>
23+
<a class="navbar-brand" href="index.html">Dropbox JavaScript SDK</a>
2424
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
2525
<span class="icon-bar"></span>
2626
<span class="icon-bar"></span>
@@ -40266,7 +40266,7 @@ <h4 class="modal-title">Search results</h4>
4026640266
<span class="jsdoc-message">
4026740267
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
4026840268

40269-
on 2026-07-16T05:59:45+00:00
40269+
on 2026-07-16T06:25:38+00:00
4027040270

4027140271
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
4027240272
</span>

DropboxAuth.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width">
7-
<title>Dropbox Node SDK Class: DropboxAuth</title>
7+
<title>Dropbox JavaScript SDK Class: DropboxAuth</title>
88

99
<!--[if lt IE 9]>
1010
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@@ -20,7 +20,7 @@
2020
<div class="navbar navbar-default navbar-fixed-top ">
2121
<div class="container">
2222
<div class="navbar-header">
23-
<a class="navbar-brand" href="index.html">Dropbox Node SDK</a>
23+
<a class="navbar-brand" href="index.html">Dropbox JavaScript SDK</a>
2424
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
2525
<span class="icon-bar"></span>
2626
<span class="icon-bar"></span>
@@ -653,7 +653,7 @@ <h4 class="modal-title">Search results</h4>
653653
<span class="jsdoc-message">
654654
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
655655

656-
on 2026-07-16T05:59:45+00:00
656+
on 2026-07-16T06:25:38+00:00
657657

658658
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
659659
</span>

DropboxResponseError.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width">
7-
<title>Dropbox Node SDK Class: DropboxResponseError</title>
7+
<title>Dropbox JavaScript SDK Class: DropboxResponseError</title>
88

99
<!--[if lt IE 9]>
1010
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@@ -20,7 +20,7 @@
2020
<div class="navbar navbar-default navbar-fixed-top ">
2121
<div class="container">
2222
<div class="navbar-header">
23-
<a class="navbar-brand" href="index.html">Dropbox Node SDK</a>
23+
<a class="navbar-brand" href="index.html">Dropbox JavaScript SDK</a>
2424
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
2525
<span class="icon-bar"></span>
2626
<span class="icon-bar"></span>
@@ -329,7 +329,7 @@ <h4 class="modal-title">Search results</h4>
329329
<span class="jsdoc-message">
330330
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
331331

332-
on 2026-07-16T05:59:45+00:00
332+
on 2026-07-16T06:25:38+00:00
333333

334334
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
335335
</span>

classes.list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width">
7-
<title>Dropbox Node SDK Classes</title>
7+
<title>Dropbox JavaScript SDK Classes</title>
88

99
<!--[if lt IE 9]>
1010
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@@ -20,7 +20,7 @@
2020
<div class="navbar navbar-default navbar-fixed-top ">
2121
<div class="container">
2222
<div class="navbar-header">
23-
<a class="navbar-brand" href="index.html">Dropbox Node SDK</a>
23+
<a class="navbar-brand" href="index.html">Dropbox JavaScript SDK</a>
2424
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
2525
<span class="icon-bar"></span>
2626
<span class="icon-bar"></span>
@@ -208,7 +208,7 @@ <h4 class="modal-title">Search results</h4>
208208
<span class="jsdoc-message">
209209
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
210210

211-
on 2026-07-16T05:59:45+00:00
211+
on 2026-07-16T06:25:38+00:00
212212

213213
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
214214
</span>

global.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width">
7-
<title>Dropbox Node SDK Global</title>
7+
<title>Dropbox JavaScript SDK Global</title>
88

99
<!--[if lt IE 9]>
1010
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@@ -20,7 +20,7 @@
2020
<div class="navbar navbar-default navbar-fixed-top ">
2121
<div class="container">
2222
<div class="navbar-header">
23-
<a class="navbar-brand" href="index.html">Dropbox Node SDK</a>
23+
<a class="navbar-brand" href="index.html">Dropbox JavaScript SDK</a>
2424
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
2525
<span class="icon-bar"></span>
2626
<span class="icon-bar"></span>
@@ -339480,7 +339480,7 @@ <h4 class="modal-title">Search results</h4>
339480339480
<span class="jsdoc-message">
339481339481
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
339482339482

339483-
on 2026-07-16T05:59:45+00:00
339483+
on 2026-07-16T06:25:38+00:00
339484339484

339485339485
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
339486339486
</span>

index.html

Lines changed: 80 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width">
7-
<title>Dropbox Node SDK Index</title>
7+
<title>Dropbox JavaScript SDK Index</title>
88

99
<!--[if lt IE 9]>
1010
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
@@ -20,7 +20,7 @@
2020
<div class="navbar navbar-default navbar-fixed-top ">
2121
<div class="container">
2222
<div class="navbar-header">
23-
<a class="navbar-brand" href="index.html">Dropbox Node SDK</a>
23+
<a class="navbar-brand" href="index.html">Dropbox JavaScript SDK</a>
2424
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#topNavigation">
2525
<span class="icon-bar"></span>
2626
<span class="icon-bar"></span>
@@ -93,27 +93,88 @@
9393

9494

9595
<section class="readme-section">
96-
<article><p><a href="https://github.com/dropbox/dropbox-sdk-js"><img src="https://cfl.dropboxstatic.com/static/images/sdk/javascript_banner.png" alt="Logo"></a></p>
97-
<p><a href="https://www.npmjs.com/package/dropbox"><img src="https://img.shields.io/node/v/dropbox" alt="node-current"></a>
98-
<a href="https://www.npmjs.com/package/dropbox"><img src="https://img.shields.io/npm/v/dropbox" alt="npm"></a>
96+
<article><h1>Dropbox JavaScript SDK</h1>
97+
<p><a href="https://github.com/dropbox/dropbox-sdk-js/actions/workflows/ci.yml"><img src="https://img.shields.io/badge/Node.js-22%20%7C%2024-339933?logo=nodedotjs&amp;logoColor=white" alt="Node.js 22 and 24"></a>
98+
<a href="https://www.npmjs.com/package/dropbox"><img src="https://img.shields.io/npm/v/dropbox?logo=npm" alt="npm version"></a>
9999
<a href="https://codecov.io/gh/dropbox/dropbox-sdk-js"><img src="https://codecov.io/gh/dropbox/dropbox-sdk-js/branch/main/graph/badge.svg" alt="codecov"></a></p>
100-
<p>The offical Dropbox SDK for Javascript.</p>
101-
<p>Documentation can be found on <a href="https://dropbox.github.io/dropbox-sdk-js/">GitHub Pages</a></p>
100+
<p>The official Dropbox API v2 SDK for JavaScript.</p>
101+
<h2>Runtime support</h2>
102+
<p>The SDK supports Node.js, modern web browsers, and Web Workers. Continuous
103+
integration currently tests Node.js 22 and 24. Browser and Worker environments
104+
must provide <code>Promise</code>, <code>fetch</code>, and <code>TextEncoder</code>; PKCE authentication also
105+
requires the Web Crypto API. Add polyfills when targeting older environments
106+
that do not provide the required APIs.</p>
102107
<h2>Installation</h2>
103-
<p>Create an app via the <a href="https://dropbox.com/developers/apps">Developer Console</a></p>
104-
<p>Install via <a href="https://www.npmjs.com/">npm</a></p>
105-
<pre class="prettyprint source"><code>$ npm install --save dropbox
108+
<p>Create an app in the <a href="https://dropbox.com/developers/apps">Developer Console</a>, then install the SDK from
109+
npm. Published npm packages already contain CommonJS, ES module, browser, and
110+
TypeScript builds; applications do not need to build the SDK from source.
111+
Published versions and release history are available on the
112+
<a href="https://www.npmjs.com/package/dropbox?activeTab=versions">npm versions page</a>.</p>
113+
<pre class="prettyprint source lang-sh"><code>npm install dropbox
106114
</code></pre>
107-
<p>Install from source:</p>
108-
<pre class="prettyprint source"><code>$ git clone https://github.com/dropbox/dropbox-sdk-js.git
109-
$ cd dropbox-sdk-js
110-
$ npm install
115+
<h3>Node.js</h3>
116+
<pre class="prettyprint source lang-js"><code>const { Dropbox } = require('dropbox');
117+
118+
const dbx = new Dropbox({
119+
accessToken: process.env.DROPBOX_ACCESS_TOKEN,
120+
});
121+
122+
dbx.filesListFolder({ path: '' })
123+
.then(({ result }) => console.log(result.entries))
124+
.catch(console.error);
125+
</code></pre>
126+
<h3>Browser application with a bundler</h3>
127+
<p>Webpack, Rollup, Vite, and similar tools can use the package's ES module build.</p>
128+
<pre class="prettyprint source lang-js"><code>import { Dropbox } from 'dropbox';
129+
130+
const dbx = new Dropbox({ accessToken: 'YOUR_ACCESS_TOKEN' });
131+
</code></pre>
132+
<h3>Browser application from a CDN</h3>
133+
<p>The browser bundle exposes the SDK through the global <code>Dropbox</code> object. Pin an
134+
exact SDK version so a future breaking release cannot change your application
135+
unexpectedly.</p>
136+
<pre class="prettyprint source lang-html"><code>&lt;script src=&quot;https://cdn.jsdelivr.net/npm/dropbox@10.34.0/dist/Dropbox-sdk.min.js&quot;>&lt;/script>
137+
&lt;script>
138+
const dbx = new Dropbox.Dropbox({ accessToken: 'YOUR_ACCESS_TOKEN' });
139+
&lt;/script>
111140
</code></pre>
112-
<p>If you are using the repository from the browser, you can use any CDNs that hosts the Dropbox package by including a script tag with the link to the package. However, we highly recommend you do not directly import the latest version and instead choose a specific version. When we update and release a breaking change, this could break production code which we hope to avoid. Note, we follow <a href="https://semver.org/">semver</a> naming conventions which means that any major version update could contain a breaking change.</p>
113-
<p>After installation, follow one of our <a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples">Examples</a> or read the <a href="https://dropbox.github.io/dropbox-sdk-js/">Documentation</a>.</p>
114-
<p>You can also view our <a href="https://www.dropbox.com/lp/developers/reference/oauth-guide">OAuth guide</a>.</p>
141+
<p>Do not hard-code production access tokens in public source code.</p>
142+
<h3>Web Worker</h3>
143+
<p>The same browser bundle can be loaded in a Worker:</p>
144+
<pre class="prettyprint source lang-js"><code>importScripts('https://cdn.jsdelivr.net/npm/dropbox@10.34.0/dist/Dropbox-sdk.min.js');
145+
146+
const dbx = new Dropbox.Dropbox({ accessToken: 'YOUR_ACCESS_TOKEN' });
147+
</code></pre>
148+
<h3>Install from source</h3>
149+
<p>Building is required only when developing the SDK itself or running examples
150+
directly from this repository.</p>
151+
<pre class="prettyprint source lang-sh"><code>git clone https://github.com/dropbox/dropbox-sdk-js.git
152+
cd dropbox-sdk-js
153+
npm install
154+
npm run build
155+
</code></pre>
156+
<h2>Browser authentication and PKCE</h2>
157+
<p>Client-side applications cannot keep an app secret confidential. Never embed a
158+
Dropbox app secret in browser or Worker code. Use the OAuth authorization-code
159+
flow with PKCE and your app key instead. See the <a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples/javascript/pkce-browser">browser PKCE example</a>
160+
and the <a href="https://www.dropbox.com/lp/developers/reference/oauth-guide">Dropbox OAuth guide</a>. PKCE requires a secure context and the
161+
Web Crypto API.</p>
162+
<p>Server applications can keep an app secret confidential and may use the regular
163+
authorization-code flow.</p>
164+
<h2>API reference</h2>
165+
<ul>
166+
<li><a href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html">Dropbox class</a> — Dropbox API routes for files, sharing, users,
167+
teams, and other namespaces.</li>
168+
<li><a href="https://dropbox.github.io/dropbox-sdk-js/DropboxAuth.html">DropboxAuth class</a> — OAuth URLs, PKCE, access tokens, and token
169+
refresh.</li>
170+
<li><a href="https://dropbox.github.io/dropbox-sdk-js/DropboxResponseError.html">DropboxResponseError class</a> — errors returned by API requests.</li>
171+
<li><a href="https://dropbox.github.io/dropbox-sdk-js/global.html">Global API</a> — generated methods and route type definitions.</li>
172+
</ul>
173+
<p>The complete generated <a href="https://dropbox.github.io/dropbox-sdk-js/Dropbox.html">API reference</a> is published on GitHub
174+
Pages.</p>
115175
<h2>Examples</h2>
116-
<p>We provide <a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples">Examples</a> to help get you started with a lot of the basic functionality in the SDK. We provide most examples in both Javascript and Typescript with some having a Node equivalent.</p>
176+
<p>The <a href="https://github.com/dropbox/dropbox-sdk-js/tree/main/examples">examples</a> demonstrate common SDK operations. Most are available
177+
in both JavaScript and TypeScript, with additional Node.js OAuth examples.</p>
117178
<ul>
118179
<li>
119180
<p><strong>OAuth</strong></p>
@@ -185,7 +246,7 @@ <h4 class="modal-title">Search results</h4>
185246
<span class="jsdoc-message">
186247
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.6</a>
187248

188-
on 2026-07-16T05:59:45+00:00
249+
on 2026-07-16T06:25:38+00:00
189250

190251
using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>.
191252
</span>

quicksearch.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)