{"repo":"vgrichina/web4","free":true,"listed":false,"github":"https://github.com/vgrichina/web4","clone":"git clone https://github.com/vgrichina/web4.git","description":"Web4 is a new way to distribute decentralized apps. Deploy single WASM smart contract to deploy whole web app.","language":"JavaScript","stars":118,"topics":["blockchain","web3","nearprotocol","web4","assemblyscript","rust","ipfs","permaweb"],"license":null,"category":"blockchain-web3","readme_excerpt":"web4 Table of Contents - TL;DR - What is web4? - How it works? - Authentication - Known web4 sites - Useful tools - Example contract - Request - Response - Loading data - Posting transactions - Caching considerations - Rust support - Deployment - near.page - testnet.page - Running locally - FAQ - Priorities - Roadmap - Contributing TL;DR Manage website frontend in smart contract Every .near account receives a subdomain under https://near.page E.g. thewiki.near serves https://thewiki.near.page Use IPFS with Filecoin to host larger files Quick Start: Your site will be live at https://your-account.near.page 🎉 What is web4? - Decentralised ownership and hosting - Content permanence by default, no more expired links - Offline friendly - Web presence controlled by user - Interactive mobile apps linked together as websites, no appstores How it works? You only need to deploy single smart contract using WebAssembly to host your app HTTP backend, static resources and blockchain logic. See Example contract or Rust support for implementation details. There is an HTTP gateway to NEAR blockchain which allows smart contract to handle arbitrary GET requests. Every smart contract on NEAR also gets corresponding API endpoint which can be accessed through regular HTTP requests. Authentication Web4 provides simplified authentication flow: - Login via /web4/login endpoint - Logout via /web4/logout endpoint - Current account ID is available via web4 account id cookie - App-specific private key, i","default_branch":null,"files":null,"tree":[],"storefront":"/r/vgrichina","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vgrichina/web4/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}