# WEB4

By [Irancoin](https://paragraph.com/@irancoin) · 2025-03-14

---

\*\*Web4 Overview\*\*

\=======================

Web4 is a decentralized web platform that allows users to deploy and host web applications on the blockchain using the NEAR protocol. It enables developers to create web applications that are censorship-resistant, low-cost, and forever available.

\*\*Key Features of Web4\*\*

* * *

\* Decentralized ownership and hosting

\* Content Persistence By default, there are no more expired links

\* Offline friendly

\* Web presence is controlled by the user

\* Interactive mobile apps linked together as websites, no app store

\*\* How Web4 Works \*\*

* * *

Web4 allows developers to deploy a single smart contract using WebAssembly, which hosts the entire web application, including the HTTP backend, static resources, and blockchain logic. The platform provides an HTTP gateway to the NEAR blockchain that allows smart contracts to handle arbitrary GET requests. Each smart contract in NEAR also receives a corresponding API endpoint that can be accessed via normal HTTP requests.

\*\* Authentication in Web4 \*\*

* * *

Web4 provides a simplified authentication flow using "/web4/login" and "/web4/logout". Account information is stored in cookies, and the current account ID is contained in the "web4\_account\_id" cookie.

\*\*Uses for Web4\*\*

* * *

Web4 has a wide range of uses, including:

\* Decentralized social media platforms

\* Online markets

\* Game platforms

\* E-commerce websites

\* Decentralized financial programs (DeFi).

\*\*Getting Started with Web4\*\*

* * *

To get started with Web4, you can follow these steps:

1\. Install the Web4 CLI tool using “npm install -g web4-deploy”.

2\. Create a new Web4 project using "web4 init my-project".

3\. Deploy your Web4 application to the NEAR blockchain using "web4 deploy".

4\. Access your Web4 application using the URL "[https://your-account.near.page](https://your-account.near.page)".

\*\*web resources 4\*\*

* * *

For more information on Web4, you can check out the following resources:

\* \[Web4 documents\] ([https://web4.near.page/docs](https://web4.near.page/docs))

\* \[Web4 GitHub Repository\] ([https://github.com/vgrichina/web4](https://github.com/vgrichina/web4))

\* \[Web4 forum\] ([https://forum.web4.near.page](https://forum.web4.near.page))

---

*Originally published on [Irancoin](https://paragraph.com/@irancoin/web4)*
