Files
piik/README.md
T
AAA 71a42051c4 merge(review): integrate voice ownership and scoped Server forwarding
Take the reviewed voice owner and interface lanes, preserving room-local media lifetimes. Server forwarding is offered per kind by its operator, remains off by default, and fills participant routing gaps without sacrificing reachable receivers. Validate the registered service identity even in public rooms and advance private Domain protocol to 48 for the typed offer.

Correct quick-sharing reuse, pending picker ownership and local bootstrap retirement. Keep record-extension and recovery proposals separate from production mechanisms. Full Rust, Native, Browser-WASM and protocol checks plus 2350 Web tests pass; follow-up focused controls pass 672 tests. Actual Domain-48 loopback controls verify master-off, voice-only hosted and files-only Browser-hosted traffic with unchanged room authority.
2026-11-25 02:21:48 -05:00

137 lines
7.7 KiB
Markdown

<p align="center"><img src="./docs/assets/brand-mark.svg" width="64" height="64" alt="Piik mascot"></p>
<h1 align="center">Piik</h1>
<p align="center"><strong>Share the good stuff.</strong><br>Private screen sharing for you and up to 20 friends.</p>
<p align="center">
<a href="https://piik.tv">Website</a> ·
<a href="https://github.com/TNTcraftHIM/Piik/releases">Download</a> ·
<a href="https://atomgit.com/TNTcraftHIM/Piik/releases">AtomGit mirror</a> ·
<a href="https://demo.piik.tv">Use online</a> ·
<a href="https://piik.tv/docs/?lang=en">Documentation</a>
</p>
<p align="center">
<a href="./LICENSE"><img src="https://img.shields.io/badge/license-MIT-36564f?style=flat-square" alt="License: MIT"></a>
<img src="https://img.shields.io/badge/viewers-up_to_20-36564f?style=flat-square" alt="Up to 20 viewers">
<img src="https://img.shields.io/badge/media-P2P_first-36564f?style=flat-square" alt="P2P-first media">
</p>
<p align="center">English · <a href="./README.zh-CN.md">简体中文</a></p>
Piik is a free, open-source screen sharing tool for private live streams with
friends: games, movie nights, drawings and photos. Choose what to share and send
an invitation. Your friends watch in their browsers. You can also self-host Piik
on your own server.
<details open>
<summary>A little room · Show / hide animation</summary>
<p align="center"><img src="./site/assets/living-room.svg" width="720" height="472" alt="A host with a gold crown switches between a gamepad, paintbrush, camera and remote as friends watch games, drawings, photos and a film."></p>
</details>
[Features](#features) · [Get started](#get-started) · [Self-hosting](#self-hosting) · [Contributing](#contributing)
## Features
- **Watch without installing.** Friends join by invitation in a desktop or mobile browser.
- **Share from Piik App or an existing Piik site.** Choose a screen, window, browser tab or camera; available sources and audio depend on the platform.
- **Direct connections first.** Media travels between participants where possible (P2P). Piik Server can provide SFU fallback.
- **Rooms you control.** Invitations, room codes and optional room passwords, for one host and up to 20 viewers.
- **Talk and chat together.** Join room voice, send messages and reactions, or enable on-screen chat.
- **Hand control to friends.** Share an App window or screen and approve remote control. Allow friends to play together with shared keyboard/mouse or supported gamepads; take control back at any time. [Remote control and playing together](https://piik.tv/docs/remote-control.html).
- **Flexible viewing.** Light and dark themes, playback controls, picture-in-picture and a connection topology view.
- **One program to host a site.** Web UI, room management and optional media forwarding are packaged together.
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./docs/assets/room-en-dark.png">
<img src="./docs/assets/room-en-light.png" width="860" alt="Piik room: a shared game, playback controls, chat and friends on a sofa. The host wears a small gold crown.">
</picture><br>
<sub>Interface preview · Sample room with a generated game scene</sub>
</p>
## Get started
These steps use the published **2.x** release. If you received a 3.0 test package or invitation, see [Piik 3.0 test documentation](./docs/guide/README.md).
**To watch:** open the invitation your friend sends you. Select **Play** if the
picture does not start automatically.
**To share:** download **Piik App** to get started. To share without installing,
you can also create a room in the online version.
| Start here | What you need to do |
| --- | --- |
| [Use Piik online](https://demo.piik.tv) | Share from a desktop browser, or choose Camera on a phone with browser camera support. |
| [Download Piik App](https://piik.tv/#download) | Extract the desktop package or install the mobile app, open Piik, choose **Public invite**, then **Open Piik**. |
<p align="center"><img src="./docs/assets/quickstart.svg" width="640" alt="Choose a screen, send an invitation, watch together."></p>
1. Select **Start sharing**, then choose the picture and audio to share.
2. Under **Admission**, select **Copy** and send it to your friends. Keep the sharing tab open.
Open **Interact → Voice** to talk together, with or without picture sharing.
The Host opens voice; everyone joins to listen and chooses when to turn on their microphone.
Piik uses your browser's language when supported and falls back to English.
Use **中** or **EN** in the header. Open the dropdown beside them for more
languages or **Visual only**.
The App can create a local room or temporary public invitation, and stays
available to supply capture for an approved site. Keep it running while sharing.
[Your first Piik room](https://piik.tv/docs/getting-started.html) · [Troubleshooting](https://piik.tv/docs/troubleshooting.html)
Choose a download beginning with **`piik-app`**. The guide covers installation,
source selection and invitations.
Browser capture requires HTTPS or `localhost`.
The App's temporary public link and the online version use P2P and need a usable
UDP connection between participants. For campus
networks, failed media connections or virtual LANs, see [Advanced network checks](https://piik.tv/docs/network.html).
## Self-hosting
This branch develops the internal **3.0 Rust Server**. Use [its startup and
deployment instructions](./prototype/channel-server/README.md#run) with a matching
Server and Web package. Published 2.x users should follow the
[2.x self-hosting guide](./docs/operations/self-hosting.md).
<p><a href="./prototype/channel-server/README.md#public-origin-and-udp"><img src="https://img.shields.io/badge/Deploy_with-Docker_Compose-2764c4?style=for-the-badge&amp;logo=docker&amp;logoColor=white" alt="Deploy the 3.0 Rust Server with Docker Compose"></a></p>
For a local 3.0 trial, keep the bundled `web/` directory beside the executable,
set the private owner seed for a new site, then run `./piik-server`
(`./piik-server.exe` on Windows). Open the address printed at startup; the
standalone default is `http://127.0.0.1:8791`. The
[packaged Server steps](./prototype/channel-server/README.md#packaged-server) show both shells.
The [3.0 deployment steps](./prototype/channel-server/README.md#public-origin-and-udp)
cover HTTPS, fixed media UDP and public address mapping. Rust reads the process
environment; it does not load `.env` automatically. Site forwarding is optional
and off by default. [Site forwarding settings](./prototype/channel-server/README.md#site-forwarding)
[**3.0 Server setup →**](./prototype/channel-server/README.md#run) · [Environment template](./deploy/container/.env.example) · [Run from source](./docs/README.md#run-from-source)
## Contributing
Bug reports, translations, documentation improvements and pull requests are welcome.
See [ways to contribute](./CONTRIBUTING.md#ways-to-help) or
[help translate Piik](./docs/guide/translating.md). Use the
[repository layout](./docs/standards/engineering.md#repository-layout) to find your way around.
## License
Piik-owned code is [MIT licensed](./LICENSE). Dependencies retain their own
[licenses and notices](./licenses/README.md).
## Project activity
<p align="center">
<a href="https://trendshift.io/repositories/236065"><img src="https://trendshift.io/api/badge/trendshift/repositories/236065/daily?language=TypeScript" width="250" alt="Piik on Trendshift"></a>
</p>
<p align="center">
<a href="https://www.star-history.com/#TNTcraftHIM/Piik&amp;Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=TNTcraftHIM/Piik&amp;type=Date&amp;theme=dark">
<img src="https://api.star-history.com/svg?repos=TNTcraftHIM/Piik&amp;type=Date" width="760" alt="Piik GitHub star history">
</picture>
</a>
</p>