onchfs
onchfs is a permissionless unix-like content-addressable file system fully stored on-chain designed to be delivered through the http protocol.
onchfs is inspired by ethfs, ipfs, bitcoin ordinals recursive inscriptions, Unix filesystem, and aims at providing a general framework for working with files stored on-chain, following modern standards & practices.
Read more here.
onchfs.io
onchfs.io provides proxies and tools to utilize onchfs.
For now we support Tezos (mainnet and ghostnet).
Tezos mainnet: https://onchfs.io Tezos ghostnet: https://ghostnet.onchfs.io
onchfs cli
Interact with onchfs using our command-line interface.
$ npm install -g onchfs-cli
A Tezos wallet must be initiated and have enough XTZ to cover costs.
$ export ONCHFSCLI_TEZOS_PRIVATE_KEY=edsk... $ onchfs put app/ Network: tezos:mainnet RPC: https://mainnet.smartpy.io Directory CID: 6b84ad89218c5bd38241e4a5ccbb6b789e5826cf2c9a0dede1673c3a2f7670db <- CID A total of 1 batch operations is required. Estimated cost for uploading is 0.512984 XTZ. Proceed? (yes/no) yes Awaiting confirmation for batch operation oooQNsuKM7FB5CAT3LtAJETu9hyaUrM3JJYzVA23Uede4fWKmgU... Directory upload completed successfully. $ onchfs get onchfs://6b84ad89218c5bd38241e4a5ccbb6b789e5826cf2c9a0dede1673c3a2f7670db <- GET CID ⛓️ └─ app: b238ef08d1cf577f6acc2c71d0cf94192b069515a8d9321b097a965dbefb5d69 <- APP ROOT ├─ index.html: af1e21dce99d5cd881c72ad9e2ccbe4ddb79e165b2d078826e40fe000a055407 └─ styles.css: c99c1d01fd8307fe4e0d72422832045b3622d882f876bb396940309142ce85e6
proxy
You can now access your app via the onchfs.io proxy
$ open https://onchfs.io/b238ef08d1cf577f6acc2c71d0cf94192b069515a8d9321b097a965dbefb5d69
domain
You can add a DNS TXT record and access your site using a domain name!
_onchfs.asbjornenge.com TXT onchfs://b238ef08d1cf577f6acc2c71d0cf94192b069515a8d9321b097a965dbefb5d69
$ open https://onchfs.io/@asbjornenge.com