Lenskit
lens protocol kit
Install / Use
/learn @daoleno/LenskitREADME
🌿 LensKit 🌿
lenskit is a set of libraries for integrating lens protocol into your application.
Installation
yarn add @lenskit/react
Warning
This package is still in development and not ready for production.
Hooks
useAuth
const { auth, token, error } = useAuth()
useIndexedTx
const { tx, error } = useIndexedTx(txHash)
useProfile
const { profile, loading, error } = useProfile({ profileId })
useProfiles
const { profiles, loading, error } = useProfiles({ ownedBy: [address], limit: 1 })
useCreateProfile
const { createProfile, profileId, loading, error } = useCreateProfile()
useSetProfileMetadata
const { setProfileMetadata, tx, loading, error } = useSetProfileMetadata()
usePost
const { post, publicationId, loading, error } = usePost()
useCollect
const { collect, tx, loading, error } = useCollect()
useComment
const { comment, publicationId, loading, error } = useComment()
useMirror
const { createMirror, publicationId, loading, error } = useMirror()
useFollow
const { follow, tx, loading, error } = useFollow()
useUnfollow
const { unfollow, tx, loading, error } = useUnfollow()
usePublication
const { publication, loading, error } = usePublication({ publicationId })
usePublications
const { publications, loading, error } = usePublications({
profileId: profileId,
publicationTypes: [PublicationTypes.Post],
})
License
Related Skills
node-connect
338.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
83.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
338.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
83.4kCommit, push, and open a PR
