Lens TypeScript SDK

The Lens SDK is the official TypeScript client for the Lens API. It wraps GraphQL operations behind typed functions, handles auth token lifecycle, encodes content metadata (Lens metadata standards), and integrates with viem/ethers for contract calls when needed.

API entry from apis.yml

apis.yml Raw ↑
aid: lens-protocol:lens-sdk
name: Lens TypeScript SDK
description: 'The Lens SDK is the official TypeScript client for the Lens API.

  It wraps GraphQL operations behind typed functions, handles auth

  token lifecycle, encodes content metadata (Lens metadata standards),

  and integrates with viem/ethers for contract calls when needed.

  '
humanURL: https://lens.xyz/docs/sdk
baseURL: https://www.npmjs.com/package/@lens-protocol/client
tags:
- SDK
- TypeScript
- Client Library
properties:
- type: Documentation
  url: https://lens.xyz/docs/sdk
- type: Package
  url: https://www.npmjs.com/package/@lens-protocol/client
- type: Repository
  url: https://github.com/lens-protocol/lens-sdk