Skip to content

feat(miniapp-sdk): add addToSidebar action (alias for addMiniApp)#591

Draft
lyoshenka wants to merge 1 commit into
mainfrom
grin/cursor/add-to-sidebar-sdk-action-47f3
Draft

feat(miniapp-sdk): add addToSidebar action (alias for addMiniApp)#591
lyoshenka wants to merge 1 commit into
mainfrom
grin/cursor/add-to-sidebar-sdk-action-47f3

Conversation

@lyoshenka

Copy link
Copy Markdown
Contributor

Summary

Implements NEYN-10365 by exposing sdk.actions.addToSidebar() as an alias for the existing “add this Mini App” flow (addMiniApp / legacy addFrame). No new host RPC is required.

Changes

  • sdk.actions.addToSidebar — same implementation and errors as addMiniApp.
  • actions.addToSidebar added to miniAppHostCapabilityList in @farcaster/miniapp-core so manifests can declare requiredCapabilities with this name.
  • sdk.getCapabilities() — when the host returns actions.addMiniApp but not actions.addToSidebar, the SDK appends actions.addToSidebar so capability checks stay consistent.
  • Docs — new action page, spec entry, sidebar link, and a short note on the addMiniApp page.

Testing

  • pnpm typecheck --filter=@farcaster/miniapp-sdk --filter=@farcaster/miniapp-core
  • pnpm check (Biome) ran on commit

Linear Issue: NEYN-10365

Open in Web Open in Cursor 

Expose sdk.actions.addToSidebar as an alias for the existing add flow, add
actions.addToSidebar to the capability list, and mirror it in getCapabilities
when the host reports addMiniApp. Document the action on the docs site.
@changeset-bot

changeset-bot Bot commented Apr 14, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a8e3210

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel

vercel Bot commented Apr 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
miniapps-docs Ready Ready Preview, Comment Apr 14, 2026 5:01am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants