No description
  • TypeScript 93%
  • JavaScript 4.3%
  • HTML 1.9%
  • Dockerfile 0.5%
  • CSS 0.3%
Find a file
Anton Nesterov 8d2053f76e
All checks were successful
Deploy Git / build (push) Successful in 1m21s
minor fix
2026-03-02 00:20:30 +01:00
.forgejo/workflows chore: deploy 2026-03-01 14:14:18 +01:00
public adjust icons 2026-03-01 23:00:16 +01:00
scripts init 2026-03-01 13:08:12 +01:00
src minor fix 2026-03-02 00:20:30 +01:00
.env.example init 2026-03-01 13:08:12 +01:00
.gitignore minor fixes 2026-03-01 22:56:33 +01:00
AGENTS.md minor fixes 2026-03-01 22:56:33 +01:00
Dockerfile init 2026-03-01 13:08:12 +01:00
index.html chore: generate icon 2026-03-01 14:40:26 +01:00
manifest.toml init 2026-03-01 13:08:12 +01:00
package.json init 2026-03-01 13:08:12 +01:00
pnpm-lock.yaml init 2026-03-01 13:08:12 +01:00
README.md init 2026-03-01 13:08:12 +01:00
tsconfig.json init 2026-03-01 13:08:12 +01:00
vite.config.mjs minor fixes 2026-03-01 22:56:33 +01:00

ViShare Web

P2P file sharing web application using WebTorrent.

Environment Variables

Variable Description Default
VITE_DEFAULT_SERVER Default magnet server URL https://server.example.com
VITE_DEFAULT_TRACKER Default tracker WebSocket URL wss://tracker.example.com

Development

# Install dependencies
pnpm install

# Start dev server
pnpm run dev

# Build for production
pnpm run build

Docker

# Build image
docker build -t vishare-web .

# Run container
docker run -p 8080:80 vishare-web

Deployment

The app is a static site built with Vite. The dist/ folder can be served by any static file server.

For production, set environment variables at build time:

VITE_DEFAULT_SERVER=https://your-server.com VITE_DEFAULT_TRACKER=wss://your-tracker.com pnpm run build

Or use Docker with build args:

docker build \
  --build-arg VITE_DEFAULT_SERVER=https://your-server.com \
  --build-arg VITE_DEFAULT_TRACKER=wss://your-tracker.com \
  -t vishare-web .