.gitignore123 lines · main
1# deps
2node_modules/
3.pnpm-store/
4
5# build output
6dist/
7dist-pack/
8build/
9.next/
10out/
11.turbo/
12.tsup/
13
14# env
15.env
16.env.local
17.env.*.local
18.env.development
19.env.production
20
21# logs
22*.log
23npm-debug.log*
24yarn-debug.log*
25yarn-error.log*
26pnpm-debug.log*
27
28# test
29coverage/
30.nyc_output/
31playwright-report/
32test-results/
33
34# editors
35.vscode/*
36!.vscode/extensions.json
37!.vscode/settings.json.example
38.idea/
39*.swp
40*.swo
41
42# os
43.DS_Store
44Thumbs.db
45# macOS Finder / Spotlight occasionally drops "<name> 2.<ext>" duplicates
46# alongside the originals. Always accidental, never source.
47* 2.ts
48* 2.tsx
49* 2.js
50* 2.json
51* 2.yml
52* 2.md
53
54# misc
55*.tsbuildinfo
56.cache/
57
58# runtime bundles (populated per-env, never checked in)
59apps/*/data/
60apps/**/data/
61
62# claude code local overrides (shared settings.json is fine to commit)
63.claude/settings.local.json
64.claude/launch.json
65
66# internal reference docs — never pushed to remote
67# covers /docs/ at repo root and every file + subfolder inside it
68# EXCEPTIONS:
69# - MIGRATION.md is tracked — user-facing playbook for migrating onto briven.tech
70# - AI.md is tracked — operator setup guide for the ollama backend the AI features hit
71/docs/**
72!/docs/MIGRATION.md
73!/docs/AI.md
74!/docs/LICENSE-COMMERCIAL.md
75!/docs/launch/
76!/docs/launch/**
77!/docs/runbooks/
78!/docs/runbooks/discord-setup.md
79!/docs/runbooks/polar-metering-setup.md
80!/docs/runbooks/status-domain-cutover.md
81!/docs/runbooks/host-firewall-v6.md
82
83# Local git worktrees for parallel branch work — never commit their contents
84.worktrees/
85
86# Stray tsc emit into client-* src/ — the build script (`pnpm build`) was
87# emitting next to sources because no outDir was set in the per-package
88# tsconfig. Fixed by setting outDir: "./dist" in each client tsconfig;
89# this rule prevents drift if someone re-runs an older build script.
90packages/client-*/src/*.js
91packages/client-*/src/*.js.map
92packages/client-*/src/*.d.ts
93packages/client-*/src/*.d.ts.map
94
95# Briven Build Protocol R4 — read-only third-party reference repos. Populate
96# with `git clone --depth=1` (per machine); never committed, never built
97# against, never imported from. Used as shape spec only.
98_reference/
99
100# Internal planning / spec / instruction docs — NOT for the public repo.
101# The Codeberg repo is public open-core; these contain internal plans, specs,
102# AI instructions, and a security-sensitive bug report. Kept local-only.
103ARCHITECTURE.md
104BUILD_PLAN.md
105CLAUDE.md
106CONTRIBUTING.md
107SPEC.md
108SPRINT-PLAN.md
109AUTH-BLANK-STATE.md
110# Root-only internal docs (leading /). Do NOT use bare `docs/` — that also
111# hid new pages under apps/docs/ (public site) from git.
112/docs/
113/docs/**
114specs/
115
116# Local operator secrets — never commit
117memory.md
118.local/
119
120# Keep markdown private locally; only README.md files stay public on the remote
121*.md
122!README.md
123!**/README.md