2026-05-16 23:51:49 +03:00
2026-05-17 01:08:19 +03:00
2026-05-17 01:08:19 +03:00
2026-05-17 01:08:19 +03:00
2026-05-16 23:51:49 +03:00
2026-05-17 01:08:19 +03:00
2026-05-17 01:08:19 +03:00
2026-05-17 01:08:19 +03:00
2026-05-17 01:08:19 +03:00
2026-05-17 01:08:19 +03:00
2026-05-17 01:08:19 +03:00

videoreg.ru

Small video registry using TypeScript, a Next.js web frontend, App Router, FSD-oriented folders, and a primitive file-backed JSON database.

The Next.js app lives under web-front/. Ingestion code lives under ingestion/.

Local development

npm install
npm run dev

The app runs on http://localhost:3000.

Data storage

By default records are stored in data/videoreg.json. Override the path with:

VIDEOREG_DB_FILE=/absolute/path/videoreg.json npm run dev

Reads are intentionally cached aggressively:

  • process memory cache for the primitive JSON database;
  • Next.js cache tag for dashboard/API reads;
  • long HTTP cache headers on the read API.

Writes call revalidateTag and update the process cache.

Deployment

Gitea Actions runs:

  • .gitea/workflows/pr.yml: quality gate for pull requests into master;
  • .gitea/workflows/master.yml: quality gate, image build, push, and direct Swarm deploy from master.

The Swarm stack defaults to one replica on a manager node because the primitive database is a mounted JSON file. Use a real database before raising replicas above one or spreading the service across nodes.

S
Description
No description provided
Readme
112 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 60.5%
Python 25.8%
CSS 7%
JavaScript 4%
Shell 2.6%
Other 0.1%