@karaage0703/workspace-web-editor
Aブラウザからローカルのワークスペース(Markdown / コード / フロントマター)を閲覧・編集する軽量 Web アプリ。Wiki-link / Backlinks / Quick Switcher / Mermaid / ライト・ダークテーマ対応。「workspace-web-editor 起動して」「web editor で開いて」で使用。
Install
agr install @karaage0703/workspace-web-editor --target claudeWrites 8 files into .claude/skills/, pinned to git-d0c7d3de.
- .claude/skills/workspace-web-editor/.gitignore
- .claude/skills/workspace-web-editor/LICENSE
- .claude/skills/workspace-web-editor/README.md
- .claude/skills/workspace-web-editor/SKILL.md
- .claude/skills/workspace-web-editor/USAGE.md
- .claude/skills/workspace-web-editor/package-lock.json
- .claude/skills/workspace-web-editor/package.json
- .claude/skills/workspace-web-editor/workspace-web-editor.service
Document
name: workspace-web-editor description: ブラウザからローカルのワークスペース(Markdown / コード / フロントマター)を閲覧・編集する軽量 Web アプリ。Wiki-link / Backlinks / Quick Switcher / Mermaid / ライト・ダークテーマ対応。「workspace-web-editor 起動して」「web editor で開いて」で使用。
workspace-web-editor
ローカルのワークスペースをブラウザから閲覧・編集する Node.js 製の軽量 Web アプリ。 任意で Tailscale や VPN 越しにスマホから使うこともできる。
機能
- 📁 ディレクトリツリー + パンくず + タグフィルター
- 📝 Markdown プレビュー(Mermaid 図 + シンタックスハイライト)
- 🔗 Wiki-link
[[name]]クリック遷移(broken は点線) - 📎 Backlinks — どこから参照されているかを一覧表示
- 🔍 Quick Switcher(
Cmd/Ctrl+P)でファジー検索 - 🌙 ライト / ダークテーマ切替(永続化)
- ✏️ 編集 +
Ctrl+S保存 - 🏷️ フロントマター解析
- 🔄 任意の Git sync(pull → add → commit → push)
起動方法
以下、<repo> は workspace-web-editor のチェックアウトディレクトリ、<workspace> は閲覧したいワークスペースの絶対パスとする。
初回セットアップ
cd <repo>
npm install
手動起動
cd <repo>
WORKSPACE_DIR=<workspace> PORT=9080 node src/server.js
バックグラウンド起動(xangi / Codex 配下では setsid でプロセスグループを分離する):
cd <repo>
setsid env WORKSPACE_DIR=<workspace> PORT=9080 node src/server.js > /tmp/workspace-web-editor.log 2>&1 < /dev/null &
echo $!
停止:
ss -ltnp | grep ':9080'
kill <PID>
起動後の確認・報告(必須)
- プロセス確認:
ps -o pid,ppid,sid,pgid,stat,etime,cmd -p <PID>で PPID 1 / SID=PID になっていることを確認 - ヘルスチェック:
curl -s -o /dev/null -w "%{http_code}" http://localhost:9080/で 200 を確認 - ログ確認:
tail -n 30 /tmp/workspace-web-editor.logでWorkspace : <workspace>を確認 - アクセス URL を報告:
- ローカルのみ:
http://localhost:9080/ - Tailscale 経由(スマホ等から):
echo "http://$(tailscale ip -4):9080"を実行し、その URL を伝える
- ローカルのみ:
Tailscale が利用可能な環境なら Tailscale IP の URL を優先して返す。
環境変数
| 変数 | デフォルト | 説明 |
|---|---|---|
PORT | 9080 | リッスンするポート |
WORKSPACE_DIR | process.cwd() | 閲覧・編集するワークスペースのルート |
EXCLUDE_EXTRA | (なし) | デフォルト除外に追加するディレクトリ名(カンマ区切り) |
VIEWABLE_EXT | .md,.txt,.json,.yaml,.yml,.toml,.py,.js,.ts,.sh | 表示対象の拡張子をカンマ区切りで上書き |
詳しい使い方とトラブルシューティングは USAGE.md を参照。
Trustgrade A
- passBody integrity
Whether the stored document is plausibly the kind of file the artifact declares, rather than something fetched by mistake.
- passType matchnot applicable to this artifact type
Whether the artifact is really the kind of thing its metadata claims it is.
- passFreshness
How long since the source repository was last pushed to.
- passPrompt injection
Scans the artifact's own text for instructions aimed at your agent rather than at you.
- passLicense
Whether the source repository declares an SPDX license permissive enough to redistribute.
How the grade is calculated
Each check contributes 0 points when it passes, 1 when it warns, and 2 when it fails. The total maps to a letter:
- Aevery check passed
- Bone warning
- Ctwo warnings
- Dprompt injection or body integrity failed, or three warnings
- Fone of those failed, and something else is wrong
These are automated hygiene checks, not a security audit, and not a dependency or vulnerability scan. A grade of A means nothing was flagged — not that the artifact is safe.
Versions
git-d0c7d3de61212026-07-31