Skip to content

wimi321/timet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Timet

Timet app icon

Release CI License Platforms Stars

React TypeScript Vite Capacitor Dart Gemma 4

An app for time travelers.
After you time-travel, there is no Wi-Fi, no cloud, no API key.
The only AI that still works is the one already on your phone.

Download APK

English · 简体中文 · Releases · Route Design · Knowledge Pack · Discussions

Timet hero

Tell Timet the era, place, identity, starting resources, and goal — it drafts a playable strategy route for wealth, influence, cover, or modern-edge leverage. No lore dumps, no hand-waving. Every answer lands in a structured five-part brief you can act on immediately.

Why on-device AI? Timet runs Gemma 4 entirely on your phone via LiteRT — no server, no internet, no API calls. The model ships with the app (or downloads once), then works offline forever. If you actually time-traveled to Tudor London, Regency Bath, or Victorian Manchester, your cloud-based ChatGPT is gone. Timet still runs. That's the point.

Product Preview

Timet home screen in English

Home briefing
Start with era + place + identity + resources + goal, then pick a route or type straight into the strategist.
Timet answer screen in English

Route answer
Timet replies in a five-part strategist brief, grounded in the local knowledge pack and written for action.

Features

  • Gemma 4 on your phone — Runs Google's Gemma 4 (2B / 4B) locally via LiteRT. No internet required after setup. Your strategist survives the time-travel with you.
  • 100% offline architecture — Bundled knowledge packs + on-device model. No cloud, no API key, no subscription. Works in airplane mode, works after time travel.
  • Instant Web preview — The browser build now answers with the same offline route pack, so visitors can try Timet before installing the native app.
  • Route-first, not lore-first — Timet gives you a playable path, not a wall of background trivia.
  • Structured answers — Every reply converges on five sections: situation read, first moves, main path, fatal mistakes, and next question.
  • 8 languages — English, Simplified Chinese, Traditional Chinese, Japanese, Korean, Spanish, French, and German deep-adapted.
  • Cross-platform — One codebase ships to Web, Android, and iOS via Capacitor.
What's New in v0.3.0
  • New AI-generated Timet icon system across Web, PWA, Android, and iOS
  • Dark atlas splash screens replace the old inherited launch artwork
  • README hero and social preview card now match the actual product UI
  • Native package identifiers now use the Timet app identity

Also included from v0.2.1 and v0.2.0

  • Web preview now works immediately with a local browser knowledge bridge

  • README and architecture docs explain the Web preview + native Gemma split accurately

  • Auto-resizing textarea for multi-line prompts (Enter to send, Shift+Enter for newline)

  • CSS animations: staggered card entrance, message slide-in, modal slide-up

  • Visual model download progress bar

  • Copy and share buttons on every AI response

  • Confirmation dialog before clearing conversations

  • Haptic feedback on native devices

  • Model panel focus trap and ARIA accessibility

  • Complete translations for Japanese, Korean, Spanish, French, and German

  • App.tsx refactored from 1308 to ~550 lines (6 extracted components)

Architecture

Timet architecture diagram

Timet runs a dual-stack architecture: a React 18 frontend talks to a bridge abstraction. On mobile, the Capacitor bridge routes requests to on-device Gemma 4 inference via LiteRT, with offline knowledge retrieval via RAG. On the web, the browser knowledge bridge runs the same offline route pack as an instant preview. Everything runs locally — no cloud, no API keys.

How It Works

Input formula:

era + place + identity + resources + goal

Example prompts:

Route Prompt
Fortune Line Regency London, literate clerk, a few guineas, how do I build my first fortune in 90 days?
Power Line Tudor London, I serve in a noble household. How do I gain influence without getting crushed?
Fatal Mistakes I just arrived in medieval London with no patron. What must I hide first to blend in?
Modern Edge Victorian Manchester, small workshop assistant, a little capital. Which modern methods can become real money first?

Answer shape — every response follows this contract:

  1. Current Read — assess the board before you move
  2. First Three Moves — low-barrier, repeatable first steps
  3. Riches / Power Path — the main climb
  4. Do Not Expose — what will get you killed or exiled
  5. Ask Me Next — break the route into 7 / 30 / 90-day phases
Full answer example
Current Read
You are in a high-circulation city with low starting capital,
which means trust and turnover matter more than miracle inventions.

First Three Moves
1. Start with repeat-demand goods or services.
2. Win trust with clean ledgers and fixed prices.
3. Anchor near inns, docks, guild traffic, or literate commerce.

Riches / Power Path
Stabilize cash flow first, then use paperwork, brokerage,
supply discipline, or patronage to climb.

Do Not Expose
Do not sound supernatural, over-informed, or culturally wrong too early.

Ask Me Next
Break this route into 7-day, 30-day, and 90-day phases.

Core Routes

Route What it does Best used for
Fortune Line Finds the fastest realistic path to your first durable cash flow. Trade, brokerage, ledgers, small goods, repeat demand
Power Line Maps how to become useful before becoming visible. Patronage, office, clerical leverage, court or military adjacency
Fatal Mistakes Tells you what not to reveal before you understand the local rules. Arrival cover, etiquette, speech, customs, identity protection
Modern Edge Downgrades modern knowledge into era-appropriate advantages. Process, packaging, standardization, practical workshop upgrades
Visual Clues Uses visible objects as context and tells you what to ask next. Coins, seals, script, garments, printed matter, artifacts

Getting Started

Prerequisites: Node.js >= 20 · Dart >= 3.4

# Install and build knowledge pack
npm install
npm run knowledge:build

# Start dev server
npm run dev

# Run tests
npm test && dart test

# Production build
npm run build

Mobile (requires Xcode / Android Studio):

npm run mobile:ios
npm run mobile:android

Tech Stack

React 18 · TypeScript · Vite 8 · Vitest · Capacitor 8 · Dart 3 · Gemma 4 (LiteRT) · Offline Knowledge RAG

Roadmap

  • Route-driven V1: wealth, power, cover, and modern-edge planning
  • Chinese and English deep-adapted product copy
  • Curated offline knowledge pack with route-aware retrieval
  • Public GitHub release with CI, discussions, and release metadata
  • Polished public demo assets and storefront-style screenshots
  • Component architecture refactor + UX animation polish
  • Full translations for 8 languages (en, zh-CN, zh-TW, ja, ko, es, fr, de)
  • Accessibility: focus trap, ARIA roles, screen reader support
  • GitHub Pages live demo
  • Multi-turn session memory for follow-up questions
  • Community-contributed knowledge packs
  • Custom route definitions
  • Broader historical region and era coverage

Contributing

Timet welcomes contributions — whether it is a new knowledge pack, a language improvement, or a bug fix. See CONTRIBUTING.md for guidelines.

Repository Guide

License

Timet is released under the Apache-2.0 License.


Timet runs Gemma 4 on your phone. No cloud. No API key. Just you and your strategist.
If that sounds useful for your next time-travel, give it a star.

About

穿越助手 / Timet - an offline-first time-travel strategy assistant

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors