peekin
A lightweight, read-only file browser for your web browser. Browse a folder and preview images (swipeable gallery), video, audio, PDF, rendered Markdown, and source code with syntax highlighting. Works on desktop and phone. Fully offline.
Run
uvx peekin # share the current folder on http://127.0.0.1:8000
uvx peekin ~/Pictures --open # share a folder and open the browser
python -m peekin # after: pip install peekin
Share on your network
uvx peekin --host 0.0.0.0
peekin needs a password whenever it listens on something other than
localhost. If you don't set one, it generates one and prints it at startup.
Set your own with PEEKIN_PASSWORD=... or --password-file FILE.
--no-password turns the password off (not recommended on shared networks).
Options
| Option | Default | Meaning |
|---|---|---|
FOLDER |
. |
Folder to share |
--host |
127.0.0.1 |
Address to listen on (0.0.0.0 for your network) |
--port |
8000 |
Port |
--password-file |
Read the password from this file's first line | |
--no-password |
off | Never ask for a password |
--thumbs |
off | Image thumbnails in grid view (install with uvx --from 'peekin[thumbs]' peekin --thumbs) |
--show-hidden |
off | Show dotfiles |
--open |
off | Open the browser |
Security
- Read-only: nothing in the shared folder can be changed through peekin.
- Paths cannot escape the shared folder, including through symlinks.
- Five wrong passwords lock that IP address out for 60 seconds, doubling each time.
- HTML and SVG files are downloaded, never rendered, so files you share can't run scripts in peekin.
- Other websites you visit can't read your files through peekin: cross-site requests are blocked, and
without a password peekin only answers to IP addresses,
localhost, and*.localnames. - No HTTPS: use it on networks you trust, not on the public internet.
Develop
uv run pytest
uv run peekin .
License
MIT. Bundles Lucide icons (ISC) and the Schibsted Grotesk
font (SIL OFL 1.1); their licenses are in LICENSES/.
Release files for peekin 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| peekin-1.0.1.tar.gz | 99.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| peekin-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 177.1 kB
Release files / peekin-1.0.1.tar.gz
| Download URL | peekin-1.0.1.tar.gz |
|---|---|
| Size | 99.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64b298381e621cab8f631eac7640a960acd7a648d9e94adea2ccdb1b500eacd1
|
|
BLAKE2b-256 checksum How to use checksums |
d02284888afc9869345201d7e61dd7545f13939b23cdf1351d0efb0a5ca5cbc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / peekin-1.0.1-py3-none-any.whl
| Download URL | peekin-1.0.1-py3-none-any.whl |
|---|---|
| Size | 77.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e72d56b7be33fbd3317220f36594614cd5e706ba563b45c373aa82b1904ea07
|
|
BLAKE2b-256 checksum How to use checksums |
bc79d28f27a84654a19acaa7c20ed303d9e444588572ce041c10ff04da19194d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|