Mirror of Proton AG's Drive SDK from npm
  • TypeScript 100%
Find a file
2026-01-17 13:31:42 +01:00
src add proton drive sdk source from npm 2026-01-17 13:31:42 +01:00
get-sdk.sh add proton drive sdk source from npm 2026-01-17 13:31:42 +01:00
LICENSE Initial commit 2026-01-17 13:14:23 +01:00
package.json add proton drive sdk source from npm 2026-01-17 13:31:42 +01:00
README.md add proton drive sdk source from npm 2026-01-17 13:31:42 +01:00

Drive SDK for web

Use only what is exported by the library. This is the public supported API of the SDK. Anything else is internal implementation that can change without warning.

Start by creating instance of the ProtonDriveClient. That instance has then available many methods to access nodes, devices, upload and download content, or manage sharing.

import { ProtonDriveClient, MemoryCache, OpenPGPCryptoWithCryptoProxy } from 'proton-drive-sdk';

const sdk = new ProtonDriveClient({
    httpClient,
    entitiesCache: new MemoryCache(),
    cryptoCache: new MemoryCache(),
    account,
    openPGPCryptoModule: new OpenPGPCryptoWithCryptoProxy(cryptoProxy),
});