Setting Up Your Own bOS Gateway
https://youtu.be/xAygBTn3SPY
https://alpha.near.org/#/calebjacob.near/widget/PostPage?accountId=root.near&blockHeight=87788409
- Fork the NEAR Social Viewer from the NEAR Discovery repo **https://github.com/near/near-discovery-alpha**
- Sign up on **https://vercel.com/** and import the cloned repo
- Specify any team name, Build Command
npm run build
and Output Director dist
. Press "Deploy"
- Choose A Custom Domain

- Adding dependencies + your blockchains version of ethers.js (Javascript Library allowing to send transactions, calls functions, support wallets and blockchain data retrieval) to the VM
- Adding the equivalent of wallet-selector. Ex; on Solana Wallet Adapter, CosmosKit, Algorand Wallet Select,
- Making sure RPC is either inherited from the wallet or adding support to the gateway for it
https://alpha.near.org/#/calebjacob.near/widget/PostPage?accountId=microchipgnu.near&blockHeight=87869466
Easily choose which widgets you want as your default widgets here https://github.com/near/near-discovery-alpha/blob/main/src/data/widgets.js

https://docs.near.org/discovery/tutorial/bos-gateway
Editing the VM
https://github.com/NearDeFi/bos-viewer/blob/master/src/vm/vm.js
Why?
- Access all the widgets and social data stored directly on the NEAR Protocol
- Hundreds of DeFi, NFT, Social components across different chains
- Provide a developer environment to quickly have developers tinker with your stack
- Control which dependencies, which chains, and the UX for your particular gateway (viewer) all the while tapping this robust developer ecosystem