Markdown Editor app template
Live markdown editor with preview, saved drafts and export. Needs internet.
This is the template running live. Phone features such as the camera, vibration and notifications work in the app you build.
Phone features this template uses
These come from the FreeApp JavaScript bridge that every app built with Free HTML to APK includes. In a normal browser the template still runs, and the calls simply do nothing.
Copy to clipboard.
Open in the external browser / app.
Saves to Downloads; FreeApp.on('saved', d => …) gives {name, ok, location}.
Short native toast.
How the template calls them
function exportMd() {
const b64 = btoa(unescape(encodeURIComponent(editor.value)));
if (window.FreeApp) FreeApp.saveFile('note.md', 'text/markdown', b64);
}
function copyHtml() {
if (window.FreeApp) { FreeApp.copy(preview.innerHTML); FreeApp.toast('HTML copied'); }
}
Make it yours with AI
Copy this prompt into ChatGPT, Gemini or Claude, change the idea to yours, and paste the answer back into the editor. It already explains the app shell and the phone features to the AI.
Show the AI prompt
Build a single-file mobile web app (index.html with inline CSS/JS) for Android WebView.
The app: Markdown Editor — a live markdown editor with preview (marked + DOMPurify), saved drafts and export. Live markdown editor with preview, saved drafts and export. Needs internet.
Requirements:
- Mobile-first, touch-friendly UI (min 44px tap targets), works in portrait, supports light and dark mode.
- Use <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> and pad for env(safe-area-inset-*).
- You may load libraries from a CDN (jsDelivr/unpkg); show a friendly message if the device is offline.
The page runs inside an Android app that injects a native bridge as window.FreeApp. Available APIs:
- FreeApp.copy(text: string): void — copy to clipboard
- FreeApp.open(url: string): void — open in the external browser / app
- FreeApp.saveFile(name: string, mime: string, data: string /* base64 or data: URL */ | Blob): Promise<boolean> — saves to Downloads; FreeApp.on('saved', d => …) gives {name, ok, location}
- FreeApp.toast(message: string): void — short native toast
Rules for the bridge:
- Always guard calls with `window.FreeApp &&` (or `if (window.FreeApp) { … }`) and provide a browser fallback so the page also works in a normal browser.
- The bridge may be injected after your script runs: do native setup inside `window.addEventListener('freeappready', …)` and also run it immediately if window.FreeApp already exists.
- Do not use alert/confirm for normal feedback; prefer FreeApp.toast when available.
Return the complete index.html in one code block.
My idea: [DESCRIBE YOUR APP IDEA HERE]Turn it into an Android app
- Tap Edit & build online. The template opens in the online editor.
- Change the text, colors and code, then pick an app name, an icon and a package name.
- Build. You get a signed APK to install and an AAB for Google Play, free, with no account and no watermark.
More Frameworks templates
React Starter
React 18 + htm from CDN: counter and todo, no build step. Needs internet.
Vue Starter
Vue 3 todo app loaded from CDN with reactive filters. Needs internet.
Tailwind Landing
Tailwind Play CDN landing page with hero, features and pricing. Needs internet.
Bootstrap Dashboard
Bootstrap 5 admin dashboard with stats, tables and tabs. Needs internet.
Alpine Shopping List
Alpine.js shopping list with totals and categories. Needs internet.
Phaser Jumper
Phaser 3 mini platformer with on-screen controls. Needs internet.