Deck Docs

Feedback SDK

Embed @deck-io/feedback widgets so in-product feedback flows into Deck.

Feedback SDK

The Feedback SDK is Deck’s official package for collecting in-product feedback — from React UIs in the browser or from Node/server code.

Package@deck-io/feedback (0.2.0+)
Client entry@deck-io/feedback — React 18+ (peer)
Server entry@deck-io/feedback/server — Node / Route Handlers / Server Actions (no React)
AuthPublishable keys (pk_…)
IngestPOST widget feedback API

Use it when you want customers to share feedback inside your product — after a feature launch, on a settings page, next to an AI response, from a backend failure path, or anywhere you own the UX.

Submissions land in Deck under Manage → Widgets. Written feedback is synthesized into insights and themes on a weekday batch schedule.

When to use this SDK

Use the Feedback SDK when…Prefer something else when…
You need thumbs, a dialog, or a custom form in your appYou need server-side access to themes, insights, or Build data → Public API
You need to submit feedback from Node / Next.js server codeYou need secret dk_… keys for the Public API (never put those in this SDK)
Auth must be safe in the browser (publishable pk_…)You only need one-off CSV / interview uploads in the Deck app
Feedback should appear as a first-class Deck source

What you get

  • DeckProvider — publishable-key auth, user identity, URL privacy, theming
  • Built-in UIFeedbackDialog, ThumbsFeedback
  • Headless APIsuseSubmitFeedback, low-level submitFeedback
  • Server clientcreateDeckFeedbackClient from @deck-io/feedback/server
  • Privacy-safe defaults — browser URL metadata is origin + pathname only (no query/hash)

Guides in this section

  1. Install
  2. Setup in Deck — widgets and publishable keys
  3. Quick start
  4. DeckProvider
  5. Built-in components
  6. Headless submit
  7. Server-side submit
  8. Identity and context
  9. URL privacy
  10. Theming
  11. Where feedback goes
  12. Security
  13. API reference
  14. Troubleshooting

Prerequisites

  1. A Deck organization with Feedback Widgets enabled
  2. A widget (wgt_…) from Manage → Widgets
  3. A publishable key (pk_…) from Settings → Feedback Widget SDK
  4. For the React entry: a React app with react and react-dom ≥ 18
  5. For the server entry: Node ≥ 20 (no React required)

Feedback Widgets setup pages must be enabled for your Deck organization before you can create widgets or publishable keys. The npm package is public; live submissions still require a valid widget ID and pk_… key from Deck.

Next step

Start with Install, then Setup in Deck.