Offline cartridges cannot access the internet. External scripts, Google Fonts, or web links will not load unless removed.
Turn Your Project Into 1 Offline File
Select your HTML file along with any images, fonts, or sounds. Everything is compressed and combined into a single file that works completely offline.
1Pick Your Files
2Auto-Compress
3Save HTML or PDF
Drop your HTML, images, fonts, or folder hereTap here to select your files
Select multiple files at once or drop an entire project folderSupports HTML pages, pictures, custom fonts, and sound effects
index.html
Ready to save
Extra Media & Fonts Added
Some added files aren't linked to your HTML yet. Open Advanced to connect them or cut sprite sheets.
Check Links
1. Project FilesEmpty
Drop HTML, folders, pictures, fonts, or audioTap to add HTML, pictures, fonts, or audio
No files added yet
Internet Links Found0
These web URLs will not work when offline:
Packed Media & Fonts0
0 files
File Connections0/0
Match file names referenced in your HTML to the files you uploaded:
2. App Code
0 B
3. Size & Quality Options72% Quality • Extra Small
Converts images to modern WebP format whenever it reduces file size.
Image Quality: 72%
Max Dimensions:
Compresses your entire app and fonts so the final HTML and PDF take up minimal space.
Automatically makes uploaded font files available to your page CSS.
Developer & PDF Layout Tweaks
Paste-and-Go Cartridge Generator
Master AI System Prompt
Copy this prompt into Claude, ChatGPT, or Gemini, replace the placeholder at the bottom with your app or game description, and generate a compliant single-file ConsoleZero cartridge.
Unrestricted Visual Styling
Does not force ConsoleZero’s dark UI palette onto your cartridges—AI models can design light paper tools, retro pixel interfaces, or high-contrast field screens.
Selective Bridge Wiring (Zero Bloat)
Instructs the AI to integrate only the hardware bridges your requested app genuinely uses, preventing unused sensor polling and unnecessary permission prompts.
CONSOLEZERO_MASTER_PROMPT.txtReady to copy
Build a 100% single-file offline HTML/CSS/JS app ("cartridge") for the ConsoleZero airgapped Android WebView.
HARD RULES:
- Single HTML file with inline <style> and <script>. ZERO external URLs, CDNs, fonts, or libraries (blockNetworkLoads=true).
- Mobile-first UI/UX: Design exclusively for handheld mobile devices (touch-friendly controls, single-column vertical layout, thumb-zone ergonomics, zero hover dependencies).
- Freedom of visual theme/colors (light, dark, retro, minimal—match the user's request). Never use CSS backdrop-filter.
- Include: <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
- Use min-height: 100dvh; font-size >= 16px on inputs; >= 48x48px touch targets with touch-action: manipulation.
- Never use alert(), confirm(), or prompt()—render all feedback inline in the DOM.
- Live camera <video> MUST have: autoplay playsinline muted.
- WebAudio AudioContext starts suspended: always run "if (ctx.state === 'suspended') await ctx.resume();" inside a tap handler.
- Draw graphics/audio via Canvas, inline SVG, WebAudio, or Base64 Data URIs (or window.__ASSETS__["sheet.png#slices"] for Cartridge Maker).
BRIDGES (ONLY wire bridges the requested app actually uses; guard all native calls):
- Permissions check: JSON.parse(window.AndroidNativeUtils?.getPermissionsJson() || "{}")
- GPS ("gps"): navigator.geolocation OR JSON.parse(window.AndroidNativeGps.getDeviceLocation()) -> {status, lat, lng, accuracy} (optional: cancelLocationSearch())
- Haptics ("haptics"): navigator.vibrate(ms) OR window.AndroidNativeUtils?.vibrate(ms) (max 2000)
- Clipboard ("clipboard"): navigator.clipboard.writeText(t) OR window.AndroidNativeUtils?.copyToClipboard(t)
- Alerts ("notifications"): new Notification(title, {body}) OR window.AndroidNativeUtils?.showNotification(title, body)
- Export ("export"): window.AndroidFileExporter?.saveTextFile(text, name, mime) (also: saveBase64File, shareTextFile, printDocument, printHtml)
- Import ("import"): File ingress & uploads via <input type="file"> (CSV, JSON, images, data) - check perms.import
- Sensors ("sensors"): JSON.parse(window.AndroidSensors.getSensorData()) -> {status, accelerometer, gyroscope, magnetometer, light}
- NFC ("nfc", "nfcWrite", "nfcLock"): new NDEFReader() (scan/write/makeReadOnly) OR window.AndroidNfc: readNfcTag() -> {status:"success", tagId, payload} & armWritePayload(JSON.stringify({type, data, lockAfterWrite})) + window.onNfcWriteComplete(success, message). Require 2-step inline confirmation before irreversible tag locking.
- Camera ("camera"): <input type="file" accept="image/*" capture="environment"> OR navigator.mediaDevices.getUserMedia({video:{facingMode:"environment"}})
- Mic ("mic"): navigator.mediaDevices.getUserMedia({audio:true}) + AudioContext AnalyserNode
- External Intents ("externalLinks"): window.location.href = "geo:lat,lng?q=lat,lng" or "tel:..."
- Storage: localStorage / IndexedDB (isolated per cartridge origin).
Output ONLY the complete single-file HTML code block, tailored to the following app request:
[DESCRIBE YOUR APP OR GAME HERE]
Want to Use Your Own Photos, Sprites, or Custom Fonts?
By default, the prompt above tells the AI to draw everything with code so your app works immediately with zero extra files. If you want to supply your own images, sprite sheets, audio, or fonts, paste this extra line at the bottom of your prompt—then switch to the Easy or Advanced tab here and drop in the generated HTML + your files to pack them into one offline file.
CUSTOM_ASSETS_ADDON.txtOptional Add-On
CUSTOM ASSETS OVERRIDE: For [LIST YOUR ASSETS, e.g., the player sprite, background photo, or custom font], do NOT draw inline SVGs—use clean relative filenames (like "player.png" or "background.jpg") so I can pack my own files in Cartridge Maker.
Airgapped Cartridge Runtime • Public SDK & Hardware Specification
ConsoleZero Developer Reference
Build self-contained HTML, CSS, and JavaScript applications—called cartridges—that execute inside an airgapped Android sandbox with isolated local persistence and 12 granular, Default-OFF hardware bridges.
Explore the airgapped sandbox architecture, WebView rendering invariants, all 12 native bridge APIs, and the downloadable single-file starter template.
1.1 Airgapped Single-File Model & Origin Isolation
ConsoleZero executes portable web utilities—imported as .html, .htm, .txt, .json, or self-contained cartridge .pdf files—inside a locked-down Android WebView container. Every cartridge runs locally with zero telemetry and zero outbound network connectivity.
01 • Single-File Payload
Self-Contained Source
All HTML, CSS, JavaScript, and embedded assets reside in a single portable file—or are inlined via Cartridge Maker—with zero external CDN references.
02 • Isolated Origin
Per-Cartridge Sandbox
Each cartridge loads from its own private local origin (https://[slug].consolezero.local/), keeping localStorage and IndexedDB walled off from every other cartridge.
03 • Native Bridges
Gated Hardware Layer
Both standard W3C Web APIs and window.Android* JavaScript interfaces remain gated behind user-controlled, Default-OFF toggles until explicitly enabled.
1.2 The Default-OFF Permission Philosophy
Every hardware and system capability in ConsoleZero defaults to DISABLED whenever a cartridge is imported. JavaScript running inside a cartridge has read-only visibility into its permission state and cannot programmatically enable toggles or escalate privileges. On startup, ConsoleZero also checks physical device hardware chips (such as NFC or Gyroscope) and disables unsupported toggles automatically.
Mobile Chromium WebViews enforce stricter media, viewport, and GPU compositing constraints than desktop browsers. Follow these seven invariants so cartridges behave reliably across Android phones and tablets:
Invariant
Platform Behavior
Required Implementation
Zero Remote Assets
blockNetworkLoads = true drops all external HTTP/HTTPS requests silently.
Inline all CSS, JS, SVG, Canvas graphics, and Data URIs inside the HTML file.
Viewport & 100dvh
Soft keyboards and system bars resize dynamic mobile viewports; 100vh clips content.
Include viewport meta and use min-height: 100dvh on full-screen layouts.
16px Input Minimum
Mobile WebViews auto-zoom the viewport when focusing form fields smaller than 16px.
Set font-size: 16px on all input, select, and textarea elements.
48px Touch Targets
Small interactive controls cause mis-taps on handheld devices in field conditions.
Use min-height: 48px, min-width: 48px, and touch-action: manipulation.
No backdrop-filter
Frosted blur layers can corrupt WebView GPU compositing and flicker over WebRTC or maps.
Use solid or alpha-tinted opaque surfaces instead of backdrop-filter: blur().
WebAudio Gesture Gate
WebView initializes AudioContext in the suspended state until user interaction.
Call if (ctx.state === 'suspended') await ctx.resume(); inside a tap handler.
Inline Camera Video
Live camera streams refuse to render inline or trigger fullscreen without playback flags.
Always declare <video autoplay playsinline muted> on WebRTC video elements.
ConsoleZero exposes native hardware through both direct window.Android* interfaces and standard HTML5 Web API polyfills. Only integrate the bridges your cartridge actively requires, and always handle disabled or desktop-fallback states gracefully.
Showing 12 of 12
Bridge 01
Offline GNSS Satellite GPS
key: gps
Acquires real satellite latitude, longitude, and accuracy offline without cellular service or Wi-Fi.
Rule & Behavior: First cold fix may return status "acquiring" while satellites lock in the background. Call cancelLocationSearch() to abort active polling if the user leaves the view.
Rule & Behavior: Supports both the standard HTML5 Notification constructor (with requestPermission) and the direct showNotification(title, body) bridge.
new Notification • AndroidNativeUtils.showNotification
function sendOfflineAlert(title, body) {
if (window.AndroidNativeUtils?.showNotification) {
window.AndroidNativeUtils.showNotification(title, body);
return;
}
if ('Notification' in window) {
if (Notification.permission === 'granted') {
new Notification(title, { body });
} else if (Notification.permission !== 'denied') {
Notification.requestPermission().then(perm => {
if (perm === 'granted') new Notification(title, { body });
});
}
}
}
Bridge 05
App-Scoped File Exporter
key: export
Saves CSV, JSON, text, or Base64 files directly to Android Downloads/, shares files, or invokes native print without broad storage permissions.