2024-06-14 00:29:01 -05:00
# Poke, but built on Astro
2024-06-27 16:02:25 -05:00
![Landing Preview ](https://md.sudovanilla.org/images/poke-astro-poke-32.png )
2024-06-21 21:30:19 -05:00
2024-06-21 01:41:45 -05:00
This repo is only a proof of concept to see how Poke will run in Astro. A lot of code will be used from [MinPluto ](https://ark.sudovanilla.org/MinPluto/MinPluto/ ), as it's a YouTube frontend built on Astro and inspired by Poke.
## Todo List
- [ ] i18n
2024-06-21 04:19:58 -05:00
- [x] English
2024-06-22 16:03:44 -05:00
- [x] Japanese
- [ ] French 🚬
2024-06-21 01:41:45 -05:00
- [ ] Spanish
- [ ] Russian
2024-06-27 16:01:23 -05:00
- [x] Inline Player
2024-06-23 21:35:54 -05:00
- [x] Mobile Support
2024-06-22 16:03:44 -05:00
- [ ] Dedicated Redirect Page
2024-06-27 16:01:23 -05:00
- [ ] Should pull from instances list
2024-06-22 15:52:45 -05:00
- [ ] Search
2024-06-23 21:35:54 -05:00
- [ ] Revamp Experience
- [ ] Filters
- [x] Auto Complete
2024-06-27 16:01:23 -05:00
- [ ] Video Player
- [x] Dash Format (1080p/4K/8K)
- [ ] Mobile Gestures
- [ ] Embed Page
- [ ] Controls
- [x] Play/Pause
- [x] Volume
- [x] Fullscreen
- [x] CC
- [ ] Quality Changer
- [ ] Theater Mode
- [ ] Cast
2024-06-23 03:29:06 -05:00
- [ ] Video Page
- [ ] Toggle:
- [ ] Audio Only
- [ ] Autoplay
2024-06-27 16:01:23 -05:00
- [ ] YouTube Music
- [ ] Music Player
- [ ] Artist Page
- [ ] Album Page
- [ ] Search Experience
- [ ] Custom Embed Page
2024-06-21 05:35:36 -05:00
- [ ] User Settings
2024-06-22 16:03:44 -05:00
- [ ] Invidious Server Selection
- [ ] SafeTwitch Backend Server Selection
- [ ] Platform Selection (YouTube/Twitch)
2024-06-21 05:35:36 -05:00
- [ ] Video Player
2024-06-22 16:03:44 -05:00
- [ ] Toggle:
- [ ] Proxy
- [ ] Theme
- [ ] Preferred Language (For audio track on YouTube)
- [ ] Custom CSS/JS
2024-06-23 03:29:06 -05:00
- [ ] Import/Export YouTube Subscription (Use local session, no database crap)
2024-06-22 16:03:44 -05:00
- [ ] Import/Export Poke User Settings
2024-06-22 15:52:45 -05:00
- [x] Add Twitch Support, use [SafeTwitch Backend ](https://codeberg.org/SafeTwitch/safetwitch-backend )
2024-06-21 01:41:45 -05:00
2024-06-27 19:41:50 -05:00
## Known Issuse
- End-user must reload page again after switch language (May be caused by ViewTransition API)
- i18n doesn't activiate after 1 or 2 seconds when launching Poke (Does it matter? Not that much, but I'll like to fix that)
- Searching from a video doesn't work. Error: `SyntaxError: Unexpected end of JSON input` (URL isn't set correctly)
2024-06-28 16:25:30 -05:00
## Hosting - Docker Compose (Recommended)
### Requirements
- Docker Engine
### Running
Use the Docker Compose file that is provided with Poke. Copying and pasting it into other tools like Dockge and Dokemon will work too.
Run:
```bash
docker compose up -d
```
> Using `sudo` may be required depending on your setup
2024-06-21 01:41:45 -05:00
## Build
> Instructions assume you're using Bun as the package manager, which is preferred for Astro projects.
### Requirements
- git
2024-06-22 16:03:44 -05:00
- [Bun ](https://bun.sh ) (NPM/NodeJS not required 😄)
2024-06-21 01:41:45 -05:00
### Build and Run
Clone the repository:
```bash
git clone https://codeberg.org/korbs/poke-but-in-astro.git
cd ./poke-but-in-astro/
```
Install packages:
```bash
bun install
```
Run:
```bash
bun start # or use "bunx --bun astro dev"
```
It's that easy.
## License
```
Copyright (C) 2024 SudoVanilla
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
```