1import { SkynetClient } from "skynet-js";
2
3// create a client
4const client = new SkynetClient();
5
6// Assume we have a file from an input form.
7
8async function example() {
9 try {
10 // upload
11 const { skylink } = await client.uploadFile(file);
12
13 // download
14 await client.downloadFile(skylink);
15
16 console.log('Download successful');
17 } catch (error) {
18 console.log(error)
19 }
20}
Our immutable data layer means files are instantly accessible on any device, by any portal and are fully verifiable, by leveraging trustless, decentralized storage on the Sia blockchain.
SkyDB enables complex apps by providing a key-value store for mutable data secured by the private key of the user.
Our SDKs are built with web2 developers in mind. Client-side web apps and static generators are perfect for using Skynet to deploy with.
With integrations with HNS & ENS, along with easy-access for off-chain storage, Skynet is positioned to connect with the DWeb and web3 technologies you need.
Start building without worrying about server overhead costs or where users will come from. Bootstrap the user experience with interoperable storage and user-identity – right out of the box.
Our immutable data layer means files are instantly accessible on any device, by any portal and are fully verifiable, by leveraging trustless, decentralized storage on the Sia blockchain.
SkyDB enables complex apps by providing a key-value store for mutable data secured by the private key of the user.
Our SDKs are built with web2 developers in mind. Client-side web apps and static generators are perfect for using Skynet to deploy with.
With integrations with HNS & ENS, along with easy-access for off-chain storage, Skynet is positioned to connect with the DWeb and web3 technologies you need.
Start building without worrying about server overhead costs or where users will come from. Bootstrap the user experience with interoperable storage and user-identity – right out of the box.
Our immutable data layer means files are instantly accessible on any device, by any portal and are fully verifiable, by leveraging trustless, decentralized storage on the Sia blockchain.
Whether hosting your front-end or building a full-scale web app, start here.