Lens Protocol Front End Starter

This is an example of how to build a front-end application on top of Lens Protocol.

The main queries used in this app are defined in api.js:

  1. recommendProfiles – get popular profiles

  2. getProfiles – get profiles by passing in an array of profileIds

  3. getPublications – returns a list of publications based on your request query

  4. searchProfiles – allows you to search across hashtags on publications or profile handles. This query returns either a Post and Comment or Profile.

You can view all of the APIs here

Running this project

You can run this project by following these steps:

  1. Clone the repo, change into the directory, and install the dependencies

git clone [email protected]:dabit3/lens-protocol-frontend.git

cd lens-protocol-frontend

npm install

# or

  1. Run the project
npm run dev
  1. Open the project in your browser at localhost:3000


View Github