Skip to content

feat(formbricks): initial release#844

Merged
robingenz merged 4 commits into
mainfrom
feat/issue-842
May 12, 2026
Merged

feat(formbricks): initial release#844
robingenz merged 4 commits into
mainfrom
feat/issue-842

Conversation

@robingenz
Copy link
Copy Markdown
Member

Summary

Initial release of @capawesome/capacitor-formbricks, an unofficial Capacitor plugin wrapping the Formbricks SDKs for in-app surveys and feedback.

The plugin exposes the common API surface supported across all three Formbricks SDKs (@formbricks/js, com.formbricks:android, FormbricksSDK for iOS):

  • setup, setUserId, setAttribute, setAttributes, setLanguage, track, logout

Notes

  • Android: depends on com.formbricks:android:1.2.0. Host apps must enable Data Binding (documented in the README).
  • iOS: depends on FormbricksSDK ~> 1.2. Minimum deployment target bumped to 16.6 to match the FormbricksSDK podspec requirement.
  • Web: wraps @formbricks/js@^4.4.0 (declared as an optional peer dependency).

Close #842

Test plan

  • npm run verify succeeds for all three platforms
  • Smoke-test setup + track in the example app on Android
  • Smoke-test setup + track in the example app on iOS
  • Smoke-test setup + track in the example app on Web

Copilot AI review requested due to automatic review settings April 30, 2026 20:29
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Initial release of @capawesome/capacitor-formbricks, adding a cross-platform Capacitor wrapper around the Formbricks SDKs to enable in-app surveys/feedback on Web, Android, and iOS.

Changes:

  • Added TypeScript plugin surface (setup, track, logout, user/attribute/language setters) with a Web implementation wrapping @formbricks/js.
  • Added native implementations for Android (Kotlin + Capacitor plugin bridge) and iOS (Swift + Capacitor bridged plugin), including SDK dependency wiring.
  • Added a full example app (Web/Android/iOS) plus packaging/build scaffolding (Rollup, TS config, CocoaPods/SwiftPM).

Reviewed changes

Copilot reviewed 102 out of 138 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/formbricks/src/definitions.ts Defines the public Capacitor plugin API + option interfaces.
packages/formbricks/src/index.ts Registers the plugin and wires the web implementation.
packages/formbricks/src/web.ts Web implementation delegating to @formbricks/js.
packages/formbricks/android/** Android native bridge + build config for com.formbricks:android.
packages/formbricks/ios/** iOS native bridge + CocoaPods workspace + option parsing + errors.
packages/formbricks/README.md Installation, platform notes (Data Binding / iOS min target), usage & API docs.
packages/formbricks/example/** Example app scaffolding for smoke testing across platforms.
packages/formbricks/example/android/gradlew Gradle wrapper script for the example Android project (contains a blocking issue).
packages/formbricks/package.json / rollup.config.mjs / tsconfig.json Build + packaging configuration.
package-lock.json Adds the new workspace package and its JS dependency.
.changeset/formbricks-plugin.md Declares release notes/version bump for the new package.
Files not reviewed (2)
  • packages/formbricks/ios/Plugin.xcodeproj/project.xcworkspace/contents.xcworkspacedata: Language not supported
  • packages/formbricks/ios/Plugin.xcworkspace/contents.xcworkspacedata: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/formbricks/example/android/gradlew
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Apr 30, 2026

Open in StackBlitz

@capawesome/capacitor-age-signals

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-age-signals@844

@capawesome-team/capacitor-android-battery-optimization

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-android-battery-optimization@844

@capawesome/capacitor-android-dark-mode-support

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-android-dark-mode-support@844

@capawesome/capacitor-android-edge-to-edge-support

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-android-edge-to-edge-support@844

@capawesome-team/capacitor-android-foreground-service

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-android-foreground-service@844

@capawesome/capacitor-app-review

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-app-review@844

@capawesome/capacitor-app-shortcuts

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-app-shortcuts@844

@capawesome/capacitor-app-update

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-app-update@844

@capawesome/capacitor-apple-sign-in

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-apple-sign-in@844

@capawesome/capacitor-asset-manager

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-asset-manager@844

@capawesome/capacitor-background-task

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-background-task@844

@capawesome/capacitor-badge

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-badge@844

@capawesome/capacitor-cloudinary

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-cloudinary@844

@capawesome-team/capacitor-datetime-picker

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-datetime-picker@844

@capawesome-team/capacitor-file-opener

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome-team/capacitor-file-opener@844

@capawesome/capacitor-file-picker

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-file-picker@844

@capawesome/capacitor-formbricks

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-formbricks@844

@capawesome/capacitor-google-sign-in

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-google-sign-in@844

@capawesome/capacitor-libsql

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-libsql@844

@capawesome/capacitor-live-update

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-live-update@844

@capawesome/capacitor-managed-configurations

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-managed-configurations@844

@capawesome/capacitor-photo-editor

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-photo-editor@844

@capawesome/capacitor-pixlive

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-pixlive@844

@capawesome/capacitor-posthog

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-posthog@844

@capawesome/capacitor-realtimekit

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-realtimekit@844

@capawesome/capacitor-screen-orientation

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-screen-orientation@844

@capawesome/capacitor-screenshot

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-screenshot@844

@capawesome/capacitor-square-mobile-payments

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-square-mobile-payments@844

@capawesome/capacitor-superwall

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-superwall@844

@capawesome/capacitor-torch

npm i https://pkg.pr.new/capawesome-team/capacitor-plugins/@capawesome/capacitor-torch@844

commit: ec396de

@robingenz
Copy link
Copy Markdown
Member Author

@copilot Do also update the github issue templates and add the new plugin there.

Copy link
Copy Markdown
Contributor

Copilot AI commented May 1, 2026

@copilot Do also update the github issue templates and add the new plugin there.

Done! Added "Formbricks" to the plugin list in both bug_report.yml and feature_request.yml issue templates in alphabetical order (between "File Picker" and "Geocoder") in commit ec396de.

@robingenz robingenz self-assigned this May 4, 2026
@robingenz robingenz merged commit 8ca06c2 into main May 12, 2026
6 checks passed
@robingenz robingenz deleted the feat/issue-842 branch May 12, 2026 12:42
@github-actions github-actions Bot mentioned this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Formbricks Plugin

3 participants