Skip to content

About

A custom dot file viewer - mostly for viewing claude and other ai related configs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

dot-viewer

A desktop viewer for ~/.claude/ and ~/.ai/ — the two directories that hold your Claude Code configuration, extensions, workspace, review rules, and design knowledge base.

Built as an Electron + React app, it renders markdown, JSON, and code with syntax highlighting so you can browse your personal Claude setup without opening a terminal.

What it shows

The sidebar is grouped by source directory:

.claude — Configuration

  • CLAUDE.md — global and project instructions
  • Settings — configuration and preferences

.claude — Extensions

  • Commands — custom slash commands
  • Skills — installed skills and capabilities
  • Output Styles — response formatting styles
  • Agents — agent configurations and definitions
  • Plugins — installed plugins

.claude — Workspace

  • Plans — implementation plans (sorted by modification time)
  • Projects — per-project configurations
  • History — conversation event log, grouped by project and session

.ai — Standards

  • Review Rules — code review standards and project conventions
  • Knowledge Base — design docs and architecture decisions

Tech stack

  • Electron + electron-vite — desktop shell and dev server
  • React 18 + TypeScript — renderer
  • Tailwind CSS v4 + shadcn-style primitives (Radix UI) — styling
  • react-markdown + remark-gfm — markdown rendering
  • shiki — code highlighting (Vesper theme)
  • react-json-view-lite — JSON viewer
  • vitest — tests

Directory sources

The app reads from two fixed locations under your home directory:

  • ~/.claude/ — resolved in src/main/index.ts
  • ~/.ai/ — resolved in src/main/index.ts

All filesystem access goes through IPC handlers in src/main/ipc.ts, which enforce a resolveSafe check to prevent path traversal outside the base directory.

.ai folder hierarchy

This project follows a convention for organizing design docs and review rules in ~/.ai/. The viewer's Review Rules and Knowledge Base sections expect this layout.

~/.ai/
├── review_rules/
│   ├── base.md                          ← rules applied to every project
│   └── <project-directory-name>/
│       └── rules.md                     ← project-specific supplemental rules
│
└── knowledge_base/
    └── <project-directory-name>/
        ├── designs/                     ← finalized designs for merged work
        │   ├── index.md
        │   ├── <standalone-design>.md
        │   └── <feature-name>/
        │       ├── <sub-topic>.md
        │       └── <sub-topic>.md
        │
        └── wip/                         ← work-in-progress designs
            ├── index.md
            ├── <standalone-design>.md
            └── <feature-name>/
                └── <sub-topic>.md

Conventions

  • designs/ — trusted, finalized designs for work that has been merged to main. Do not edit during normal feature work; only fix if the doc itself is wrong.
  • wip/ — in-progress designs for ongoing feature work. New design docs always start here.
  • Promotion — when work ships, move the file from wip/ to designs/ and update both index.md files.
  • Index files — every designs/ and wip/ folder has an index.md listing its contents, grouped by standalone designs and by feature.
  • Feature grouping — related design docs are nested under a feature subdirectory rather than flattened.
  • Monorepos — in monorepo projects, designs are nested by package name first, then by feature: <package>/<feature>/<doc>.md.

Review rules

  • review_rules/base.md applies to every project.
  • review_rules/<project>/rules.md supplements (does not replace) the base rules for that project.

Development

npm install
npm run dev          # launch electron in dev mode
npm run test         # vitest run
npm run lint         # eslint --fix
npm run typecheck    # tsc --noEmit for node + web

Building

Build resources (icons, entitlements) for electron-builder live in the build/ folder. The generated iconset (build/icon.iconset/) is ignored.

npm run build        # typecheck + bundle
npm run build:mac    # .dmg
npm run build:win    # .exe
npm run build:linux  # AppImage / snap / deb

License

MIT

About

A custom dot file viewer - mostly for viewing claude and other ai related configs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages