Vault Aquarium

by Ogyanuntius XIII
5
4
3
2
1
Score: 50/100

Description

Obsidianのヴォルト構造の色を映したベタを泳がせるプラグイン

Reviews

No reviews yet.

Stats

1
stars
47
downloads
0
forks
7
days
7
days
7
days
4
total PRs
0
open PRs
0
closed PRs
4
merged PRs
0
total issues
0
open issues
0
closed issues
13
commits

Latest Version

7 days ago

Changelog

Vault Aquarium 1.0.6

孤立ノートの数え方の不具合修正、魚の母集団を選べる設定の追加、OR 検索への対応、そして動作の軽量化をまとめた更新です。

不具合修正

  • 孤立ノートが実際より大幅に多く数えられていた。 リンクの有無を調べるとき、小文字化したパスを、実パスで作った集合と突き合わせていました。そのため、大文字を含むパスのノートは必ず「孤立」に数えられていました。作者のヴォルトでの実測では、2,147ノート中 2,078件が孤立と記録され、実際は4件でした。この値は模様の量・ヒレの元気さ・分断度へ直接効くため、魚は「ほぼ全部が孤立したヴォルト」として描かれていました。
  • 複数トークンのクエリでグループ名が壊れていた。 正規表現が残りのトークンまで飲み込み、path:アイデア path:企画書 から「アイデア path:企画書」という名前が作られていました。保存済みの壊れた名前も、起動時に一度だけ作り直します(dataVersion: 9)。クエリ自体は変更しません。
  • prefers-reduced-motion が半分しか効いていなかった。 ヒレのCSSアニメーションは止まる一方、遊泳と上下運動は続いていました。今回から魚そのものが静止します。

追加

  • ルールごとの「魚から除外」。 グラフビューの色分けはそのまま残し、魚の統計からだけ外します。ヴォルトの大半を1つのフォルダが占めていると、その色が上位2グループを占領して魚が変化しなくなるため、そこを切り離すための設定です。取り込み直しても、同じクエリのルールへ引き継がれます。
  • OR に対応。 空白区切りは従来どおりANDです。path:アイデア OR path:企画書 のように書けます。
  • 設定画面に各ルールの一致件数を表示。 0件のルールは「一致するノートがありません」と出ます。

軽量化

  • 魚を隠している間は描画ループを停止します。再表示のときに、止まっていた時間ぶんの色変化をまとめて進めるため、見た目の連続性は保たれます。
  • 毎フレーム行っていたレイアウト計測をやめ、寸法をキャッシュするようにしました。実測でフレームあたり 2〜4回 → 0回
  • 6時間かけて変わる色の書き戻しを、毎フレームから 1秒に1回 へ変更しました。
  • data.json への書き込みを大幅に削減。 60秒ごとの無条件保存と、再解析のたびの保存をやめ、色が実際に 1/255 以上動いたときと、ヴォルトの構造が変わったときだけ書きます。ノート本文を編集しただけでは書き込みが発生しません。同期サービスを使っている環境でのノイズが減ります。

互換性

保存データは dataVersion: 9 へ移行します。設定・現在の外観・成長記録はそのまま引き継がれます。壊れたグループ名の修復以外に、既存の設定を書き換えることはありません。

README file from

Github

Vault Aquarium / ヴォルト水槽

Vault Aquarium adds one gently swimming betta fish to Obsidian. Its body, fins, and pattern colors reflect the color-group structure of your vault, turning changes in your notes and links into a slowly evolving appearance.

Features

  • Shows one animated betta fish over the Obsidian workspace.
  • Uses the leading graph color groups for the fish body, fins, and patterns.
  • Smoothly interpolates appearance changes instead of switching colors immediately.
  • Opens a status and hide menu where you click, and lets you drag the fish anywhere.
  • Saves local monthly growth records with note, link, and color-group statistics.
  • Provides Japanese settings for size, speed, opacity, visibility, and graph rules.
  • Lets you exclude a rule from the fish while keeping it in the graph view, so a folder holding most of your vault cannot monopolise the two colors the fish uses.
  • Stops the render loop and the periodic saves while the fish is hidden, and honours prefers-reduced-motion by holding the fish still.

Privacy

Vault Aquarium does not analyze the meaning of note contents and does not send vault data to external services. Settings and growth records stay in the vault as Obsidian plugin data.

Usage and limitations

Enable the plugin, then open Settings → Vault Aquarium. The plugin attempts to read graph color groups from .obsidian/graph.json. Because Obsidian does not currently expose graph color groups through a stable public API, compatible manual rules such as path:Development and tag:#TRPG are also supported.

Manual installation

Download main.js, manifest.json, and styles.css from the latest GitHub release and place them in:

<vault>/.obsidian/plugins/vault-aquarium/

Restart Obsidian, then enable Vault Aquarium under Community plugins.

日本語

Vault Aquariumは、ヴォルトの色グループ構成を一匹のベタの姿に反映するObsidianプラグインです。魚は画面上をゆっくり泳ぎ、ノートやリンクの変化に合わせて体色・ヒレ色・模様が少しずつ変化します。

  • 魚をクリックすると、その場でステータス・非表示メニューが開きます。
  • ドラッグで好きな位置へ移動できます。
  • ノート本文の意味解析や外部送信は行いません。
  • グラフ色グループを公開APIから直接取得できないため、.obsidian/graph.jsonの読み取りと手動ルールを併用します。
  • ルールごとに「魚から除外」を設定できます。グラフの色分けは残したまま、魚の統計からだけ外れます。ヴォルトの大半を占めるフォルダが上位2色を占領してしまうときに使ってください。
  • 魚を隠している間は描画ループと定期保存が止まります。prefers-reduced-motion が有効な環境では、ヒレも遊泳も停止します。

Development

pnpm install
pnpm run typecheck
pnpm run build

The release main.js embeds the fish PNG assets as data URLs.

Author and license

Ogyanuntius XIII · MIT License