[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-110568":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":14,"stars7d":13,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":17,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":37,"updatedAt":38,"readmeContent":39,"aiSummary":40,"trendingCount":15,"starSnapshotCount":15,"syncStatus":41,"lastSyncTime":42,"discoverSource":43},110568,"Frontier-UI","Jumbomuffin777\u002FFrontier-UI","Jumbomuffin777","ChatGPT-style generative UI for Open WebUI: photo galleries, live maps with real routes, multi-day trips, budgets, calculators, live weather & stocks, link previews, and one-click Word\u002FExcel\u002FPowerPoint exports via ArtCraft. One file, no API keys.","https:\u002F\u002Fopenwebui.com\u002Fposts\u002F35572bd7-6dc8-42dc-9e54-bebfb9e978cb",null,"Python",75,5,1,0,10,3,47.83,"MIT License",false,"main",true,[24,25,26,27,28,29,30,31,32,33,34,35,36],"ai-tools","artcraft","artificial-intelligence","generative-ai","llm","local-ai","local-llm","open-webui","open-webui-extensions","open-webui-plugins","open-webui-tool","open-webui-tools","self-hosted","2026-11-21 15:24:00","2026-11-23 12:46:06","\u003Cdiv align=\"center\">\n\n# ✨ Frontier UI\n\n**ChatGPT-style generative UI for [Open WebUI](https:\u002F\u002Fgithub.com\u002Fopen-webui\u002Fopen-webui)** — real photos, live street maps with routes,\nplace cards, itineraries, charts and follow-ups, rendered right inside the chat.\n\n\u003Ca href=\"https:\u002F\u002Fbuymeacoffee.com\u002Fjumbomuffin777\">\u003Cimg src=\"https:\u002F\u002Fcdn.buymeacoffee.com\u002Fbuttons\u002Fv2\u002Fdefault-yellow.png\" alt=\"Buy Me A Coffee\" height=\"48\">\u003C\u002Fa>\n\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-22c55e.svg)](LICENSE)\n[![Open WebUI](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FOpen%20WebUI-%E2%89%A5%200.6-0ea5e9.svg)](https:\u002F\u002Fgithub.com\u002Fopen-webui\u002Fopen-webui)\n[![Python](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython-3.11%2B-3776ab.svg?logo=python&logoColor=white)](frontier_ui.py)\n[![Single file](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Finstall-one%20file-a855f7.svg)](#-install)\n\n\u003Cimg src=\"docs\u002Fdemo-restaurants.gif\" alt=\"Frontier UI answering “good Italian restaurants in Downtown Chicago” with photo cards, sources and follow-ups\" width=\"860\">\n\n\u003C\u002Fdiv>\n\n---\n\n## Why\n\nOpen WebUI answers in markdown. ChatGPT answers with an **interface**: photos of the places it mentions, a map with the route,\ncards you can scroll, and next questions you can tap. Frontier UI brings that to any model in Open WebUI.\n\nThe model writes one small JSON spec. The tool does the rest on the server — **finds real photos, verifies places on the map\nand draws real street routes** — then renders a polished, theme-aware card inline in the conversation.\n\n\u003Cdiv align=\"center\">\n\u003Cimg src=\"docs\u002Fdemo-map.gif\" alt=\"Follow-up question: walking distance from Union Station under $120 — live map with pins and restaurant cards\" width=\"800\">\n\u003Cbr>\u003Csub>Follow-up in the same chat: a live map around Union Station with pinned picks and photo cards.\u003C\u002Fsub>\n\u003Cbr>\u003Cbr>\n\u003Cimg src=\"docs\u002Fdemo-trip.gif\" alt=\"A seven-day Cancún plan: photos, currency tips, day tabs with a route per day on a self-hosted map, budget sliders, live weather, link previews and a spreadsheet export\" width=\"600\">\n\u003Cbr>\u003Csub>A 7-day Cancún trip: day-by-day routes on a self-hosted planet map, budget sliders, live weather, link previews — then “build me a spreadsheet”.\u003C\u002Fsub>\n\u003C\u002Fdiv>\n\n## ✨ Features\n\n| | |\n|---|---|\n| 🖼️ **Photo galleries** | Real images with **no keys and no extra services**: Wikipedia, Wikimedia Commons and Openverse (with attribution). Add SearXNG or an API key for broader coverage. Broken or icon-sized hits fall back to the next candidate; a missing photo shows a clean placeholder. |\n| 🗺️ **Live street maps** | MapLibre GL + OpenFreeMap vector tiles, numbered \u002F emoji pins with decluttered labels, **real street routes** drawn by default — walking in a city, bike, or driving \u002F motorcycle for road trips — distance & time in km or mi, group filter, fit & expand. Open the route in Google Maps, Apple Maps or OpenStreetMap, or download a **GPX** for OsmAnd, Organic Maps or Garmin. No WebGL? You get a static route sketch. |\n| 🧭 **Linked itinerary** | Click a timeline stop and the map flies to its pin; click a pin and the stop lights up. |\n| 🍝 **Place cards** | Photo, rating, price, neighborhood, tags and link — with sort and filter chips once there are four or more. |\n| 📅 **Multi-day trips** | Day tabs with one coloured street route per day, **Open in Google Maps**, and **Add to calendar** (Google or `.ics`). |\n| 💸 **Interactive tools** | Budget sliders with per-person totals and a cap, and calculators (mortgage, currency, anything) driven by safe formulas. |\n| 📈 **Live data** | Weather forecasts and stock \u002F crypto \u002F FX quotes with 1D·1M·1Y charts — keyless, fetched at answer time. |\n| 🔗 **Page previews** | Link cards with a real headless-Chromium screenshot, summary and reader view. |\n| 📝 **Real Office files** | Export any card to Word, PDF, Excel or PowerPoint built by the open-source [Craft apps](https:\u002F\u002Fgithub.com\u002Fstorytold) — photos and charts included — and open it on a streamed Craft desktop. |\n| 📂 **Read & edit your files** | Attach a Word, Excel, PowerPoint, PDF, image, RAW photo, SVG, DXF\u002FDWG, STEP\u002FSTL, Figma\u002FSketch, IDML, audio or video file — Frontier reads it with the matching **ArtCraft** app (all 16 supported, including TextureCraft for GLB\u002FglTF\u002FFBX\u002FUSD\u002FOBJ models), shows a preview, and edits or converts it into a new downloadable copy. |\n| ✉️ **Gmail & Notes** | Every card has Copy, Email (Gmail compose), Export and Save to Notes; `email` blocks become one-click Gmail drafts. |\n| 📊 **Data blocks** | Stats tiles, bar & line charts, sortable tables, compare columns, steps, callouts, hero banner, quotes, status boards. |\n| 🔗 **Citations & follow-ups** | Favicon citation chips, a sources row, and suggested next questions that send the prompt in one click. |\n| 🌗 **Feels native** | Follows Open WebUI's light \u002F dark theme live, auto-sizes, and runs in a nonce-locked CSP sandbox. |\n| 🛟 **Forgiving** | Takes the spec as a JSON object (or a string), repairs fenced, truncated, double-encoded or trailing-comma JSON, maps common block-name slips, and tells the model exactly what to fix when it can't. Caches lookups, limits concurrency and backs off on rate limits. |\n\n## 🚀 Install\n\n1. **Workspace → Tools → +** in Open WebUI, paste [`frontier_ui.py`](frontier_ui.py) and save.\n2. **Workspace → Models →** your model **→ Tools:** enable **Frontier UI**. Turn off other generative-UI tools so the model\n   has one clear choice. Native function calling works best.\n3. Ask for something visual — *“Plan a day in San Francisco”*, *“Good Italian near Union Station under $120 for two”*,\n   *“Compare the Arc Pro B70 and RTX 4090 for local LLMs”*.\n\n### ⚙️ Valves\n\n| Valve | Default | What it does |\n|---|---|---|\n| `units` | `auto` | `auto` = each viewer's browser locale (US → °F\u002Fmph\u002Fmi, everyone else °C\u002Fkm\u002Fh\u002Fkm), or force `metric` \u002F `imperial`. |\n| `map_app` | `google` | Main “Open in…” button on maps: `google`, `apple`, `osm` or `gpx`. The others stay in its menu. |\n| `image_provider` | `auto` | Photo source to try first. `auto` = SearXNG (if set) → Wikipedia + Commons → Openverse → any keyed provider. |\n| `searxng_url` | *(empty)* | Optional. Your SearXNG (JSON format enabled) for broader photo coverage. An unreachable SearXNG is skipped for 5 minutes. |\n| `brave_api_key` · `google_api_key` + `google_cx` · `pexels_api_key` · `unsplash_access_key` | *(empty)* | Optional photo APIs. Keys stay on the server — never in the card HTML, the browser or tool output. |\n| `maplibre_cdn` | `https:\u002F\u002Fcdn.jsdelivr.net\u002Fnpm\u002Fmaplibre-gl@4.7.1` | MapLibre GL JS package. |\n| `resolve_images` \u002F `resolve_maps` | `true` | Turn server-side photo or map resolution off. |\n| `tiles_url` | *(empty)* | Self-hosted basemap folder (`planet.pmtiles`, `fonts\u002F`, `sprites\u002F`, `js\u002F`) — see below. Empty = OpenFreeMap. |\n| `live_data` | `true` | Live weather \u002F quotes. |\n| `embedding_url` | `openwebui` | Reuse Open WebUI's embedding engine to rerank photos and match itinerary rows to pins; or an OpenAI-compatible URL (+ `embedding_model`, `embedding_api_key`); empty = off. |\n| `craft_bridge_url` · `craft_bridge_token` | *(empty)* | The Craft bridge (real Office files, page screenshots). |\n| `craft_desktop_url` · `craft_web_url` | *(empty)* | Links shown on file cards and in the `apps` launcher. |\n| `page_screenshots` | `true` | Screenshots for link previews (needs the bridge). |\n\n**Per-user settings** (chat › Tools › Frontier UI ⚙︎): `units` and `map_app`, so a European user can pick metric even if the\nadmin default is imperial.\n\n**Photo sources.** Wikipedia and Wikimedia Commons are great for landmarks, cities and topics; Openverse adds CC-licensed photos.\nSmall businesses (a specific café) often have no free photo — the card then shows a tidy placeholder. For better coverage there,\nadd SearXNG (free, self-hosted), a Brave Search key, a Google Programmable Search key + engine id, or Pexels \u002F Unsplash for generic\nscenes. Bing's image API was retired in 2025, so it isn't offered. Attribution (author · licence · source) is kept on every photo.\n\n**Opening map \u002F Gmail \u002F Calendar links.** Open WebUI renders tool cards in a sandboxed iframe without\n`allow-popups-to-escape-sandbox`, so a new tab opened from the card inherits the sandbox. Google Maps, Gmail, Calendar, Apple\nMaps and OpenStreetMap all send `Cross-Origin-Opener-Policy`, so Chromium shows **ERR_BLOCKED_BY_RESPONSE** (the same URL works\nin a fresh tab). Frontier therefore:\n1. opens links through the Open WebUI window when **Settings › Interface › iframe Sandbox Allow Same Origin** is on — a normal tab;\n2. opens directly on phones\u002Ftablets (the OS hands the link to the Maps \u002F Gmail app) and for Open WebUI's own downloads;\n3. otherwise copies the link and shows a small sheet with **Copy link** \u002F **Try opening anyway**.\n\nTurning on *Allow Same Origin* is an admin decision: it relaxes the sandbox for every embed, not just Frontier UI.\n\n**Requirements:** Open WebUI ≥ 0.6 (tested on 0.12.5). Everything is keyless: the server needs outbound HTTPS to Wikipedia \u002F\nWikimedia Commons, Openverse, Photon \u002F Nominatim, OSRM \u002F FOSSGIS, Open-Meteo and Yahoo Finance; the browser loads map tiles and photos.\nInteractive maps need WebGL; without it (blocklisted GPU, hardened Firefox profiles, some VMs) maps fall back to a static sketch. The add-ons below are optional.\n\n### 🏠 Optional self-hosted add-ons ([`server\u002F`](server))\n\n| Add-on | What you get | How |\n|---|---|---|\n| **Planet basemap** | Maps served from your own box — no tile API to break. ~140 GB; an HDD is fine. | [`server\u002Flocal-web\u002Fsetup.sh`](server\u002Flocal-web\u002Fsetup.sh) downloads the Protomaps planet, fonts and JS; nginx serves them with range requests. |\n| **Craft desktop + bridge** | `craft_file` makes real `.docx\u002F.xlsx\u002F.pptx\u002F.pdf` with WordCraft · GridCraft · DeckCraft, reads, edits and converts files with all 16 ArtCraft apps, and takes page screenshots. | [`server\u002Fcraft-apps`](server\u002Fcraft-apps) — `linuxserver\u002Fcraft-apps` plus [`bridge.py`](server\u002Fcraft-bridge\u002Fbridge.py), which starts with the container. Works on Apple Silicon via emulation. **LAN only.** |\n| **Craft web apps** | All 16 apps + the ArtCraft Launcher as static web apps for the `apps` block. | Same `setup.sh`, served under `\u002Fcraft\u002F`. |\n\n### 🧰 Tool methods\n\n| Method | Use |\n|---|---|\n| `render_frontier_ui(spec)` | The rich card. |\n| `craft_file(format, card=…)` | Word \u002F PDF \u002F Excel \u002F PowerPoint \u002F CSV from a card (by id) or from Markdown, rows or slides. |\n| `craft_open(url, app)` | Open a photo, PDF, SVG, audio or video in a Craft app on the desktop. |\n| `save_note(card=…)` | Save a card or Markdown to Open WebUI Notes. |\n| `craft_read(file)` | Read an uploaded file with its ArtCraft app: text, formulas, slides, metadata and a preview. |\n| `craft_edit(file, …)` | Edit it headlessly — `replace_json` for documents, `cells_json` for spreadsheets, or any app command list — into a new copy. |\n| `craft_convert(file, format)` | Convert between formats (docx↔pdf, pptx→pdf, xlsx↔csv, psd→png, dxf→pdf, step→stl, wav→flac…). |\n| `craft_commands(app, search)` | Look up an app's engine commands for advanced edits. |\n\n**ArtCraft apps supported (all 16):** WordCraft · GridCraft · DeckCraft · PdfCraft · PhotoCraft · LightCraft · VectorCraft ·\nDesignCraft · FigCraft · FilmCraft · EffectCraft · SoundCraft · CADCraft · SolidCraft · TextureCraft · Craft Anything.\n\n## 🧩 How it works\n\n```\nmodel ──► render_frontier_ui(spec JSON)\n            │\n            ├─ photos   ─► Wikipedia · Commons · Openverse  (+ SearXNG \u002F API keys if set; ranked, cached)\n            ├─ places   ─► Wikipedia coords \u002F Photon \u002F Nominatim  (snaps the model's estimate)\n            ├─ routes   ─► FOSSGIS foot\u002Fbike\u002Fcar · OSRM car (with fallbacks)\n            ▼\n         sandboxed HTML card  ─►  MapLibre map · galleries · cards · charts · follow-ups\n```\n\n### Blocks\n\n| Block | Purpose |\n|---|---|\n| `text` | Markdown subset with `[1]` citation chips |\n| `images` | Photo search queries → gallery |\n| `map` | Places (name + best-guess lat\u002Flng) → verified pins + street route; `days` for multi-day trips |\n| `places` | Photo cards for restaurants, hotels, products, people (sort + filter at 4+) |\n| `timeline` | Itinerary or history, linked to map places; `date` enables Add to calendar |\n| `budget` · `calculator` | Interactive sliders and formulas |\n| `weather` · `stock` | Live forecast and quotes |\n| `links` · `email` · `status` · `apps` | Page previews, Gmail drafts, health boards, Craft launcher |\n| `stats` · `chart` · `table` · `compare` · `steps` · `callout` · `hero` · `quote` | Everything else |\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Example spec\u003C\u002Fb>\u003C\u002Fsummary>\n\n```json\n{\"title\":\"San Francisco in one day\",\n \"blocks\":[\n  {\"type\":\"text\",\"md\":\"I'd plan a **9 AM–7 PM route** along the waterfront [1].\"},\n  {\"type\":\"images\",\"items\":[{\"query\":\"Golden Gate Bridge from Baker Beach\"},{\"query\":\"Lombard Street\"},{\"query\":\"Palace of Fine Arts\"}]},\n  {\"type\":\"map\",\"area\":\"San Francisco, CA\",\"route\":true,\"places\":[\n    {\"name\":\"Ferry Building\",\"lat\":37.7955,\"lng\":-122.3937,\"icon\":\"⛴️\",\"group\":\"Morning\",\"time\":\"9:00\"},\n    {\"name\":\"Pier 39\",\"lat\":37.8087,\"lng\":-122.4098,\"icon\":\"🦭\",\"group\":\"Afternoon\",\"time\":\"12:30\"}]},\n  {\"type\":\"timeline\",\"items\":[{\"time\":\"9:00 AM\",\"title\":\"Ferry Building\",\"place\":\"Ferry Building\"}]}],\n \"sources\":[{\"title\":\"Fleet Week schedule\",\"url\":\"https:\u002F\u002Ffleetweeksf.org\u002Fschedule\u002F\"}],\n \"followups\":[\"Make it a two-day itinerary\"]}\n```\n\nA full example lives in [`examples\u002Fsan-francisco.py`](examples\u002Fsan-francisco.py). On a homelab it resolves 6 photo searches,\n8 places and a walking route in about 5 seconds.\n\n\u003C\u002Fdetails>\n\n## 🛠️ Development\n\nThe tool ships as one file, built from readable parts in [`src\u002F`](src): `p1`, `p2`, `p6` are the Python resolvers,\n`p3`–`p5` and `p7` the HTML \u002F CSS \u002F JS renderer, `p9` the tool class. See [`CHANGELOG.md`](CHANGELOG.md).\n\n```bash\n.\u002Fsrc\u002Fbuild.sh   # rebuilds frontier_ui.py\n```\n\n## 📝 Notes\n\n- Open WebUI shows a tool result when it completes, so cards appear whole rather than streaming token by token.\n- Public map, routing and photo services have fair-use limits; results are cached and the tool falls back to the model's\n  coordinates when geocoders are busy.\n\n## 🙏 Credits\n\nInspired by ChatGPT's Intelligent UI and [thesysdev\u002Fopen-intelligent-ui](https:\u002F\u002Fgithub.com\u002Fthesysdev\u002Fopen-intelligent-ui) (MIT),\nwhose map palette and routing approach this follows. Map data © OpenStreetMap contributors · tiles © OpenFreeMap \u002F OpenMapTiles.\n\n\u003Cdiv align=\"center\">\n\n**If Frontier UI made your chats nicer, consider buying me a coffee ☕**\n\n\u003Ca href=\"https:\u002F\u002Fbuymeacoffee.com\u002Fjumbomuffin777\">\u003Cimg src=\"https:\u002F\u002Fcdn.buymeacoffee.com\u002Fbuttons\u002Fv2\u002Fdefault-yellow.png\" alt=\"Buy Me A Coffee\" height=\"42\">\u003C\u002Fa>\n\nReleased under the [MIT License](LICENSE).\n\n\u003C\u002Fdiv>\n","Frontier UI 是一个为 Open WebUI 设计的轻量级生成式前端插件，将纯文本 LLM 回答增强为具备交互能力的富媒体界面。它支持在聊天中内联渲染真实照片画廊、基于 MapLibre 的实时街景地图与真实路径规划、多日行程时间线、预算滑块、实时天气与股票数据、链接预览，以及一键导出 Word\u002FExcel\u002FPPT 文档。所有功能均通过单个 Python 文件实现，无需 API 密钥，依赖本地或自托管服务（如 OpenFreeMap、Wikimedia Commons）。适用于需在私有化 AI 环境中提供可视化旅行规划、本地生活推荐、地理信息协同分析等场景的个人或小团队。",2,"2026-11-24 04:39:20","CREATED_QUERY"]