NextJS Example Widget App

This is an application running on Near Social using the NEAR blockchain network and was built using NextJS & NEAR Social Bridge.

Setup

Install all the dependencies:

yarn install

Run app:

yarn dev

Run viewer

yarn vm

Now, you can see your changes in real time. Both in React App and Widget.

Widget

There're two Widgets:

  • NextJS.jsx: using mainnet
  • NextJS.dev.jsx: using testnet

Libraries

NEAR Social Bridge: A library that allows you to create a common application using ReactJS and inject it in a controlled way into a Widget on Near Social. Therefore, the Widget talks to the React application and vice versa, making it possible to consume Discovery API resources within the React application.

NEAR Social Local Viewer: A CLI tool that allows you to run and test your Near Social Widgets locally using just your preferred code editor and your default browser.