# Foldershare project overview Stable facts here are based on repository source and configuration as inspected on 2026-11-04. This is not a runtime or deployment verification record. ## Product and architecture The repository contains a folder-sharing web application. `react/` is a React 18, Vite, React Bootstrap frontend with login, file-browser, and user-management views. `api/` is a Flask API with token authentication, user and file routes, Flask-SQLAlchemy models, and Flask-Migrate migrations. The API config selects a local SQLite database. The Vite development server proxies `/api` to `http://localhost:5000`. ## Repository layout - `api/api.py`, `api/settings.py`, `api/routes/`, `api/models/`, `api/migrations/`: backend entrypoint, configuration, routes, data models, and migrations. - `react/src/`: frontend views, components, routing, auth context, and SCSS. - `react/package.json`: frontend dependencies and scripts. - `react/README.md`: upstream Vite template README; it does not define a project workflow. ## Development and validation evidence - `react/package.json` defines `npm run dev`, `npm run build`, `npm run lint`, and `npm run preview`. - `react/vite.config.js` defines the development API proxy. - `api/config/requirements.txt` lists Python dependencies. No repository-defined API test command or test suite is tracked. - No tracked CI, container, deployment, Git workflow, or manual-test/testtask documentation was found during reconciliation. - Existing UI styling references are `react/src/styles/` and component `*.module.scss` files; no separate style guide is tracked. Local environment files and runtime data under `api/` are ignored by Git. Their contents are not part of this overview. ## Context map - Current state: `docs/CURRENT_STATE.md` - Durable decisions and pending convention proposals: `docs/DECISIONS.md` - Accepted implementation work: `docs/TASKS.md` - Replaceable transfer snapshot: `docs/HANDOFF.md` ## Product direction accepted 2026-11-04 (requirements; not verified implementation) FolderShare is intended as a private, read-only, authenticated file browser and downloader for selected friends, hosted on a Raspberry Pi on Captain's LAN. The Pi will access an existing video library through a shared/mounted folder. Captain administers accounts and each account's accessible folder. An intended hostname is `share.roborto.net` (subject to DNS/network-access design). V1 permits browsing and single-file downloads; multi-select file/folder ZIP downloads are deferred. These are product requirements, not claims that the current application implements them safely. ## Manual testing adapter (TASK-007, pending integration) `scripts/testtask.sh`, `.roborto/testtask.conf` and `.roborto/testtask-hook` adapt the installed `roborto-testtask` engine using `scripts/testtask_adapter.py`. The adapter uses disposable source copies, SQLite/accounts/media and loopback Flask/Vite services. See `scripts/README.md`; existing local Python/Node installations are prerequisites, not bundled dependencies. These files are present on TASK-007 only until integration.