Find a file
蓝莓🫐 7e4cdb80a3
Some checks are pending
CI / Type Check (web) (push) Blocked by required conditions
CI / Unit Test (api-server-2) (push) Blocked by required conditions
CI / Detect changes (push) Waiting to run
CI / Lint (push) Blocked by required conditions
CI / Build Test (stage-web) (push) Blocked by required conditions
CI / Build Test (stage-tamagotchi) (push) Blocked by required conditions
CI / Build Test (ui-playgrounds) (push) Blocked by required conditions
CI / Build Test (stage-tamagotchi-godot) (push) Blocked by required conditions
CI / Unit Test (others) (push) Blocked by required conditions
CI / Unit Test (api-server-1) (push) Blocked by required conditions
CI / Unit Test (stage-tamagotchi) (push) Blocked by required conditions
CI / Unit Test (stage-ui-1) (push) Blocked by required conditions
CI / Unit Test (stage-ui-2) (push) Blocked by required conditions
CI / Unit Test (push) Blocked by required conditions
CI / Type Check (others) (push) Blocked by required conditions
CI / Type Check (desktop) (push) Blocked by required conditions
CI / Type Check (push) Blocked by required conditions
CI / Check Provenance (push) Blocked by required conditions
Crowdin upload changed translations / upload-translations-to-crowdin (push) Waiting to run
Cloudflare Pages (Auth UI) / Deploy - ui-server-auth (push) Waiting to run
Cloudflare Workers / Build - docs (push) Waiting to run
Cloudflare Workers / Deploy - stage-web (push) Blocked by required conditions
Plugin Entrypoints / Native ESM (macos-latest) (push) Waiting to run
Plugin Entrypoints / Native ESM (ubuntu-latest) (push) Waiting to run
Plugin Entrypoints / Native ESM (windows-latest) (push) Waiting to run
Release Tamagotchi / Plan Updates (push) Waiting to run
Release Tamagotchi / Build (push) Blocked by required conditions
Release Tamagotchi / Build-1 (push) Blocked by required conditions
Release Tamagotchi / Build-2 (push) Blocked by required conditions
Release Tamagotchi / Build-3 (push) Blocked by required conditions
Release Tamagotchi / Build-4 (push) Blocked by required conditions
Release Tamagotchi / Publish Bundle (push) Blocked by required conditions
Release Tamagotchi / Promote Canary to Stable (push) Blocked by required conditions
Release Tamagotchi / Publish GitCode Release Mirror (push) Blocked by required conditions
Release Tamagotchi / Publish Distribution (push) Blocked by required conditions
Release Tamagotchi / Publish Distribution-1 (push) Blocked by required conditions
Release Tamagotchi / Publish Distribution-2 (push) Blocked by required conditions
Release Tamagotchi / Publish Distribution-3 (push) Blocked by required conditions
E2E Test - Tamagotchi (Linux) / X11 window render (Xvfb) (push) Waiting to run
E2E Test - Tamagotchi (Linux) / Wayland window render (weston headless) (push) Waiting to run
Update Nix pnpmDeps Hash / update (push) Waiting to run
feat(i18n,stage-tamagotchi): find missing keys behind translation helpers (#3636)
## Summary

The MCP settings page of the desktop app showed raw keys, such as
`settings.pages.modules.mcp-server.tools.title`. CI was green, because
x18n cannot follow the helper that builds these keys. This PR closes
that gap in the check and adds the strings that it finds.

- **An x18n plugin.** It finds a key that a helper of the same file
completes (`tn('title')`), a key built from a string constant (``
t(`${KEY}.title`) ``), and a key in a field, an attribute, or a route
field whose name ends with `Key`.
- **The Electron main process.** x18n reads `params.i18n.t('…')`.
- **11 missing keys.** Seven MCP strings move to the file that the page
reads. Three Spotlight calls read their real keys. One Kokoro model gets
its description.
- **A warning on the pull request.** The locale check marks a new
English key that no code uses.
- **An error at runtime.** A key that English lacks is an error in the
console of each app and in the log of the main process. Each window and
the main process report a key once.

## Context

- Request: Find out why the i18n checks did not report the missing keys
of the MCP page, and fix the check, not only the keys.
- Scenario: The MCP page in the settings of the desktop app shows keys
in place of its text.
- Scope: One PR holds the check, the missing keys, the warning on the
pull request, and the error at runtime. Keys that only the runtime knows
stay outside the static check.

## Change map

| Module | Before | After | Description |
| --- | --- | --- | --- |
| `.github/scripts/x18n-translation-keys.ts` (new) | None | An x18n
scanner for `.vue`, `.ts`, and `.tsx` files. It parses scripts and
templates with `vue/compiler-sfc`. | The Vue scanner of x18n 0.1.5 reads
each template expression alone, so a name from the script does not reach
it. The root package gets `vue` from the catalog. |
| `x18n.config.ts` | Used the `vue-i18n` preset. | Adds the plugin and
the callee `params.i18n.t`. | The preset reads `i18n.t` only. |
| `.github/scripts/report-unused-keys.ts` (new) and the i18n locale
check | Checked the content of the locales. | Also prints a warning for
each English key that the PR adds and no code uses. | autofix.ci adds
each new unused key to the baseline, so the Lint job does not show it. |
| Runtime report (`createFallbackOptions`) | The renderers logged a
warning on each render. The main process logged nothing. | The
renderers, Histoire, and the main process report an error, once for each
key. | vue-i18n calls the handler on each render, so one key can fill
the console. |
| `packages/i18n/AGENTS.md` | Told agents to fix the errors of x18n. |
Also tells them to examine each unused key that they add, and to end the
name of a key field with `Key`. | An unused key is a warning, and the
plugin finds a key in a field only by this name. |
| Locale files (English and Simplified Chinese) | The MCP tool strings
were in `tamagotchi/settings.yaml`. | They are in `settings.yaml`, with
their translations. | The page reads
`settings.pages.modules.mcp-server`. |
| Spotlight (desktop) | Read `tamagotchi.spotlight.errors`. | Reads
`tamagotchi.settings.spotlight.errors`. | The strings exist there in
each locale. |

## Architecture and behavior

```mermaid
flowchart LR
  code["Code"] --> builtin["x18n scanners: literal keys"]
  code --> plugin["Plugin: helpers, constants, *Key fields"]
  builtin --> usages["Usages"]
  plugin --> usages
  usages --> missing{"English has the key?"}
  missing -- no --> error["missing-key error, Lint fails"]
  english["English locale"] --> missing
  english --> unused{"A usage reaches the key?"}
  usages --> unused
  unused -- "no, and the PR adds the key" --> warning["Warning on the PR"]
```

Why the old check passed with the missing MCP keys:

1. `tn('tools.title')` completes its key in a helper, so x18n reported
no missing key.
2. The strings were in the wrong file, so x18n reported them as unused.
An unused key is a warning.
3. autofix.ci added these warnings to `.x18n/check-baseline.json` in the
same PR.

## Boundaries and risks

| Invariant or boundary | Failure mode | Protection | Evidence or gap |
| --- | --- | --- | --- |
| A missing key in a supported form fails CI | The plugin stops reading
a form, and the check stays green. | `x18n-translation-keys.test.ts`
covers each form in scripts and templates. | 7 test cases, run by CI. |
| The check reports no key that exists | A false error blocks a PR. |
The plugin reads a `*Key` string only when it starts with a namespace of
the English locale. | On this branch, before the keys were added, x18n
reported 9 errors. Each one was a missing key. |
| The PR warning never fails a check | A heuristic blocks a PR. | The
step prints annotations only. | 4 past commits give 27 warnings. For 3
of them, the code builds the key at runtime. |
| A change of the plugin takes effect locally | x18n keeps old scan
results, because its cache key holds the scanner ids only. | The scanner
id holds a hash of the plugin file. | Read from `scanSignature` in x18n
0.1.5. |
| The moved strings keep their translations | Crowdin loses them. | Only
English and Simplified Chinese have them, and both move. The upload
workflow sends sources and translations. | Read from the workflow. The
run on `main` is not verified yet. |

Forms that the check still cannot read: a key with a runtime value, a
helper from another file, a helper that does not end its key with its
parameter, two helpers of one file with the same name and different
prefixes, and a key in a field with a name that does not end with `Key`.
`packages/i18n/README.md` lists the forms.

## Verification

- `pnpm exec x18n check --no-cache`, with the plugin and without the new
keys: 9 `missing-key` errors (7 helper calls, 1 main process call, 1
`descriptionKey`). With the keys: no errors. 241 of the 666 entries of
the baseline no longer occur. autofix.ci drops them.
- The same configuration on the code of 3aa466f98, which added the MCP
strings: 9 errors, with all 7 MCP keys.
- The commands of the new CI step, run locally: exit code 0, and no
warning on this branch. On 3aa466f98 it reports 23 keys, with the 7 MCP
keys.
- A fixture project: the prefix factory of x18n 0.1.5 reports a missing
key in a script and not in a template. This result is the reason for the
plugin.
- `node .github/scripts/check-locales.ts` against the base: no errors.
It gives one warning, because the translation of "Enabled" equals
another translation.
- `pnpm exec x18n check --no-cache` took 8.8 s before and 13.0 s after,
one local run each.
- A probe of vue-i18n with `createFallbackOptions`: a key that English
lacks gives one report for several `t` calls. A key that only the
current locale lacks gives none.
- `pnpm exec eslint` on the changed files: no errors. ESLint ignores
`.github`.
- CI runs the unit tests and the typecheck. The 7 new test cases had no
local run.
- The MCP page and the log of the main process had no check in the app.

## Agent

- Harness: Claude Code
- Model: claude-opus-5-5

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-11-29 16:36:18 +07:00
.agents/skills docs(agents): merge the font rules into a visual design skill (#3617) 2026-11-26 02:45:11 +08:00
.claude feat(skills): add symlink to agent skills directory 2026-10-03 20:58:18 +08:00
.cursor/commands feat(ci): lint swift code 2026-01-02 23:49:01 +08:00
.gemini chore: disable gemini review 2026-05-16 17:27:26 +08:00
.github feat(i18n,stage-tamagotchi): find missing keys behind translation helpers (#3636) 2026-11-29 16:36:18 +07:00
.vscode fix(repo): stop VS Code Java extensions from scanning node_modules (#3057) 2026-10-21 18:29:44 +08:00
.x18n feat(i18n,stage-tamagotchi): find missing keys behind translation helpers (#3636) 2026-11-29 16:36:18 +07:00
.zed chore(workspace): added Zed editor config 2026-01-30 16:56:50 +08:00
apps feat(i18n,stage-tamagotchi): find missing keys behind translation helpers (#3636) 2026-11-29 16:36:18 +07:00
bucket fix(bucket): update Scoop manifest to v0.9.0-alpha.18 (#1430) 2026-03-20 23:45:26 +08:00
deploy/openpanel feat(analytics): send product events to OpenPanel and PostHog in parallel (#3454) 2026-11-15 03:13:12 +08:00
docs feat(stage-tamagotchi,stage-ui,ui,i18n): add swipe back and right-click menus to the chat views (#3631) 2026-11-28 09:33:20 +00:00
engines/stage-tamagotchi-godot release: v0.15.4 2026-11-13 03:53:10 +07:00
evals docs(evals): add datasets, results, and conclusion to the formula speech eval (#3061) 2026-10-21 23:15:39 +08:00
integrations feat(photon-bot,stage-ui): add Photon iMessage integration and settings page (#3558) 2026-11-23 01:22:47 +00:00
nix chore(nix): update pnpmDeps hash (#3625) 2026-11-27 08:48:05 +00:00
packages feat(i18n,stage-tamagotchi): find missing keys behind translation helpers (#3636) 2026-11-29 16:36:18 +07:00
patches fix(core-agent,stage-ui): send voice audio over Responses to OpenRouter (#3385) 2026-11-04 10:47:44 +00:00
plugins fix(web-extension): read the playing video on YouTube Shorts (#3463) 2026-11-20 10:41:40 +08:00
scripts chore: remove retired agent research from the product tree (#3612) 2026-11-24 17:33:29 +00:00
server feat(flux): separate usage and payment receipts (#3373) 2026-11-25 22:19:06 +08:00
services/computer-use-mcp chore: remove retired agent research from the product tree (#3612) 2026-11-24 17:33:29 +00:00
.dockerignore ci: reduce CI time without removing checks (#3330) 2026-11-02 17:52:33 +08:00
.editorconfig chore(repo): remove obsolete files and configuration (#3055) 2026-10-21 17:19:03 +08:00
.gitattributes fix(ci): min-integrity: none for safeoutput mcp call (#1645) 2026-04-12 18:02:58 +08:00
.gitignore Revert "fix(model-driver-mediapipe): load MediaPipe assets at runtime instead of on install (#3366)" 2026-11-09 20:13:53 +08:00
.prototools chore(ci): added Godot vscode extension recommendation, and .prototools for managing dotnet versions 2026-04-23 02:19:44 +08:00
.tool-versions fix(security): update runtimes for CVE-2026-111497 (#3184) 2026-10-28 20:45:56 +08:00
AGENTS.md docs(agents): merge the font rules into a visual design skill (#3617) 2026-11-26 02:45:11 +08:00
alint.config.ts Revert "style: lint" 2026-08-26 20:13:10 +08:00
bump.config.ts Revert "style: lint" 2026-08-26 20:13:10 +08:00
CLAUDE.md chore(docs): replace CLAUDE.md symlink with @AGENTS.md reference (#1455) 2026-03-23 13:56:52 +08:00
crowdin.yml chore(ci): autofix crowdin files 2025-11-30 20:27:08 +08:00
cspell.config.yaml feat(stage-tamagotchi): update with ergosphere-it, and publish each push to a dev channel (#3126) 2026-10-26 23:55:16 +08:00
default.nix feat(nix): add nix flake and package (#319) 2025-07-28 12:48:58 +08:00
DESIGN.md docs(agents): merge the font rules into a visual design skill (#3617) 2026-11-26 02:45:11 +08:00
eslint-suppressions.json refactor(telegram-bot): remove explicit any types (#3561) 2026-11-22 22:51:37 +09:00
eslint.config.ts feat(http-shared): type success responses and forbid c.json in server routes (#3582) 2026-11-23 19:55:29 +08:00
flake.lock feat(nix/server-runtime): init (#3538) 2026-11-19 22:16:08 +08:00
flake.nix feat(nix/server-runtime): init (#3538) 2026-11-19 22:16:08 +08:00
knip.json perf: setup knip, remove unused dependencies (#992) 2026-01-24 15:08:08 +08:00
LICENSE docs: update LICENSE 2024-12-03 16:25:03 +08:00
package.json feat(i18n,stage-tamagotchi): find missing keys behind translation helpers (#3636) 2026-11-29 16:36:18 +07:00
pnpm-lock.yaml feat(i18n,stage-tamagotchi): find missing keys behind translation helpers (#3636) 2026-11-29 16:36:18 +07:00
pnpm-workspace.yaml fix(stage-ui): use the Capacitor icon for subscriptions (#3624) 2026-11-27 16:37:51 +08:00
README.md feat(photon-bot,stage-ui): add Photon iMessage integration and settings page (#3558) 2026-11-23 01:22:47 +00:00
skills-lock.json chore(.agents/skills): update existing skills 2026-08-05 20:46:16 +08:00
sponsorkit.config.js chore(docs): move the documentation site to moeru-ai/airi-docs (#2924) 2026-10-12 14:30:33 +08:00
tsconfig.json chore(pocket): exclude build and public folder in tsconfig 2026-05-04 19:47:38 +08:00
turbo.json ci: reduce CI time without removing checks (#3330) 2026-11-02 17:52:33 +08:00
uno.config.ts fix(stage-ui): use the Capacitor icon for subscriptions (#3624) 2026-11-27 16:37:51 +08:00
vite-env.d.ts feat(api,stage-ui): add the Capacitor, a subscription store of Flux (#2813) 2026-10-11 01:18:20 +08:00
vitest.config.ts test: run workspace tests through Turbo (#3048) 2026-10-21 20:44:37 +08:00
x18n.config.ts feat(i18n,stage-tamagotchi): find missing keys behind translation helpers (#3636) 2026-11-29 16:36:18 +07:00

Project AIRI

Re-creating Neuro-sama, a soul container of AI waifu / virtual characters to bring them into our world.

[Join Discord Server] [Try it] [简体中文] [日本語] [Русский] [Tiếng Việt] [Français] [한국어]

AIRI - A container of cyber living souls, re-creation of Neuro-sama | Product Hunt moeru-ai%2Fairi | Trendshift AIRI - #1 repository of the week across all languages | Trendshift

Heavily inspired by Neuro-sama

Tip

On Windows, you can also install AIRI with winget:

winget install MoeruAI.AIRI

Or install AIRI with Scoop:

scoop bucket add airi https://github.com/moeru-ai/airi
scoop install airi/airi

On macOS, you can install AIRI with Homebrew Cask without adding a custom tap:

brew install --cask airi

Warning

Attention: We do not have any officially minted cryptocurrency or token associated with this project. Please check the information and proceed with caution.

Note

We've got a whole dedicated organization @proj-airi for all the sub-projects born from Project AIRI. Check it out!

RAG, memory system, embedded database, icons, Live2D utilities, and more!

Tip

You can translate AIRI on Crowdin, or open a pull request that changes packages/i18n/src/locales/. Both ways update the same translations.

Do not submit a translation that is the same as the English text. Review rejects it. A string without a translation shows the English text.

Crowdin | Agile localization for tech companies

Have you dreamed about having a cyber living being (cyber waifu, digital pet) or digital companion that could play with and talk to you?

With the power of modern large language models like ChatGPT and famous Claude, asking a virtual being to roleplay and chat with us is already easy enough for everyone. Platforms like Character.ai (a.k.a. c.ai) and JanitorAI as well as local playgrounds like SillyTavern are already good-enough solutions for a chat based or visual adventure game like experience.

But, what about the abilities to play games? And see what you are coding at? Chatting while playing games, watching videos, and is capable of doing many other things.

Perhaps you know Neuro-sama already. She is currently the best virtual streamer capable of playing games, chatting, and interacting with you and the participants. Some also call this kind of being "digital human." Sadly, as it's not open sourced, you cannot interact with her after her live streams go offline.

Therefore, this project, AIRI, offers another possibility here: let you own your digital life, cyber living, easily, anywhere, anytime.

Recent DevLogs & Stories

What's So Special About This Project?

Unlike the other AI driven VTuber open source projects, アイリ was built with support of many Web technologies such as WebGPU, WebAudio, Web Workers, WebAssembly, WebSocket, etc. from the first day.

Tip

Worrying about the performance drop since we are using Web related technologies?

Don't worry, while the Web browser version is meant to give an insight into how much we can push and do inside browsers and webviews, we will never fully rely on this. The desktop version of AIRI is capable of using native NVIDIA CUDA and Apple Metal by default (thanks to HuggingFace & the beloved candle project), without any complex dependency management. Considering the tradeoff, it is partially powered by Web technologies for graphics, layouts, animations, and the WIP plugin system for everyone to integrate things.

This means that アイリ is capable of running on modern browsers and devices and even on mobile devices (already done with PWA support). This brings a lot of possibilities for us (the developers) to build and extend the power of アイリ VTuber to the next level, while still leaving the flexibility for users to enable features that require TCP connections or other non-Web technologies such as connecting to a Discord voice channel or playing Minecraft and Factorio with friends.

Note

We are still in the early stage of development where we are seeking out talented developers to join us and help us to make アイリ a reality.

It's ok if you are not familiar with Vue.js, TypeScript, and devtools required for this project, you can join us as an artist, designer, or even help us to launch our first live stream.

Even if you are a big fan of React, Svelte or even Solid, we welcome you. You can open a sub-directory to add features that you want to see in アイリ, or would like to experiment with.

Fields (and related projects) that we are looking for:

  • Live2D modeller
  • VRM modeller
  • VRChat avatar designer
  • Computer Vision
  • Reinforcement Learning
  • Speech Recognition
  • Speech Synthesis
  • ONNX Runtime
  • Transformers.js
  • vLLM
  • WebGPU
  • Three.js
  • WebXR (checkout the another project we have under the @moeru-ai organization)

If you are interested, why not introduce yourself here? Would like to join part of us to build AIRI?

Current Progress & Roadmap

Capable of

  • Brain
  • Ears
    • Audio input from browser
    • Audio input from Discord
    • Client side speech recognition
    • Client side talking detection
  • Mouth
    • Multi-provider voice synthesis, including ElevenLabs, Microsoft/Azure Speech, OpenAI-compatible TTS, Alibaba Cloud Model Studio, and local Kokoro TTS
  • Body
    • VRM support
      • Control VRM model
    • VRM model animations
      • Auto blink
      • Auto look at
      • Idle eye movement
    • Live2D support
      • Control Live2D model
    • Live2D model animations
      • Auto blink
      • Auto look at
      • Idle eye movement

Development

For detailed instructions to develop this project, follow CONTRIBUTING.md

Note

By default, pnpm dev will start the development server for the Stage Web (browser version). If you would like to try developing the desktop version, please make sure you read CONTRIBUTING.md to setup the environment correctly.

pnpm i
pnpm dev

Stage Web (Browser Version at airi.moeru.ai)

pnpm dev

Stage Tamagotchi (Desktop Version)

pnpm dev:tamagotchi

A Nix package for Tamagotchi is included. To run airi with Nix, first make sure to enable flakes, then run:

nix run github:moeru-ai/airi

NixOS

Electron requires shared libraries that aren't in standard paths on NixOS. Use the FHS shell defined in flake.nix:

nix develop .#fhs
pnpm dev:tamagotchi

Stage Pocket (Mobile Version)

Start the development server for the capacitor:

pnpm dev:pocket:ios --target "<DEVICE_ID_OR_SIMULATOR_NAME>"
# Or
CAPACITOR_DEVICE_ID_IOS="<DEVICE_ID_OR_SIMULATOR_NAME>" pnpm dev:pocket:ios

Quote the target: simulator names such as iPhone 16 Pro contain spaces.

You can see the list of available devices and simulators by running pnpm -F @proj-airi/stage-pocket exec cap run ios --list. @capacitor/cli is declared in apps/stage-pocket, so cap does not resolve from the repository root.

If you need to connect server channel on pocket in wireless mode, you need to start tamagotchi as root:

sudo pnpm dev:tamagotchi

Then enable secure websocket in tamagotchi settings/connections.

Documentation Site

The documentation site lives in moeru-ai/airi-docs.

Publish

Run bumpp to update the monorepo version:

npx bumpp --no-commit --no-tag

Support of LLM API Providers (powered by xsai)

Sub-projects Born from This Project

flowchart LR
  subgraph Apps[Stage applications]
    Web[stage-web]
    Desktop[stage-tamagotchi]
    Pocket[stage-pocket\nexperimental]
  end

  subgraph Shared[Shared product packages]
    StageUI[stage-ui]
    Domain[core-agent\ncore-character]
    Audio[pipelines-audio]
    Renderers[stage-ui-live2d\nstage-ui-three and renderers]
    SDK[server-sdk\nserver-shared]
  end

  subgraph Channel[Desktop server channel]
    Runtime[server-runtime]
  end

  subgraph Integrations[Source-configured integrations]
    Discord[discord-bot]
    Minecraft[minecraft-bot]
    Other[Telegram, Factorio, MCP, and others]
  end

  subgraph Hosted[Hosted backend]
    Edge[Caddy]
    API[api-server]
    Auth[auth-server]
    Database[(PostgreSQL)]
    Cache[(Redis)]
  end

  Web --> StageUI
  Desktop --> StageUI
  Pocket --> StageUI
  StageUI --> Domain
  StageUI --> Audio
  StageUI --> Renderers
  StageUI --> SDK
  Desktop --> Runtime
  SDK <-->|server channel| Runtime
  Discord --> SDK
  Minecraft --> SDK
  Other -. optional .-> SDK
  Edge --> API
  Edge --> Auth
  API --> Database
  API --> Cache
  Auth --> Database
  Auth --> Cache

Similar Projects

Open sourced ones

Non-open-sourced ones

Project Status

Repobeats analytics image

Acknowledgements

Supporters

Thank you for supporting Project AIRI through OpenCollective, Patreon, and Ko-fi.

Project AIRI supporters

Special Thanks

Special thanks to all contributors for their contributions to Project AIRI ❤️

Star History

Star History Chart