
Company News
Meet the Socket Team at RSAC and BSidesSF 2026
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.
@capacitor/synapse
Advanced tools
You have plugins that exist for both Capacitor and Cordova. They share the same API for the most part; as in they both expose a `ping` method that takes a string and returns that string with the word "_pong" appeneded to it. You can use synapse to create
You have plugins that exist for both Capacitor and Cordova. They share the same API for the most part; as in they both expose a ping method that takes a string and returns that string with the word "_pong" appeneded to it. You can use synapse to create a single call in ODC that will use which ever plugin is available to the built app. Adding this to your plugins does not alter their ability to be used in the normal fashion they would be directly in a Capacitor or Cordova app.
import { MyPlugin } from 'capacitor-my-plugin';
...
async function buttonClick() {
try {
const resp = await MyPlugin.ping({text: "Hello World"});
console.log(resp); // "Hello World_pong"
} catch (error) {
console.error(error);
}
}
function buttonClick() {
window.cordova.plugins.MyPlugin.ping(
{text: "Hello World"},
function(response) {
console.log(response); // "Hello World_pong"
},
function(error) {
console.error(error);
}
)
}
function buttonClick() {
window.CapacitorUtils.Synapse.MyPlugin.ping(
{text: "Hello World"},
function(response) {
console.log(response); // "Hello World_pong"
},
function(error) {
console.error(error);
}
)
}
While similar to the way you call cordova plugins, the synapse call will use the appropriate plugin for the platform it is running on. If the app is built with Capacitor, it will use the Capacitor plugin. If the app is built with Cordova, it will use the Cordova plugin.
FAQs
### Example
The npm package @capacitor/synapse receives a total of 265,553 weekly downloads. As such, @capacitor/synapse popularity was classified as popular.
We found that @capacitor/synapse demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.

Research
/Security News
Malicious Packagist packages disguised as Laravel utilities install an encrypted PHP RAT via Composer dependencies, enabling remote access and C2 callbacks.

Research
/Security News
OpenVSX releases of Aqua Trivy 1.8.12 and 1.8.13 contained injected natural-language prompts that abuse local AI coding agents for system inspection and potential data exfiltration.