Lens Pwa
Lens PWA
- 83
- GitHub stars
- Free
- Price
- Feb 7, 2024
- Updated
Overview
Lens PWA is an example progressive web app and boilerplate by Nader Dabit that combines Lens Protocol, WalletConnect, Privy and shadcn/ui. It gives developers a starting point for a decentralized social app on Lens, with wallet connection handled through WalletConnect and the UI built from shadcn/ui components.
The project is a small Next.js 13 app written in TypeScript. Its dependencies include the Lens Protocol React and wagmi SDKs, ConnectKit, viem and ethers, along with Radix-based shadcn/ui primitives and next-themes for theming. The repository has not been updated since early 2024, so its Lens SDK versions are alpha releases from that period.
Features
- Lens Protocol integration: Uses
@lens-protocol/react-web,@lens-protocol/wagmiand@lens-protocol/metadata. - Wallet connection: WalletConnect through wagmi and ConnectKit, configured with a
NEXT_PUBLIC_WC_IDvariable. - PWA example: Presented as a progressive web app example, with react-device-detect among its dependencies.
- Markdown support: Includes react-markdown for rendering Markdown content.
- shadcn/ui components: Avatar, dropdown menu and slot primitives with light and dark themes.
Tech stack
- Next.js 13.4, React 18, TypeScript 5.1
- Tailwind CSS 3.3, shadcn/ui, Radix UI
- Lens Protocol SDK, wagmi, viem, ethers, ConnectKit
- next-themes, lucide-react
Getting started
git clone git@github.com:dabit3/lens-pwa.git
npm install # or yarn, etc..
npm run dev