How you can keep your decentrally stored and hosted website up-to-date with IPFS & IPNS on Apillon
Tags: webdev, beginners, web3, api
Published: 2023-02-19 04:47:29

---
title: How you can keep your decentrally stored and hosted website up-to-date with IPFS & IPNS on Apillon
published: true
description: Updatability of data is essential, but tricky to achieve in Web3. With Apillon, you can store online files decentrally and keep them up to date without a heavy toll on storage, costs, or development time.
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2023-02-18 04:51 +0000
---

*Updatability of data is essential, but tricky to achieve in Web3. With Apillon, you can store online files decentrally and keep them up to date without a heavy toll on storage, costs, or development time.*

---

It's one thing to upload and host a file, website, or app to a decentralized network to increase accessibility and security. But quite another to keep them regularly updated.

Here is how Apillon achieves decentralized storage with the option to frequently and cost-effectively update decentrally hosted websites and apps by integrating IPFS and IPNS.

## Data mutability matters, even more so in Web3

Digital assets, files, places, and tools are comprised of data that take up online storage space. And most require frequent updates, for example, websites, apps, and digital files like NFTs, and execute them through built-in upgrades or user contributions.

Much like in a traditional online environment, data should remain controllably mutable in Web3 to:
* Stay up-to-date (e.g., websites frequently updating content)
* Deliver built-in functionalities (e.g., in-game NFTs enabling status and ownership updates)
* Allow user participation (e.g., apps enabling user-originated content uploads and editing)

> 🔎 *Learn more about why NFT metadata should be stored in a decentralized way while remaining updateable in the in-depth post by Apillon CTO [Tadej Vengust](https://dev.to/momannn). 👉 [Why decentralized storage matters for NFT metadata and your next NFT collection](https://dev.to/apillon/why-decentralized-storage-matters-for-nft-metadata-and-your-next-nft-collection-30dg)*

The ability to update data of online assets, files, and spaces is essential. But things get a bit complicated in Web3. How to achieve this on websites or apps that are hosted and store their data and files decentrally?

## Decentralized file storage

With Apillon, you can host your website or app and store its files through **IPFS** and **Crust Network**.

### IPFS

[IPFS](https://ipfs.tech/) is a distributed system that allows you to store and access online files, websites, and apps. When you upload a file, it gets a new hash and content identifier (CID), a unique, immutable fingerprint pointing to it. But IPFS could be difficult to implement and doesn't inherently support file edits.

### Crust Network
[Crust Network](https://crust.network/) is a decentralized cloud storage provider on the Polkadot network. It supports multiple storage-layer protocols, including IPFS, and delivers instantly accessible on-chain storage functions. Crustʼs technical stack also supports data manipulation and computing.

Ok, but what about the editability of data stored on a decentralized storage?

## Data mutability

Every time you upload a file or website on a decentral network of nodes through IPFS, it gets a new hash and a content identifier (CID) used as the content address.

And here is the drawback. IPFS allows you only to upload files, not to update them. What you uploaded earlier still exists on IPFS under the same CID, while a newly uploaded file, even if it's just a new version of the existing file, gets a new CID. And every new file or website upload on Crust Network gets pinned to all contributing nodes without replacing its older versions.

So whenever you share a link to your IPFS-based file or website, it always points to the CID or the version it assumed when uploaded. In order to access the latest version of the file or website, you would have to share a new CID that was generated with the latest upload.

Generating a new CID for every file or website upload takes a toll on the storage space, and it's simply impractical and costly.

The Apillon platform solves this by further integrating **IPNS**.

### IPNS

[IPNS](https://docs.ipfs.tech/concepts/ipns/), the InterPlanetary Name System, allows you to update data and files through mutable pointers without changing the CID, saving transaction fees and time.

IPNS's mutable pointers get updated every time a website or app publishes a change and work as updateable links that retain their functionality of content addressing. This way, when you share a link to your decentrally hosted website, it always points to the latest version, so you can rest assured the users access its up-to-date contents.

Now, with IPNS-based uploads, the old version of a file, website, or app does not get automatically deleted. On the Apillon platform, the old versions of Web3-hosted websites are deleted after the 6-month period. Or, upon user decision, they can remain permanently accessible, an essential feature to support the self-sovereignty of decentralized storage users.

Every Web3 project planning to upload, store, and host websites, apps, or other files that require content updates should consider utilizing IPNS, too. And with Apillon, it's just a matter of clicks.

## IPFS & IPNS on the Apillon platform

To sum up, Web3 assets, files, websites, and apps that aim to deliver the intended value, good security, and high agility should store and host data in a decentralized way *while* enabling frequent and easy updates.

At the time of writing, the Apillon platform delivers the IPFS and IPNS connectivity in its **Web3 Hosting service**. In future upgrades, IPFS and IPNS will also be made available in the Web3 Storage service.

## Apillon Web3 Hosting with file updateability

With Apillon, you can host your website or app on a decentralized network to make it permanently accessible, unstoppable from third-party impact, and easily updatable.

Apillon Web3 Hosting service implements AWS S3 as a cache to optimize the upload of large files, [IPFS](https://ipfs.tech/), and [Crust Network](https://crust.network/) to pin files on multiple IPFS nodes. Besides, it supports [IPNS](https://docs.ipfs.tech/concepts/ipns/) for frequent updates of uploaded files and data.

> 🔎 *Learn more about Web3 Hosting in the Apillon Platform Closed Beta, where you can test decentralized hosting features and deliver feedback for its improvement. 👉 [Apillon Platform Closed Beta walk-through — Web3 Hosting
](https://dev.to/apillon/apillon-platform-closed-beta-walk-through-web3-hosting-12fk)*

Among the first on the market, Apillon lets you take advantage of Crust Network, IPFS, *and* IPNS at one spot to launch, host, and update your Web3 website or app easily, faster, and at a significantly lower price than doing it manually.

Test the waters and use Apillon for your next Web3 project.

[![apillon-create-account](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xopk1zd839trllrx8d4q.png)](https://app.apillon.io/login)

---

*This post was originally published on [Apillon Medium](https://blog.apillon.io/how-apillon-platform-supports-web3-file-updates-with-ipfs-ipns-53534f985be).*