Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
atzufuki/alexiWorks with
•JSR Score82%•It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




License
•MIT
Downloads14/wk
•Published10 hours ago (0.53.2)
Alexi's Capacitor integration for mobile applications.
@alexi/capacitor provides the framework integration for running Alexi-powered web apps inside native iOS and Android shells via Capacitor.
Use getCapacitorApplication in project/capacitor.ts to configure and manage the Capacitor native projects. The factory wraps the Capacitor CLI (npx cap sync, npx cap run) so your project stays configured from a single TypeScript file.
Examples
Example 1
Example 1
import { getCapacitorApplication } from "@alexi/capacitor"; const app = await getCapacitorApplication({ appId: "com.example.myapp", appName: "MyApp", webDir: "dist", }); const command = Deno.args[0]; if (command === "sync") { await app.sync(); } else if (command === "run") { await app.run((Deno.args[1] ?? "ios") as "ios" | "android"); }
Built and signed on
GitHub Actions
Add Package
deno add jsr:@alexi/capacitor
Import symbol
import * as capacitor from "@alexi/capacitor";
Import directly with a jsr specifier
import * as capacitor from "jsr:@alexi/capacitor";