
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@cere-ddc-sdk/file-storage
Advanced tools
The package provides API for storing and reading large files to DDC
Using NPM:
npm install @cere-ddc-sdk/file-storage --save
Using yarn:
yarn add @cere-ddc-sdk/file-storage
A quick guide of how to upload a file to DDC TESTNET using the FileStorage API.
Create a FileStorage instance
import * as fs from 'fs';
import { FileStorage, File, TESTNET } from '@cere-ddc-sdk/file-storage';
const bucketId = 1n;
const seed = 'hybrid label reunion only dawn maze asset draft cousin height flock nation';
const fileStorage = await FileStorage.create(seed, TESTNET);
The account used to create the instance should have a positive balance, DDC deposit, and the bucket should be created in advance
Upload a file to DDC
const filePath = './my-picture.jpg';
const fileStats = fs.statSync(filePath);
const fileStream = fs.createReadStream(filePath);
const file = new File(fileStream, { size: fileStats.size });
const fileCID = await fileStorage.store(bucketId, file);
console.log('The uploaded file CID', fileCID)
That is it. You can open the file from your browser
const fileUrl = `https://storage.testnet.cere.network/${bucketId}/${fileCID}`;
console.log('The file URL', fileUrl);
For more information about what this package provides, see API reference
Licensed under the Apache License
FAQs
File storage client
The npm package @cere-ddc-sdk/file-storage receives a total of 33 weekly downloads. As such, @cere-ddc-sdk/file-storage popularity was classified as not popular.
We found that @cere-ddc-sdk/file-storage demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.