Skip to content

Commit ba77869

Browse files
committed
Improve README's
1 parent a4077f7 commit ba77869

File tree

3 files changed

+105
-4
lines changed

3 files changed

+105
-4
lines changed

.github/README_ARTIFACTHUB.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Fluorite
2+
3+
An elegant, offline‑first Progressive Web App (PWA) video player. This container image serves the built static application using Caddy.
4+
5+
## Features
6+
7+
- Drag & Drop or file dialog to open a video
8+
- Clean controls with auto‑hide and keyboard shortcuts
9+
- Video info overlay (codec, bitrate, dimensions, etc.)
10+
- PWA: installable, offline‑ready with a service worker
11+
- Internationalization (currently English and French)
12+
- Privacy‑friendly: no backend, no telemetry
13+
14+
## Docker Image
15+
16+
- Preconfigured Caddy server serving static files from /srv
17+
- Hardened HTTP security headers
18+
- No volumes or env vars required
19+
- No TLS support (reverse proxy required for production use)
20+
- Expose port 80 in the container
21+
22+
Pull and run the image:
23+
24+
```bash
25+
docker pull ghcr.io/afcms/fluorite:master
26+
docker run --rm -p 4173:80 ghcr.io/afcms/fluorite:master
27+
# Open http://localhost:4173
28+
```
29+
30+
Or build locally:
31+
32+
```bash
33+
docker build -t fluorite:latest .
34+
docker run --rm -p 4173:80 fluorite:latest
35+
```

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LABEL org.opencontainers.image.authors="AFCMS <afcm.contact@gmail.com>"
99
LABEL org.opencontainers.image.licenses="GPL-3.0-only"
1010
LABEL org.opencontainers.image.source="https://github.com/AFCMS/fluorite"
1111
LABEL io.artifacthub.package.logo-url="https://raw.githubusercontent.com/AFCMS/fluorite/refs/heads/master/public/fluorite.svg"
12-
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/AFCMS/fluorite/refs/heads/master/README.md"
12+
LABEL io.artifacthub.package.readme-url="https://raw.githubusercontent.com/AFCMS/fluorite/refs/heads/master/.github/README_ARTIFACTHUB.md"
1313
LABEL io.artifacthub.package.category="skip-prediction"
1414
LABEL io.artifacthub.package.keywords="video-player,offline,pwa"
1515
LABEL io.artifacthub.package.license="GPL-3.0-only"

README.md

Lines changed: 69 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,81 @@
1+
<img align="right" width="100" height="100" src="public/fluorite.svg">
2+
13
# Fluorite
24

3-
A elegant PWA video player.
5+
An elegant, offline‑first PWA video player for your local media. Try the [official version](https://fluorite.afcms.dev)!
46

57
![Vercel](https://img.shields.io/badge/vercel-%23000000.svg?style=for-the-badge&logo=vercel&logoColor=white)
68
![Vite](https://img.shields.io/badge/vite-%23646CFF.svg?style=for-the-badge&logo=vite&logoColor=white)
79
![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB)
810
![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)
911

10-
```shell
12+
## Features
13+
14+
- Drag & Drop or file dialog to open a video
15+
- Clean controls with auto‑hide and keyboard shortcuts
16+
- Video info overlay (codec, bitrate, dimensions, etc.)
17+
- PWA: installable, offline‑ready with a service worker
18+
- Internationalization (currently English and French)
19+
- Privacy‑friendly: no server, no tracking; plays your local files in the browser
20+
21+
## Quick start (local)
22+
23+
This project requires pnpm.
24+
25+
```bash
26+
corepack enable pnpm
1127
pnpm install
28+
29+
# Development (http://localhost:5173)
1230
pnpm run dev
13-
# or
31+
32+
# Production build + preview (http://localhost:4173)
1433
pnpm run build && pnpm run preview
1534
```
35+
36+
## Run with Docker
37+
38+
Prebuilt images are published to GitHub Container Registry.
39+
40+
Pull and run:
41+
42+
```bash
43+
docker pull ghcr.io/afcms/fluorite:master
44+
docker run --rm -p 4173:80 ghcr.io/afcms/fluorite:master
45+
# Open http://localhost:4173
46+
```
47+
48+
Build locally and run:
49+
50+
```bash
51+
docker build -t fluorite:latest .
52+
docker run --rm -p 4173:80 fluorite:latest
53+
# Open http://localhost:4173
54+
```
55+
56+
Docker details:
57+
58+
- Preconfigured Caddy server serving static files from /srv
59+
- Hardened HTTP security headers
60+
- No volumes or env vars required
61+
- No TLS support (reverse proxy required for production use)
62+
63+
## Internationalization
64+
65+
Fluorite uses Lingui for i18n.
66+
67+
```bash
68+
pnpm run extract # extract source strings
69+
# edit translations in src/locales/*/messages.po
70+
pnpm run build
71+
```
72+
73+
## Development
74+
75+
Scripts of interest:
76+
77+
- `pnpm run dev` — start dev server at http://localhost:5173
78+
- `pnpm run build` — typecheck and build the app
79+
- `pnpm run preview` — preview the production build at http://localhost:4173
80+
- `pnpm run lint` — run ESLint
81+
- `pnpm run test` — run unit tests (Vitest)

0 commit comments

Comments
 (0)