Bumps the npm_and_yarn group with 6 updates in the /SharpbinV3.Client directory: | Package | From | To | | --- | --- | --- | | [dompurify](https://github.com/cure53/DOMPurify) | `3.4.14` | `3.4.16` | | [sharp](https://github.com/lovell/sharp) | `0.35.4` | `0.35.5` | | [brace-expansion](https://github.com/juliangruber/brace-expansion) | `1.1.18` | `1.1.21` | | [cookie](https://github.com/jshttp/cookie) | `0.6.0` | `2.0.1` | | [handlebars](https://github.com/handlebars-lang/handlebars.js) | `4.7.9` | `4.7.10` | | [source-map-js](https://github.com/7rulnik/source-map-js) | `1.2.1` | `1.2.2` | Updates `dompurify` from 3.4.14 to 3.4.16 - [Release notes](https://github.com/cure53/DOMPurify/releases) - [Commits](https://github.com/cure53/DOMPurify/compare/3.4.14...3.4.16) Updates `sharp` from 0.35.4 to 0.35.5 - [Release notes](https://github.com/lovell/sharp/releases) - [Commits](https://github.com/lovell/sharp/compare/v0.35.4...v0.35.5) Updates `brace-expansion` from 1.1.18 to 1.1.21 - [Release notes](https://github.com/juliangruber/brace-expansion/releases) - [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.18...v1.1.21) Updates `cookie` from 0.6.0 to 2.0.1 - [Release notes](https://github.com/jshttp/cookie/releases) - [Commits](https://github.com/jshttp/cookie/compare/v0.6.0...v2.0.1) Updates `handlebars` from 4.7.9 to 4.7.10 - [Release notes](https://github.com/handlebars-lang/handlebars.js/releases) - [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/v4.7.10/release-notes.md) - [Commits](https://github.com/handlebars-lang/handlebars.js/compare/v4.7.9...v4.7.10) Updates `source-map-js` from 1.2.1 to 1.2.2 - [Release notes](https://github.com/7rulnik/source-map-js/releases) - [Changelog](https://github.com/7rulnik/source-map-js/blob/main/CHANGELOG.md) - [Commits](https://github.com/7rulnik/source-map-js/compare/v1.2.1...v1.2.2) --- updated-dependencies: - dependency-name: dompurify dependency-version: 3.4.16 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: sharp dependency-version: 0.35.5 dependency-type: direct:production dependency-group: npm_and_yarn - dependency-name: brace-expansion dependency-version: 1.1.21 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: cookie dependency-version: 2.0.1 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: handlebars dependency-version: 4.7.10 dependency-type: indirect dependency-group: npm_and_yarn - dependency-name: source-map-js dependency-version: 1.2.2 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com>
SharpbinV3 Client
This is the SvelteKit frontend for SharpbinV3.
Development Setup
Prerequisites
- Node.js 24
- npm
Installation
Install the project dependencies:
npm install
Environment Configuration
The frontend defaults to the backend at http://localhost:5050. SvelteKit loads .env files during development, but vite.config.ts reads shell environment variables directly for its proxy and allowed hosts:
VITE_API_URL: The backend URL reachable from the frontend server. Export this in the shell when changing the development backend URL so the Vite proxy and server-side requests use the same value.VITE_ALLOWED_HOSTS: A comma-separated list of hosts for Vite dev/preview. Export this in the shell before starting Vite. It does not configure the production Node server.
In development, the frontend uses a fixed internal view-recording key matching appsettings.Development.json. It ignores VIEW_INTERNAL_API_KEY and View_HMAC_Internal_API_Key while NODE_ENV=development.
Running in Development
Start the development server with Hot Module Replacement (HMR):
npm run dev
The frontend will be available at http://localhost:5173.
Running in Production
Docker Compose loads frontend.env and runs the built Node server on port 5173. Set these runtime variables:
VITE_API_URL: Backend URL. Compose setshttp://backend:8080directly, overridingfrontend.env.ORIGIN: Public frontend URL, such ashttps://example.comorhttp://localhost:5173for local Docker testing.VIEW_INTERNAL_API_KEY: Same generated value as the backend'sPasteSettings__View_Internal_API_Key. If unset, the frontend readsView_HMAC_Internal_API_Key; it does not read the backend setting name.
For a standalone Node deployment, .env is not loaded automatically. Build the frontend, then load your environment file explicitly:
npm run build
node --env-file=.env build
Set PORT=5173 in that file to use the same port as Docker; the Node adapter otherwise defaults to port 3000. See the Node adapter documentation for runtime configuration.
Script Reference
npm run dev: Start the Vite development server.npm run build: Create a production build of the frontend.npm run preview: Locally preview the production build.npm run check: Run type checking with svelte-check.npm run lint: Run ESLint and Prettier checks.npm run format: Format the codebase with Prettier.