Skip to content
hauntedfailPublic

Latest commit

 

History

652 Commits

Folders and files

Repository files navigation

Trauma Logo

TRAUMA


TRAUMA is a personal bookmark management app. The product language uses `memory` for one saved bookmark and `memories` for the collection.


⚠️ Warning: This is mostly a personal project that I work on in the margins of another project, so please do not expect particularly eager maintenance.

The project is a lightweight local/self-hosted web app: one SolidStart app, one Bun runtime, SQLite for relational state, a file-backed memory store for reader content and Psychiatrist threads, and built-in git backup for selected store artifacts.

Design Philosophy

TRAUMA is designed with an ADHD-focus philosophy for personal reading, bookmarking, and knowledge retention:

  • Low-friction capture, low-cost resumption: Saving links should be effortless, and returning to a saved memory after a context switch should not require rebuilding mental context from scratch.
  • Single-focus over visual sprawl: Interfaces should minimize cognitive clutter, competing rails, and decision fatigue during triage and deep reading.
  • Modular, toggleable focus plugins: ADHD traits and effective coping mechanisms differ from person to person. Focus, triage, and reading interventions are therefore designed as modular plugins that can be individually enabled, disabled, and tuned—making it practical to run personal experiments and keep only what genuinely improves focus.
  • Research-informed, personally owned: UI experiments draw from empirical HCI and cognitive-accessibility literature rather than ad-hoc gimmicks, while all memories, notes, and AI discussions stay local/self-hosted and backed by plain files and Git.

Status

The current baseline includes URL and browser-assisted import, memory browsing and read state, source and translated readers, Flashbacks, Moments, Brilliant translation, the memory-scoped Psychiatrist assistant, settings, responsive shells, and backup failsafe recovery. See docs/INDEX.md for the current implementation contracts.

Previews

Sun Light Sun Paper
TRAUMA Sun Light theme TRAUMA Sun Paper theme
Night Midnight Night Hermès
TRAUMA Night Midnight theme TRAUMA Night Hermès theme

Stack

  • TypeScript
  • SolidStart / Solid
  • Bun
  • Drizzle ORM
  • SQLite
  • Playwright
  • Vitest

Pinned bootstrap versions are documented in docs/references/technology-stack.md.

Local Development

Install dependencies:

bun install

Create the local configuration files from the examples:

cp .env.example .env
cp trauma.config.example.json trauma.config.json

Both local files are gitignored. Keep .env for settings such as browser import, and edit trauma.config.json for local storage and backup paths. See Configuration for the supported fields. The dev, start, and preview scripts default HOST to 127.0.0.1 unless you set another host in the shell.

Run the dev server:

bun run dev

Run baseline verification:

bun run verify

Run the Playwright E2E suite:

bun run test:e2e

Documentation

Start with docs/INDEX.md. Open durable work is listed in Backlog.md; completed execution history is retained by Git rather than duplicated in agent-facing documentation.

Operating Scope

TRAUMA is single-user and local/self-hosted. TRAUMA user accounts, sessions, multi-user ownership, public signup, managed databases, external queues, serverless deployment, and full offline archival are out of scope. Optional Codex app-server authentication for Brilliant and Psychiatrist is a separate backend integration documented in the configuration reference.

Releases

Packages

Contributors

Languages