Auto Drive
Auto-Drive Package Documentation
Introduction
The @autonomys/auto-drive
package provides utilities for creating and managing IPLD DAGs (InterPlanetary Linked Data Directed Acyclic Graphs) for files and folders. It facilitates chunking large files, handling metadata, and creating folder structures suitable for distributed storage systems like IPFS.
Features
- File Chunking and DAG Creation: Efficiently split large files into smaller chunks and create IPLD DAGs.
- Folder Structure Creation: Generate IPLD DAGs for directory structures.
- Metadata Handling: Add and manage metadata for files and folders.
- CID Management: Utilities for working with Content Identifiers (CIDs).
- TypeScript Support: Fully typed for enhanced developer experience.
Auto Drive Dashboard
Logging in to Auto Drive will allow you to view your upload and download limits, access files uploaded by other users, and manage and share your submissions.
-
Log in to Auto Drive
-
Sign in via Google or Discord
-
On the landing page (dashboard) you will see:
- Your upload limit (currently 100MB per month)
- Your download limit (currently 5GB per month)
- A list of uploaded files and their CIDs
- Options to Download, Share, or Remove each file
Removing a file does not delete it from the DSN, as it is permanent storage. It only removes the file from your dashboard.
You can use the in-browser environment to upload, download, or share files, or you can use the SDK functions (described later on this page) to upload files or folders via the CLI.
Getting an API Key
Click on Profile
to create your API
key. You can then use this API key in the CLI to upload files or folders.
Sharing Files
To share a file, click the Share
button next to the file. You can share it using a link, or by providing the user’s public ID. Each user’s public ID is visible on their Profile
page.