Skip to content

Commit 9ee89e3

Browse files
ralyodioclaude
andcommitted
Doppler for env, agent-friendly 'tron <url>', copyright footer
- Doppler CLI manages secrets (project tronbrowser); doppler.yaml scopes the repo to dev; Turso DB secrets loaded into Doppler dev+prd; README/.env.example note Doppler as source of truth (cloud AI keys stay in DB) - tron CLI: agent-friendly 'tron <url>' / 'tron open <url>' to open URLs - homepage: '© 2026 Profullstack, Inc. · MIT License' footer + tron <url> copy Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 95cf3de commit 9ee89e3

5 files changed

Lines changed: 45 additions & 10 deletions

File tree

.env.example

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# Copy to .env and fill in. .env is gitignored.
1+
# Secrets are managed with Doppler (project: tronbrowser). Prefer:
2+
# doppler run -- pnpm <script>
3+
# This file documents the variables and is a fallback for local .env use
4+
# (copy to .env and fill in; .env is gitignored). Doppler is the source of truth.
25
#
36
# --- Storage ---------------------------------------------------------------
47
# Option A: managed cloud database (Turso) — has managed backups.

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,22 @@ pnpm test
3030
pnpm build
3131
```
3232

33+
## Secrets / env (Doppler)
34+
35+
Secrets are managed with the [Doppler](https://doppler.com) CLI (project
36+
`tronbrowser`, config `dev`). After `doppler login`, the repo is already scoped
37+
via [`doppler.yaml`](doppler.yaml) — run anything that needs env through Doppler:
38+
39+
```bash
40+
doppler setup # one-time, reads doppler.yaml
41+
doppler run -- pnpm test
42+
doppler run -- node apps/... # injects TRONBROWSER_DB_URL, _AUTH_TOKEN, …
43+
```
44+
45+
[`.env.example`](.env.example) documents every variable; a local `.env`
46+
(gitignored) still works as a fallback, but Doppler is the source of truth.
47+
Cloud AI provider keys live in the DB (`ai_provider_keys`), not in env.
48+
3349
## Milestones
3450

3551
| Milestone | Scope |

apps/web/public/index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
border-radius: 10px; padding: 14px 16px; }
4040
.principles b { color: var(--cyan); }
4141
footer { text-align: center; margin-top: 56px; color: var(--muted); }
42+
.copyright { margin-top: 14px; font-size: 13px; color: var(--muted); opacity: .8; }
4243
a { color: var(--cyan); }
4344
</style>
4445
</head>
@@ -56,8 +57,8 @@
5657
<button onclick="copyCmd()">copy</button>
5758
</div>
5859
<div class="sub">
59-
Then use the <code>tron</code> CLI:<br />
60-
<code>tron</code> to launch &nbsp;·&nbsp;
60+
Then use the agent-friendly <code>tron</code> CLI:<br />
61+
<code>tron &lt;url&gt;</code> to open a URL &nbsp;·&nbsp;
6162
<code>tron upgrade</code> &nbsp;·&nbsp;
6263
<code>tron remove</code> &nbsp;·&nbsp;
6364
<code>tron version</code>
@@ -78,6 +79,7 @@
7879
<footer>
7980
<a href="https://github.com/profullstack/tronbrowser.dev">GitHub</a> ·
8081
<a href="https://github.com/profullstack/tronbrowser.dev/blob/main/docs/tronbrowser-prd.md">PRD</a>
82+
<div class="copyright">© 2026 Profullstack, Inc. · MIT License</div>
8183
</footer>
8284
</div>
8385
<script>

apps/web/public/install.sh

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,26 @@ usage() {
7070
tron — TronBrowser CLI
7171
7272
Usage:
73-
tron [url...] Launch TronBrowser (optionally opening URLs)
74-
tron upgrade Update to the latest release
75-
tron remove Uninstall TronBrowser (keeps your profile data)
76-
tron version Print the installed version
77-
tron help Show this help
73+
tron <url> [url...] Open URL(s) in TronBrowser (agent-friendly)
74+
tron open <url> Same as above, explicit
75+
tron Launch TronBrowser
76+
tron upgrade Update to the latest release
77+
tron remove Uninstall TronBrowser (keeps your profile data)
78+
tron version Print the installed version
79+
tron help Show this help
7880
USAGE
7981
}
8082
83+
launch() {
84+
[ -x "$CURRENT" ] || { echo "TronBrowser is not installed. Run: curl -fsSL $INSTALL_URL | sh" >&2; exit 1; }
85+
exec "$CURRENT" "$@"
86+
}
87+
8188
case "${1:-}" in
89+
open)
90+
shift
91+
[ "$#" -gt 0 ] || { echo "usage: tron open <url>" >&2; exit 2; }
92+
launch "$@" ;;
8293
upgrade|update)
8394
exec sh -c "curl -fsSL '$INSTALL_URL' | sh -s -- upgrade" ;;
8495
remove|uninstall)
@@ -90,8 +101,8 @@ case "${1:-}" in
90101
help|--help|-h)
91102
usage ;;
92103
*)
93-
[ -x "$CURRENT" ] || { echo "TronBrowser is not installed. Run: curl -fsSL $INSTALL_URL | sh" >&2; exit 1; }
94-
exec "$CURRENT" "$@" ;;
104+
# Bare `tron` launches; `tron <url> [url...]` opens URLs (passthrough).
105+
launch "$@" ;;
95106
esac
96107
TRON
97108
chmod +x "$TRON_CLI"

doppler.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
setup:
2+
project: tronbrowser
3+
config: dev

0 commit comments

Comments
 (0)