Documentation
¶
Overview ¶
Command reader is a native macOS app that browses Reddit with a go-widgets UI. It runs a local pure-Go HTTP server that (a) serves the WebAssembly front-end built from ./cmd/front and (b) proxies /api/* to Reddit through github.com/go-reddit/reddit, then opens a native WKWebView window (via purego, CGO=0) pointed at that server. Off macOS — or with -no-window — it prints the URL and opens the default browser instead.
reader -sr golang -sort top READER_OAUTH_CLIENT_ID=… READER_OAUTH_CLIENT_SECRET=… reader
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
front
command
|
|
|
mkicon
command
Command mkicon renders the Reddit Reader app icon and writes it as a macOS .icns file (or a .png when the output path ends in .png).
|
Command mkicon renders the Reddit Reader app icon and writes it as a macOS .icns file (or a .png when the output path ends in .png). |
|
internal
|
|
|
auth
Package auth handles Reddit OAuth login guarded by Touch ID.
|
Package auth handles Reddit OAuth login guarded by Touch ID. |
|
browserhttp
Package browserhttp builds a portable, pure-Go (CGO=0) http.Client that presents a real Chrome TLS fingerprint via uTLS.
|
Package browserhttp builds a portable, pure-Go (CGO=0) http.Client that presents a real Chrome TLS fingerprint via uTLS. |
|
server
Package server hosts the reader front-end: it serves the embedded wasm bundle and proxies the /api endpoints to Reddit through a go-reddit/reddit client.
|
Package server hosts the reader front-end: it serves the embedded wasm bundle and proxies the /api endpoints to Reddit through a go-reddit/reddit client. |
|
settings
Package settings is the reader's persisted preferences: named profiles (tabs) that each group a subset of subreddits — so "Pro" and "Perso" feeds stay separate — plus the chosen sort and theme.
|
Package settings is the reader's persisted preferences: named profiles (tabs) that each group a subset of subreddits — so "Pro" and "Perso" feeds stay separate — plus the chosen sort and theme. |
|
ui
Package ui renders the reader — a Reddit-style topbar + sidebar + feed — into an RGBA pixel buffer.
|
Package ui renders the reader — a Reddit-style topbar + sidebar + feed — into an RGBA pixel buffer. |
Click to show internal directories.
Click to hide internal directories.
