rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ramanasai/dsh-closet-tracker
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Your clothing wishlist, in two shapes from one repo:
app/) — paste a product link and
track it: image, name, price, store, brand, category, price history, outfits,
gaps, palette, PDF export, PWA. Runs normally in any browser.app/data/items.json the web app uses, so
items added in either place show up in both.Requires Bun (no bun install needed):
cd app
bun run start # http://localhost:3003
open http://localhost:3003
Requires DeepSeek Harness (built against 0.2.1-rc.5) with a profile, plus Bun
for the app.
git clone https://github.com/ramanasai/dsh-closet-tracker.git
Install the bundle from the clone — the target is the absolute path of the clone (the repo root is the plugin package):
plugin_manager install_bundle target=/absolute/path/to/dsh-closet-tracker
or use the Plugin Manager UI in Harness (install a bundle from a local directory) and pick the same path.
Or install the released package (no clone needed): download
dsh-closet-tracker-1.0.0.tgz from Releases
and pass the tarball itself as the target — this path is verified to install and
activate:
plugin_manager install_bundle target=/absolute/path/to/dsh-closet-tracker-1.0.0.tgz
The sidebar then shows a hanger icon labelled Closet Tracker; the app must be running for the panel to show data. If the Harness page was already open before installing, reload it once.
The upstream origin lives in cordis.patch.yml:
- insert:
- id: closet-tracker
name: dsh-closet-tracker
config:
# The local app. localhost reaches IPv4 or IPv6 loopback listeners.
baseUrl: http://localhost:3003
Run the app on another port (PORT=4000 bun run start) and set baseUrl to
match. The default 3003 is the app's own default (process.env.PORT || 3003).
| Piece | Registration |
|---|---|
sidebar.panellist |
id: closet-tracker, order: 30, hanger icon, localized label thunk |
main |
key: closet-tracker → the wishlist panel |
| Host route | prefix /closet-api on the Harness web server |
Why a Host proxy? The app is a separate local process that sends no CORS
headers, and Harness plugin guidance forbids embedding pages in an iframe. So the
Host half (index.js) registers one same-origin proxy route that the
Client half (client.js) calls as /closet-api/api/...:
/closet-api/api/* (nothing else is proxied);Authorization, or other request
headers upstream — only host, content-type and accept;config.baseUrl (a request path cannot move it), has a
45 s upstream timeout, and answers a structured 502 JSON when the app is down.The Client half renders React from the Harness module table, uses only
--dsw-alias-* theme tokens, and registers all visible text through the Harness
locale service.
package.json DSH bundle manifest (repo root = the plugin package)
cordis.patch.yml Loader row inserted into the profile (+ baseUrl)
index.js Host half: the authenticated /closet-api proxy
client.js Client half: sidebar entry + wishlist panel
locale/en.json Plugin Manager title/description
icon.svg Original hanger artwork
test/proxy.test.mjs Self-contained proxy tests (stub upstream, no network)
app/ The standalone Closet Tracker web app (Bun)
server.js HTTP server + scraper engine + JSON API (no framework)
public/ UI: Tailwind CDN + Fraunces / Plus Jakarta Sans, PWA shell
data/ Personal items/profile/cache (git-ignored)
npm test # node --test: proxy forwarding, allowlist, gate, header hygiene
node --check index.js client.js # syntax
cd app && bun run start # run the app itself
The proxy tests start their own stub upstream, so they need neither Bun nor the real app.
| Symptom | Fix |
|---|---|
| "Closet Tracker is not reachable at http://localhost:3003" | Start the app (cd app && bun run start). The panel retries by itself every 12 s, or press Try again. |
| Sidebar icon missing after install | Reload the Harness page once so the new client module generation loads. |
| Panel shows data for the wrong app | baseUrl in cordis.patch.yml must match the app's port. |
| Port already in use | cd app && make stop (frees PORT, default 3003), or start with another PORT and update baseUrl. |
| Amazon / Ajio links scrape poorly | Expected — both block bots. The item is added; fill in details with the app's edit dialog (✏️). |
make stop killed something else |
It kills whatever listens on the app's PORT; check lsof -nP -iTCP:3003 -sTCP:LISTEN. |
MIT — see LICENSE. The bundled jsPDF copy in app/public/vendor/
is MIT-licensed by its authors.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。