Skip to content
microPublic

About

Micro Apps for everyone

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

Repository files navigation

Micro XYZ

Open apps for learning and everyday life. Run them yourself, change them, contribute improvements, or publish them on your own Mu server.

Run locally

No account, API key or build step is needed for the standalone apps:

git clone https://github.com/micro/xyz.git
cd xyz
python3 -m http.server 8000 --bind 127.0.0.1

Open http://localhost:8000. To self-host, serve this directory with any static web server. All Arabic audio is included and served from your own copy; no installed Arabic voice or external speech request is needed. Host over HTTPS when sharing it.

App What it does Needs Mu?
Shopping List Multiple personal lists, school/trip templates, check and clear No
Notes Write and organise personal notes No; uses Mu storage when available
Video Playlists Save video lists, search, watch and listen Search/playback require Mu
Learning Companion Age-adjusted arithmetic, visual number bonds, words and story prompts Only for optional online questions
Ping Pong Play against the computer No
Meal Planner Seven-day plan and an ingredient checklist No
Arabic Basics 600 words and phrases, pronunciation and meaning practice No
Fact Cards 4,000 source-linked questions, categories and review No
Phonics Play Letter sounds and 24 blending words No
Pattern Play Shapes and number patterns No
Science Lab Interactive balance, shadows and circuits No
Space Explorer Explore and compare the eight planets No
Quiet Time Breathing, noticing, reflection and 15/25/45-minute focus sessions No
World Explorer Six illustrated scenes, branching paths and five habitat discoveries No
Story Time Read 15 original stories; watch or listen to 12 selected videos Video playback uses Mu
Rain Window Hourly dry-window planning through the weather service Yes
Weather Explorer Clouds, prediction games and a weather notebook Only for optional live forecasts
Wiki Explorer Search Wikipedia and read introductions Yes, for the public Wikipedia SDK

Wiki Explorer is for general readers, not a filtered children's resource. On a static host it clearly explains that live search needs the Mu Wikipedia SDK. Learning Companion has an optional adult-confirmed online question feature using Mu credits; its built-in activities run independently. Optional English read-aloud uses the browser's speech engine. Fact review marks, saved Wiki articles, expedition progress, weather observations, Story Time reading positions and imported videos now survive reload. Static hosts use this browser’s storage; signed-in Mu uses the viewer’s personal app storage. A public app link does not share personal data. Anonymous Mu persistence is not guaranteed. Clear/remove/start-again controls live in the relevant app. Arabic practice and short quiz rounds remain session-only.

Meal Planner takes ingredients you enter; it does not infer recipes or read Shopping List’s data. Copy its remaining checklist into another app when needed. Installing these catalogue packages creates new private apps; it does not migrate data from differently named apps or automatically update existing installations.

Change an app

Each app owns apps/<slug>/: app.json metadata, build.py, built index.html, test.cjs, and its own content and assets. Only reusable page-building helpers live in shared/; repository-wide orchestration lives in scripts/.

Build one app with python3 scripts/build.py world-explorer, or all apps below.

python3 scripts/build.py
python3 scripts/test_publish.py
python3 scripts/test.py  # content/audio checks also require ffprobe (FFmpeg)

Edit the generator or data and rebuild, so your change survives regeneration. The checked-in audio needs no generation to run or build. See Arabic content notes for provenance and optional audio rebuilding. Arabic speech is synthetic and has not had independent teacher review. The larger fact deck is generated from structured Wikidata records and contains advanced material; younger learners can use the Starter facts subject.

Publish to Mu

The runtime, sandbox and shared SDK stay in micro/mu; this repository owns the apps. The publisher uses the existing Apps.Create/Edit APIs and any server URL you provide. It defaults to a dry run, and new apps are private unless --public is supplied.

export MU_TOKEN=your_apps_service_token
python3 scripts/publish.py arabic-basics --server https://your-mu.example \
  --assets-base https://your-static.example/apps/arabic-basics/content/arabic-audio/
# Add --write to create it; use --action edit --write to update an app you own.

World Explorer includes its generated scene images for standalone hosting. Supply --assets-base pointing to a public copy of apps/world-explorer/content/ when publishing it. Story Time uses the chosen --server for its video-player fallback; its original stories work independently. Third-party videos may contain ads or recommendations and remain subject to provider availability. Existing Story Time and Video Playlists apps are separate and are not overwritten.

Arabic's audio URL must point to a public static copy of the included assets when published inside Mu's sandbox. The script refuses to publish relative asset URLs. It never overwrites another account's apps or changes an existing app's visibility. Mu enforces ownership and token permissions; use a token scoped to the Apps service.

Contribute and fork

See CONTRIBUTING.md. Contributions to code, teaching activities, translations, accessibility and content corrections are welcome. Keep apps usable without an account where possible and declare external service dependencies.

Code is MIT licensed, including commercial use, modification and redistribution. Preserve third-party notices for included content and audio. Forks can change branding, content and servers; no Micro account is required.

Install a package in the browser

On Mu versions with Apps → Install app, the operator can upload a private JSON app package. Prepare one without an API token:

python3 scripts/publish.py shopping-list --server https://your-mu.example \
  --output shopping-list.json

Upload the resulting file on your server. Installation creates a new private copy; it does not overwrite apps or import anyone's data. Asset-dependent apps still require --assets-base; this is not yet an archive installer.

Live app catalogue

Mu can read the index at https://raw.githubusercontent.com/micro/xyz/main/catalog.json to discover apps without a runtime update. python3 scripts/build.py generates the index and a JSON installation package for every app directory containing app.json. Commit the index and packages together when publishing an app.

Each entry includes package (relative to the index), sha256 (the exact package bytes), a content-derived version, and any requirements. Package filenames include a content hash. Keep previous packages available for installations with cached indexes; publishing a new version does not update installed apps.

Mu downloads an app only when an administrator chooses Install. It verifies the checksum and uses its existing private app installation and sandbox. The index is metadata, not installed code. Forks can host the same index/package format and configure Mu's APPS_CATALOG_URL to point to it.

Arabic audio and World Explorer images remain externally hosted. Package builds default to XYZ's jsDelivr asset URLs; set XYZ_ASSETS_BASE to an HTTPS copy of the repository to host those assets yourself. App code is installed on the Mu server; these media dependencies are listed in the catalogue. Story Time's fallback video links use the installing Mu server, not micro.mu.

Browser checks

With Playwright and its Chromium browser installed, run node scripts/test_browser.cjs. It starts a temporary local server; set XYZ_TEST_URL to test an already running server. CHROMIUM_PATH optionally selects an installed executable. The test checks every app at phone and desktop widths and exercises saving, reloads and the new activities. Wikipedia responses are stubbed for repeatability; it does not verify external providers or live Mu authorisation. Set XYZ_SCREENSHOTS to a temporary output directory for captures.

About

Micro Apps for everyone

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages