Skip to content

The @sypnia/files package

One npm package with subpaths for browsers, servers and React.

Applies to EngineCloud
View as Markdown
ImportFor
@sypnia/files/clientbrowsers and apps: uploads (direct and resumable), downloads, URLs, signed URLs, with the user’s session
@sypnia/files/serverservers: the secret key, bucket management, policies, imports, S3 keys
@sypnia/files/reactuseUpload() and <FileDrop> with progress and resume
npx @sypnia/filesthe CLI
TypeScript
import { createFiles } from '@sypnia/files/client';
const files = createFiles('https://<ref>.files.sypnia.com', { session: sypnia.auth });

session accepts a @sypnia/data client, any object with getAccessToken(), or a function returning a token, so it works with other auth providers. ESM with types, Node 20+, browsers, Bun, Deno and React Native.

    Search pages, sections and terms