
How it works
Capacitor is a runtime to run web apps on native platforms. It works by wrapping your web app in a native shell, while Capacitor’s bridge sends data from your web app to native features like iOS APIs and BLE.Setting Up Plaud Embedded’s Capacitor Plugin
Step 1: Clone our Embedded Capacitor Repo
Clone the Plaud-AI/Embedded-Capacitor repo.- PlaudPlugin for Capacitor runtime
- Typescript interfaces and utility functions for the PlaudPlugin
- A sample app with a NextJS application using the Capacitor wrapper to work as a native iOS app
- Plaud Capacitor Wrapper Skill for agents to implement the Plaud Plugin and the Capacitor runtime wrapper
Step 2: Setup Capacitor
1
2
Then initialize Capacitor to setup your Capacitor configs
3
Lastly, add ios to your capacitor project and sync your web app
Step 3: Setup the PlaudPlugin
1
Copy the
ios/PlaudPlugin/ framework and paste into the ios/ directory.2
Copy the
ios/App/App/MainViewController.swift into your ios/App/App directory to register the PlaudPlugin.Your ios/ directory should look like this:3
Link 
PlaudPlugin into the App target in Xcode.Open the project (npx cap open ios), then File -> Add Package Dependencies -> Add Local,Select ios/PlaudPlugin, and add the PlaudPlugin library product to the App target (the same way CapApp-SPM is already linked).
4
Add the Bluetooth entitlement in
ios/App/App/Info.plist5
Lastly, point the native shell at your web app’s URL. Set this in the root
capacitor.config.ts — that’s the source of truth.Start Using Plaud Embedded in Your “Web App”
With Capacitor, your web app can stay a web app AND be a native iOS app!
plaud-sdk.ts as a convenient typescript interface for interacting with the native iOS Plaud SDK, and write logic for connecting to devices, exporting audio, and triggering transcriptions directly from your web app.
For the full list of relevant SDK methods for interacting with Plaud devices, see our iOS SDK reference.