TON Storage Overview

๐Ÿ“ฆ TON Storage Overview

TON Storage provides decentralized, globally distributed file storage on The Open Network (TON), ensuring reliable data accessibility and facilitating seamless integration with Web3 applications and decentralized websites.

๐ŸŒ What is TON Storage?

TON Storage is a decentralized file storage system built on the TON blockchain network. It utilizes peer-to-peer technology similar to torrents but is optimized and secured within TON's decentralized ecosystem.

๐Ÿ”— Core Concepts

Bags

  • Bag: A "Bag" is TON Storage's basic storage unit, similar to a torrent file. It contains one or multiple files, structured to facilitate distribution and sharing across the TON network.
  • Bag ID: A unique identifier for each Bag, used to access files within the TON Storage network.

Decentralization & Availability

Currently, Openfiles stores files centrally on dedicated nodes, providing quick and reliable access during the initial stages of development. However, thanks to the integration with TON Storage, these files can be easily shared and distributed across multiple independent nodes worldwide. This design allows anyone in the TON ecosystem to host additional copies, enhancing availability and preparing for future decentralized distribution.

Immutability

Files stored on TON Storage are immutable. Any change results in a new Bag creation, generating a new unique Bag ID.

๐Ÿš€ Integration with Openfiles

Openfiles provides a user-friendly interface and developer APIs to simplify interaction with TON Storage, enabling easy file management for Web3 applications.

  • Dashboard: app.openfiles.xyz (opens in a new tab)
  • Python SDK: Easily integrate TON Storage functionality into your Python applications.
  • REST API: Programmatically manage file uploads, downloads, and storage with the Openfiles API.

๐Ÿ—‚๏ธ Folders on TON Storage

Folders are treated as single entities within TON Storage. When you upload a folder using Openfiles, it is stored as a complete Bag, suitable for scenarios such as static site hosting via TON Proxy.

๐Ÿ”‘ Benefits of TON Storage

  • Decentralized Accessibility: Distributed globally, reducing latency and enhancing access speeds.
  • Web3 Integration: Direct compatibility with TON Proxy, TON Sites, TON DNS, and NFTs.
  • Cryptographic Integrity: Files are protected and verified using cryptographic hashes, ensuring content authenticity.

๐Ÿ›ก๏ธ Current Openfiles Storage Setup

Currently, Openfiles stores files centrally on dedicated nodes for rapid development and initial user convenience. However, these files are fully accessible and distributable through TON Storage, leveraging its decentralized distribution and caching benefits.

โšก Getting Started

  1. Sign up and access your dashboard: app.openfiles.xyz (opens in a new tab)
  2. Obtain an API Token: Manage files programmatically via the Openfiles API.
  3. Use the Python SDK: Simplify your integration and automate file management workflows.

๐ŸŒŸ Use Cases

Static Websites

Host decentralized static websites effortlessly on TON Storage and make them accessible via human-readable TON domains.

NFTs

Store NFT content securely and reliably using TON Storage, integrating smoothly with existing TON NFT smart contracts.

Application Data

Leverage decentralized storage for application assets, data backups, and user-generated content, enhancing resilience and global accessibility.


For more detailed guidance, see the official TON Storage documentation or continue exploring our Openfiles guides and API documentation.

Happy Decentralizing! ๐Ÿš€