Wenlan
Wenlan is a source-backed AI knowledge base and LLM wiki for AI work: organize documents and decisions into pages you can find, inspect, and review.
翻訳待ち
Loading the full README. The saved excerpt is shown below.
An open-source, self-hostable Telegram Mini App — a personal "instruments"
suite that bundles several everyday tools into one mobile-first app: personal
finance, a notes section with a wiki-linked knowledge graph, a
lightweight people / relationships tracker, a wardrobe / lookbook, and a
gesture-driven calculator.
Live: opens inside Telegram (the bot's menu button). Outside Telegram it
politely shows an "Open in Telegram" screen, because it relies on the Telegram
SDK for theme, storage and user identity.
The whole app is designed and built in the open, end to end, with
Claude Code.Read the full README ↗An open-source, self-hostable Telegram Mini App — a personal "instruments" suite that bundles several everyday tools into one mobile-first app: personal finance, a notes section with a wiki-linked knowledge graph, a lightweight people / relationships tracker, a wardrobe / lookbook, and a gesture-driven calculator.
Live: opens inside Telegram (the bot's menu button). Outside Telegram it politely shows an "Open in Telegram" screen, because it relies on the Telegram SDK for theme, storage and user identity.
The whole app is designed and built in the open, end to end, with Claude Code.
src/lib/finance-calc.ts).[[wiki-links]]
and #tags, plus an interactive, force-directed graph (Obsidian-style) with
pan/zoom/pinch, a local "around this node" mode, context-aware filters, and
node highlighting.vite-plugin-pwa@tma.js/sdk-react (init,
theme, BackButton, viewport, haptics) · @telegram-apps/telegram-uiserver.js) — serves the built SPA and a small
/api, authenticating requests with Telegram initData
(@telegram-apps/init-data-node).Telegram client ──> Express (server.js) ──> serves dist/ (SPA) + /api
└──> per-user data on the host
(/var/lib/coco: store/, uploads/)
src/mockEnv.ts, tree-shaken out of production), so
you can develop it as an ordinary web page.initData.prod branch triggers a GitHub
Action that SSHes into the VPS, builds off to the side and swaps atomically
(zero downtime), runs a /api/health check, restarts the service, and
re-points the Telegram bot's menu button.npm install # install dependencies
npm run dev # dev server (http://localhost:5173), Telegram env mocked
npm test # unit tests (Vitest)
npm run build # typecheck (tsc --noEmit) + production build to dist/
npm run preview # preview the production build
npm start # Express server: serves dist/ + /api
npm run lint # ESLint
npm run dev (listens on 0.0.0.0:5173).ngrok http 5173 (Telegram requires HTTPS)./newapp (or Bot Settings → Menu Button)
and set the Mini App URL to your ngrok address.eruda console is available for debugging.Production runs on a VPS and deploys automatically on push to prod
(GitHub Actions → deploy/setup.sh). The build is static (npm run build →
dist/) and served by server.js; see deploy/ for the VPS setup, redeploy,
and restore scripts. Required Actions secrets (VPS_HOST, VPS_PASSWORD,
BOT_TOKEN, …) are documented in deploy/README.md; without them the workflow
stays green and simply skips.
| Type | You enter | How it's computed |
|---|---|---|
| One-off | amount, date | total = amount, overpayment 0 |
| Credit | amount, monthly payment, term, (rate %) | total = payment × term; overpayment = total − amount; rate ≈ inferred from the annuity |
| Installment | amount, total overpayment, term | total = amount + overpayment; payment = total ÷ term |
"Paid so far" counts only real, recorded payments. A worked example
(a 100 000 ₽ / 12-month credit) is verified in src/lib/finance-calc.test.ts.
src/
main.tsx · Root.tsx · App.tsx # entry, routing, theme, BackButton, keyboard
init.ts · mockEnv.ts # Telegram SDK init / browser mock
store.ts · types.ts # Zustand store + domain types
theme.css · charts.tsx # design system (light/dark) + Recharts
lib/ # finance-calc, notes-graph, storage, … (+ tests)
components/ # icon set, UI kit (Screen, Sheet, ConfirmDialog …)
pages/ # home, finance/*, notes, people/*, clothing/*, calculator
server.js · app.js # Express host + API
deploy/ # VPS setup / redeploy / restore + GitHub Action
tests/ # API tests (supertest)
legacy/ # the earlier vanilla PWA, kept for reference
Coco Instruments — открытый, самостоятельно хостящийся Telegram Mini App: несколько личных инструментов в одном приложении — финансы (платежи, кредиты, рассрочки, накопления, графики), заметки с вики-ссылками и интерактивным графом связей, лёгкий трекер людей/отношений, гардероб (вещи и образы) и жестовый калькулятор.
server.js), отдаёт собранный SPA и /api, проверяет запросы по Telegram
initData.prod → GitHub Action собирает на VPS со
сборкой «в сторону» и атомарной заменой (без простоя), проверяет здоровье и
перенацеливает кнопку бота. Ежедневные автоматические бэкапы (хранятся последние 14 копий).npm install → npm run dev (окружение Telegram мокается),
npm test, npm run build. Запуск внутри Telegram — через ngrok и @BotFather.Приложение целиком разрабатывается в открытую с помощью Claude Code.