Skip to main content

Built and signed on GitHub Actions

Works with
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
It is unknown whether this package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score82%
License
MIT
Downloads14/wk
Published5 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

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"; 
or

Import directly with a jsr specifier

import * as capacitor from "jsr:@alexi/capacitor";