mirror of
https://gitlab.com/vyla-entertainment/documentation.git
synced 2026-11-20 17:45:44 -05:00
simplified
This commit is contained in:
@@ -1,32 +0,0 @@
|
|||||||
# Vyla Ecosystem Architecture
|
|
||||||
|
|
||||||
High-level architecture, module boundaries, communication protocols, and design principles of the Vyla Ecosystem.
|
|
||||||
|
|
||||||
**Project Owner**: alwaysmesmerizingyou (Discord)
|
|
||||||
|
|
||||||
## System Topology
|
|
||||||
|
|
||||||
- **Client Interfaces**: Vyla Home (Tauri v2), Vyla Go (Mobile), Vyla TV (ExoPlayer), Web Players. Render UI, manage local state, initiate playback via SSE, and handle failover queues.
|
|
||||||
- **Stream API Gateway**: Node.js Cluster, SSE, HTTP Proxy. Multi-core IPC caching (1,500 entries, 5-min TTL), HLS/AES key rewriting, and 120-byte fake image mask stripping.
|
|
||||||
- **Vyla SDK Resolver**: `@vyla-entertainment/sdk` (ESM). 60+ provider scrapers, randomized jitter scheduling, and two-phase stream validation.
|
|
||||||
- **Upstream Hosts**: Remote video segment delivery, HLS manifest endpoints, and subtitle hosts.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Projects Overview
|
|
||||||
|
|
||||||
- **Documentation**: Developer documentation platform hosted at [vyla.cc](https://vyla.cc).
|
|
||||||
- **Stream API**: Self-hosted streaming microservice gateway with caching and reverse proxying.
|
|
||||||
- **SDK**: Core multi-provider scraping library (`@vyla-entertainment/sdk`).
|
|
||||||
- **Home**: Native desktop application for Windows, macOS, and Linux (Tauri v2 + Rust + Node.js sidecar).
|
|
||||||
- **TV**: Native 10-foot Leanback streaming application for Android TV and Fire TV (Kotlin + Jetpack Compose + ExoPlayer).
|
|
||||||
- **Go**: Native mobile client for Android devices (Tauri v2 Mobile).
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## Core Invariants
|
|
||||||
|
|
||||||
1. **Decoupled Resolution**: Client interfaces never scrape providers directly; they interact through `@vyla-entertainment/sdk` or the Stream API gateway.
|
|
||||||
2. **Progressive Playback**: Streaming links are emitted incrementally over Server-Sent Events (SSE). Players start playback on the first candidate (3-8s) and queue subsequent sources as fallbacks.
|
|
||||||
3. **Transparent Proxying**: All upstream HLS playlists are rewritten to route segments and AES encryption keys through the local gateway, bypassing browser CORS restrictions and stripping 120-byte image obfuscation masks.
|
|
||||||
4. **Resilience by Default**: Provider queries are scheduled with randomized jitter and timeout budgets to prevent burst rate limits.
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# Contributing to the Vyla Ecosystem
|
|
||||||
|
|
||||||
Thank you for your interest in contributing to Vyla! We welcome contributions across all ecosystem repositories: frontend applications, developer tooling, documentation, and scraper modules.
|
|
||||||
|
|
||||||
## How to Contribute
|
|
||||||
|
|
||||||
### 1. Contributing Source Scrapers (`SDK`)
|
|
||||||
The most common contribution is adding or updating a provider scraper in `@vyla-entertainment/sdk`:
|
|
||||||
- Follow the [Contributing a Source Guide](https://vyla.cc/sdk/vyla-sdk/contributing).
|
|
||||||
- Author modules inside `src/sources/<source_name>.js`.
|
|
||||||
- Ensure your module exports `async function getStream(args)` returning a valid `StreamResult`.
|
|
||||||
- Register the new source in `src/config.js`.
|
|
||||||
- Test against known movie (TMDB 155) and TV (TMDB 1396) identifiers.
|
|
||||||
|
|
||||||
### 2. Contributing to Applications
|
|
||||||
- **Vyla Home**: Native desktop client built on Tauri v2. Review [Home Documentation](https://vyla.cc/products/home).
|
|
||||||
- **Vyla Go**: Native Android mobile client built on Tauri v2 Mobile. Review [Go Documentation](https://vyla.cc/products/go).
|
|
||||||
- **Vyla TV**: Android TV Leanback client built with Jetpack Compose & ExoPlayer. Review [TV Documentation](https://vyla.cc/products/tv).
|
|
||||||
|
|
||||||
### 3. Contributing to Documentation
|
|
||||||
- Edit or add markdown files in the `Documentation` repository.
|
|
||||||
- Ensure semantic Markdown formatting, accurate code snippets, and WCAG accessibility standards.
|
|
||||||
- Check that all internal links resolve cleanly.
|
|
||||||
|
|
||||||
## Code Standards & Guidelines
|
|
||||||
|
|
||||||
- **ES Modules**: Write modern, clean ES Module syntax (`import`/`export`).
|
|
||||||
- **No Secrets**: Never commit private API keys, tokens, or personal server endpoints.
|
|
||||||
- **Error Handling**: Throw informative, descriptive errors rather than silently swallowing exceptions.
|
|
||||||
- **Verification**: Ensure all stream candidates pass two-phase verification (`verifyStream` and `verifyPlayable`).
|
|
||||||
23
SECURITY.md
23
SECURITY.md
@@ -1,23 +0,0 @@
|
|||||||
# Security Policy
|
|
||||||
|
|
||||||
## Supported Versions
|
|
||||||
|
|
||||||
Security updates and bug fixes are applied to the latest releases of the Vyla ecosystem projects:
|
|
||||||
|
|
||||||
| Project | Supported Versions |
|
|
||||||
| :--- | :--- |
|
|
||||||
| **Vyla Home** | Latest 1.1.x release |
|
|
||||||
| **Vyla Go** | Latest 1.0.x release |
|
|
||||||
| **Vyla TV** | Latest 1.0.x release |
|
|
||||||
| **Stream API** | Latest 2.0.x release |
|
|
||||||
| **Vyla SDK** | Latest 1.28.x release |
|
|
||||||
|
|
||||||
## Reporting a Vulnerability
|
|
||||||
|
|
||||||
We take the security of our users and infrastructure seriously. If you discover a vulnerability, memory safety issue, or data leak within any Vyla project:
|
|
||||||
|
|
||||||
1. **Do not create a public issue** on GitLab or GitHub.
|
|
||||||
2. Contact the core maintainers privately via Discord or by emailing our security team.
|
|
||||||
3. Provide detailed steps to reproduce the issue, including environment details and proof-of-concept scripts where applicable.
|
|
||||||
|
|
||||||
We will review, patch, and publish a coordinated advisory and release promptly.
|
|
||||||
12
_redirects
12
_redirects
@@ -1,9 +1,5 @@
|
|||||||
/robots.txt /robots.txt 200
|
# SPA routing - redirect all non-file requests to index.html
|
||||||
/ai-catalog.json /ai-catalog.json 200
|
|
||||||
/sitemap.xml /sitemap.xml 200
|
|
||||||
/llms.txt /llms.txt 200
|
|
||||||
/llms-full.txt /llms-full.txt 200
|
|
||||||
/.well-known/ard.json /.well-known/ard.json 200
|
|
||||||
/manifest.webmanifest /manifest.webmanifest 200
|
|
||||||
/site.webmanifest /manifest.webmanifest 301
|
|
||||||
/* /index.html 200
|
/* /index.html 200
|
||||||
|
|
||||||
|
# Redirect www to non-www
|
||||||
|
https://www.vyla.cc/* https://vyla.cc/:splat 301
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
import { bundleCss } from './scripts/bundle-css.mjs';
|
|
||||||
|
|
||||||
console.log('==> Starting Vyla Documentation Build...');
|
|
||||||
bundleCss();
|
|
||||||
console.log('==> Build completed successfully.');
|
|
||||||
20
down.html
20
down.html
@@ -83,18 +83,7 @@
|
|||||||
const revealButton = document.getElementById('cf-footer-ip-reveal');
|
const revealButton = document.getElementById('cf-footer-ip-reveal');
|
||||||
const container = document.getElementById('cf-footer-item-ip');
|
const container = document.getElementById('cf-footer-item-ip');
|
||||||
|
|
||||||
try {
|
ipElement.textContent = 'sorry for my parents';
|
||||||
const response = await fetch('https://api.ipify.org?format=json', {
|
|
||||||
cache: 'no-store'
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!response.ok) throw new Error('IP lookup failed');
|
|
||||||
|
|
||||||
const data = await response.json();
|
|
||||||
|
|
||||||
if (!data.ip) throw new Error('IP address unavailable');
|
|
||||||
|
|
||||||
ipElement.textContent = data.ip;
|
|
||||||
ipElement.classList.add('hidden');
|
ipElement.classList.add('hidden');
|
||||||
revealButton.hidden = false;
|
revealButton.hidden = false;
|
||||||
container.classList.remove('hidden');
|
container.classList.remove('hidden');
|
||||||
@@ -103,10 +92,6 @@
|
|||||||
ipElement.classList.remove('hidden');
|
ipElement.classList.remove('hidden');
|
||||||
revealButton.hidden = true;
|
revealButton.hidden = true;
|
||||||
};
|
};
|
||||||
} catch (error) {
|
|
||||||
container.classList.add('hidden');
|
|
||||||
console.error('Unable to retrieve visitor IP:', error);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendFeedback(helpful) {
|
function sendFeedback(helpful) {
|
||||||
@@ -179,6 +164,7 @@
|
|||||||
What happened?
|
What happened?
|
||||||
</h2>
|
</h2>
|
||||||
<p>This website is unavailable for legal reasons.</p>
|
<p>This website is unavailable for legal reasons.</p>
|
||||||
|
<p>i really want to end my life, if anyone is seeing this this is a cry for help</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@@ -219,7 +205,7 @@
|
|||||||
Click to reveal
|
Click to reveal
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<span class="hidden" id="cf-footer-ip"></span>
|
<span class="hidden" id="cf-footer-ip">sorry for my parents</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<span class="cf-footer-separator sm:hidden">•</span>
|
<span class="cf-footer-separator sm:hidden">•</span>
|
||||||
|
|||||||
@@ -799,7 +799,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-bottom">
|
<div class="footer-bottom" onclick="window.location.href='/down.html'">
|
||||||
<div class="footer-bottom-info">
|
<div class="footer-bottom-info">
|
||||||
<p id="footer-note">© 2026 Vyla Entertainment. Open-source under MIT & GPL-3.0
|
<p id="footer-note">© 2026 Vyla Entertainment. Open-source under MIT & GPL-3.0
|
||||||
licenses.</p>
|
licenses.</p>
|
||||||
|
|||||||
2021
package-lock.json
generated
2021
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
32
package.json
32
package.json
@@ -1,32 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "vyla-docs",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "",
|
|
||||||
"main": "index.js",
|
|
||||||
"type": "module",
|
|
||||||
"scripts": {
|
|
||||||
"build": "node build.mjs",
|
|
||||||
"build:css": "node scripts/bundle-css.mjs",
|
|
||||||
"watch:css": "node scripts/bundle-css.mjs --watch",
|
|
||||||
"serve": "python -m http.server 8080"
|
|
||||||
},
|
|
||||||
"keywords": [],
|
|
||||||
"author": "",
|
|
||||||
"license": "ISC",
|
|
||||||
"dependencies": {
|
|
||||||
"gray-matter": "^4.0.3",
|
|
||||||
"hast-util-to-html": "^9.0.5",
|
|
||||||
"hastscript": "^9.0.1",
|
|
||||||
"highlight.js": "^11.12.0",
|
|
||||||
"mdast-util-to-string": "^4.0.0",
|
|
||||||
"rehype-highlight": "^7.0.2",
|
|
||||||
"rehype-slug": "^6.0.0",
|
|
||||||
"rehype-stringify": "^10.0.1",
|
|
||||||
"remark-gfm": "^4.0.1",
|
|
||||||
"remark-mdx": "^3.1.1",
|
|
||||||
"remark-parse": "^11.0.0",
|
|
||||||
"remark-rehype": "^11.1.2",
|
|
||||||
"unified": "^11.0.5",
|
|
||||||
"unist-util-visit": "^5.1.0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
User-agent: *
|
User-agent: *
|
||||||
Allow: /
|
Allow: /
|
||||||
|
|
||||||
|
# Disallow private/dev directories if they exist
|
||||||
|
Disallow: /_*
|
||||||
|
|
||||||
# LLM & AI Discovery Endpoints
|
# LLM & AI Discovery Endpoints
|
||||||
Allow: /llms.txt
|
Allow: /llms.txt
|
||||||
Allow: /llms-full.txt
|
Allow: /llms-full.txt
|
||||||
|
|||||||
421
scripts/prerender.mjs
Normal file
421
scripts/prerender.mjs
Normal file
@@ -0,0 +1,421 @@
|
|||||||
|
import fs from 'fs';
|
||||||
|
import path from 'path';
|
||||||
|
import { fileURLToPath } from 'url';
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = path.dirname(__filename);
|
||||||
|
const rootDir = path.join(__dirname, '..');
|
||||||
|
|
||||||
|
// Site tree from main.js
|
||||||
|
const SITE_TREE = [
|
||||||
|
{
|
||||||
|
"id": "vyla",
|
||||||
|
"title": "Ecosystem",
|
||||||
|
"path": "/start-here/introduction",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"title": "Start here",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "Introduction",
|
||||||
|
"file": "/start-here/introduction.md",
|
||||||
|
"path": "/start-here/introduction",
|
||||||
|
"hasMedia": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Architecture",
|
||||||
|
"file": "/start-here/architecture.md",
|
||||||
|
"path": "/start-here/architecture"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Products",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "Vyla Home",
|
||||||
|
"file": "/products/home.md",
|
||||||
|
"path": "/products/home",
|
||||||
|
"hasMedia": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Vyla Go",
|
||||||
|
"file": "/products/go.md",
|
||||||
|
"path": "/products/go",
|
||||||
|
"hasMedia": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Vyla TV",
|
||||||
|
"file": "/products/tv.md",
|
||||||
|
"path": "/products/tv",
|
||||||
|
"hasMedia": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "sdk",
|
||||||
|
"title": "SDK",
|
||||||
|
"path": "/sdk",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"title": "Getting Started",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "SDK Overview",
|
||||||
|
"file": "/sdk/vyla-sdk/index.md",
|
||||||
|
"path": "/sdk",
|
||||||
|
"hasMedia": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "SDK Quickstart",
|
||||||
|
"file": "/sdk/vyla-sdk/quickstart.md",
|
||||||
|
"path": "/sdk/vyla-sdk/quickstart"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Reference",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "API Reference",
|
||||||
|
"file": "/sdk/vyla-sdk/reference.md",
|
||||||
|
"path": "/sdk/vyla-sdk/reference"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Development",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "Contributing Sources",
|
||||||
|
"file": "/sdk/vyla-sdk/contributing.md",
|
||||||
|
"path": "/sdk/vyla-sdk/contributing",
|
||||||
|
"hasMedia": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "stream-api",
|
||||||
|
"title": "Stream API",
|
||||||
|
"path": "/stream-api/overview",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"title": "Overview",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "Stream API Overview",
|
||||||
|
"file": "/stream-api/overview/index.md",
|
||||||
|
"path": "/stream-api/overview"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Reference",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "Paths & Playback",
|
||||||
|
"file": "/stream-api/reference/paths.md",
|
||||||
|
"path": "/stream-api/reference/paths"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Media Data",
|
||||||
|
"file": "/stream-api/reference/media-data.md",
|
||||||
|
"path": "/stream-api/reference/media-data",
|
||||||
|
"hasMedia": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Operations & Health",
|
||||||
|
"file": "/stream-api/reference/operations.md",
|
||||||
|
"path": "/stream-api/reference/operations"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Deployment",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "Self Hosting",
|
||||||
|
"file": "/stream-api/deployment/self-hosting.md",
|
||||||
|
"path": "/stream-api/deployment/self-hosting"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "resources",
|
||||||
|
"title": "Resources",
|
||||||
|
"path": "/misc/project/support-us",
|
||||||
|
"groups": [
|
||||||
|
{
|
||||||
|
"title": "Support Vyla",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "Support Us",
|
||||||
|
"file": "/misc/project/support-us.md",
|
||||||
|
"path": "/misc/project/support-us",
|
||||||
|
"hasMedia": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Help & Questions",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "FAQ",
|
||||||
|
"file": "/resources/faq.md",
|
||||||
|
"path": "/resources/faq"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Project",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"title": "Project Story",
|
||||||
|
"file": "/misc/project/story.md",
|
||||||
|
"path": "/misc/project/story"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Changelog",
|
||||||
|
"file": "/misc/project/changelog.md",
|
||||||
|
"path": "/misc/project/changelog"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Credits",
|
||||||
|
"file": "/misc/project/credit.md",
|
||||||
|
"path": "/misc/project/credit"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "DMCA Policy",
|
||||||
|
"file": "/misc/project/DMCA.md",
|
||||||
|
"path": "/misc/project/dmca"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
function generateStaticHtml(route, mdContent) {
|
||||||
|
const isHome = route.item.path === '/';
|
||||||
|
const pageTitle = isHome
|
||||||
|
? "Vyla Entertainment - Free & Decentralized Media Platform"
|
||||||
|
: `${route.item.title} - Vyla Docs`;
|
||||||
|
|
||||||
|
const pageUrl = `https://vyla.cc${route.item.path}`;
|
||||||
|
|
||||||
|
// Extract description from markdown
|
||||||
|
let desc = "";
|
||||||
|
if (mdContent) {
|
||||||
|
const firstPara = mdContent.match(/^#\s+[^\n]+\n+([^\n#]+)/m);
|
||||||
|
if (firstPara) {
|
||||||
|
desc = firstPara[1].replace(/\[([^\]]+)\]\([^)]+\)/g, "$1").trim().substring(0, 160);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!desc) {
|
||||||
|
desc = isHome
|
||||||
|
? "Vyla Entertainment is a community-built, decentralized media platform and developer ecosystem."
|
||||||
|
: `${route.item.title} guide and developer documentation for the Vyla Ecosystem.`;
|
||||||
|
}
|
||||||
|
|
||||||
|
const jsonLd = JSON.stringify({
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@graph": [
|
||||||
|
{
|
||||||
|
"@type": isHome ? "WebSite" : "TechArticle",
|
||||||
|
"@id": pageUrl + (isHome ? "#website" : "#article"),
|
||||||
|
"url": pageUrl,
|
||||||
|
"name": isHome ? "Vyla Entertainment" : route.item.title,
|
||||||
|
"headline": isHome ? "Vyla Entertainment" : route.item.title,
|
||||||
|
"description": desc,
|
||||||
|
"inLanguage": "en-US",
|
||||||
|
"publisher": {
|
||||||
|
"@id": "https://vyla.cc/#organization"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "BreadcrumbList",
|
||||||
|
"@id": pageUrl + "#breadcrumb",
|
||||||
|
"itemListElement": [
|
||||||
|
{
|
||||||
|
"@type": "ListItem",
|
||||||
|
"position": 1,
|
||||||
|
"name": "Home",
|
||||||
|
"item": "https://vyla.cc/"
|
||||||
|
},
|
||||||
|
!isHome ? {
|
||||||
|
"@type": "ListItem",
|
||||||
|
"position": 2,
|
||||||
|
"name": route.tab.title,
|
||||||
|
"item": "https://vyla.cc" + route.tab.path
|
||||||
|
} : null,
|
||||||
|
!isHome ? {
|
||||||
|
"@type": "ListItem",
|
||||||
|
"position": 3,
|
||||||
|
"name": route.item.title,
|
||||||
|
"item": pageUrl
|
||||||
|
} : null
|
||||||
|
].filter(Boolean)
|
||||||
|
}
|
||||||
|
]
|
||||||
|
});
|
||||||
|
|
||||||
|
return `<!doctype html>
|
||||||
|
<html lang="en" class="dark">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
|
||||||
|
<meta name="theme-color" content="#070709" />
|
||||||
|
<meta name="color-scheme" content="dark" />
|
||||||
|
<meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
|
||||||
|
<link rel="canonical" href="${pageUrl}" />
|
||||||
|
|
||||||
|
<title>${pageTitle}</title>
|
||||||
|
<meta name="description" content="${desc}" />
|
||||||
|
<meta name="keywords" content="Vyla, Vyla Entertainment, self-hosted media, media player, streaming platform, open source streaming, Android TV streaming, stream API, developer SDK, decentralized media" />
|
||||||
|
<meta name="author" content="Vyla Entertainment" />
|
||||||
|
|
||||||
|
<meta property="og:locale" content="en_US" />
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:title" content="${pageTitle}" />
|
||||||
|
<meta property="og:description" content="${desc}" />
|
||||||
|
<meta property="og:url" content="${pageUrl}" />
|
||||||
|
<meta property="og:site_name" content="Vyla Entertainment" />
|
||||||
|
<meta property="og:image" content="https://vyla.cc/src/assets/images/thumbnail.png" />
|
||||||
|
|
||||||
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
<meta name="twitter:title" content="${pageTitle}" />
|
||||||
|
<meta name="twitter:description" content="${desc}" />
|
||||||
|
<meta name="twitter:image" content="https://vyla.cc/src/assets/images/thumbnail.png" />
|
||||||
|
|
||||||
|
<script type="application/ld+json">${jsonLd}</script>
|
||||||
|
|
||||||
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="/src/assets/images/favicon-16x16.png" />
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="/src/assets/images/favicon-32x32.png" />
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="/src/assets/images/apple-touch-icon.png" />
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
||||||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" />
|
||||||
|
<link rel="stylesheet" href="/src/css/bundle.min.css" />
|
||||||
|
<link rel="manifest" href="/manifest.webmanifest" />
|
||||||
|
<link rel="ard" href="/.well-known/ard.json" />
|
||||||
|
</head>
|
||||||
|
<body class="${isHome ? 'is-home' : ''}">
|
||||||
|
<script>
|
||||||
|
// Initial route for SPA
|
||||||
|
window.__INITIAL_ROUTE__ = ${JSON.stringify(route)};
|
||||||
|
</script>
|
||||||
|
<div id="header-container">
|
||||||
|
<header id="navbar">
|
||||||
|
<div class="nav-top">
|
||||||
|
<a class="brand" href="/" aria-label="Vyla Homepage"><img src="/src/assets/images/logo.png"
|
||||||
|
alt="Vyla Logo" id="brand-logo" width="28" height="28" decoding="async" /></a>
|
||||||
|
<button id="search-trigger" type="button" onclick="openSearch()" aria-label="Search"></button>
|
||||||
|
<div class="links">
|
||||||
|
<button id="settings-trigger" type="button" onclick="openSettings()"
|
||||||
|
aria-label="Personalize preferences"></button>
|
||||||
|
<button id="theme-toggle" type="button" onclick="toggleThemeMenu(event)"
|
||||||
|
aria-label="Toggle theme"></button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<nav class="tabs" id="nav-tabs" aria-label="Main Navigation"></nav>
|
||||||
|
</header>
|
||||||
|
</div>
|
||||||
|
<div id="layout">
|
||||||
|
<nav id="sidebar" aria-label="Documentation Navigation"></nav>
|
||||||
|
<div id="content-wrapper">
|
||||||
|
<div id="content-col">
|
||||||
|
<div id="main-wrap">
|
||||||
|
<main class="prose" id="main-content">
|
||||||
|
<!-- Content will be loaded by client-side JS -->
|
||||||
|
<div class="skeleton-wrap" aria-hidden="true">
|
||||||
|
<div class="skeleton-line skeleton-eyebrow"></div>
|
||||||
|
<div class="skeleton-line skeleton-title"></div>
|
||||||
|
<div class="skeleton-line skeleton-desc"></div>
|
||||||
|
<div class="skeleton-line skeleton-text w-90"></div>
|
||||||
|
<div class="skeleton-line skeleton-text w-100"></div>
|
||||||
|
<div class="skeleton-line skeleton-text w-75"></div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script src="/src/js/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function resolveRoute(pathname) {
|
||||||
|
const path = pathname || '/';
|
||||||
|
if (!path.startsWith('/')) return '/' + path;
|
||||||
|
const cleanPath = path.replace(/\/+$/, '') || '/';
|
||||||
|
|
||||||
|
if (cleanPath === '/') {
|
||||||
|
return { tab: SITE_TREE[0], group: { title: 'Vyla' }, item: { title: 'Home', path: '/' } };
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const tab of SITE_TREE) {
|
||||||
|
for (const grp of tab.groups) {
|
||||||
|
for (const item of grp.items) {
|
||||||
|
const itemPath = item.path.replace(/\/+$/, '') || '/';
|
||||||
|
if (itemPath.toLowerCase() === cleanPath.toLowerCase()) {
|
||||||
|
return { tab, group: grp, item };
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
async function buildStaticPages() {
|
||||||
|
console.log('==> Building static pages for SEO...');
|
||||||
|
|
||||||
|
const pages = [];
|
||||||
|
|
||||||
|
// Add home page
|
||||||
|
pages.push({
|
||||||
|
route: { tab: SITE_TREE[0], group: { title: 'Vyla' }, item: { title: 'Home', path: '/' } },
|
||||||
|
outputPath: path.join(rootDir, 'index.html')
|
||||||
|
});
|
||||||
|
|
||||||
|
// Add all pages from SITE_TREE
|
||||||
|
for (const tab of SITE_TREE) {
|
||||||
|
for (const grp of tab.groups) {
|
||||||
|
for (const item of grp.items) {
|
||||||
|
const route = { tab, group: grp, item };
|
||||||
|
const cleanPath = item.path.replace(/^\//, '').replace(/\/$/, '') || 'index';
|
||||||
|
const outputPath = path.join(rootDir, cleanPath + '.html');
|
||||||
|
|
||||||
|
// Create directory if needed
|
||||||
|
const dir = path.dirname(outputPath);
|
||||||
|
if (!fs.existsSync(dir)) {
|
||||||
|
fs.mkdirSync(dir, { recursive: true });
|
||||||
|
}
|
||||||
|
|
||||||
|
pages.push({ route, outputPath });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Generate HTML for each page
|
||||||
|
for (const { route, outputPath } of pages) {
|
||||||
|
try {
|
||||||
|
const html = generateStaticHtml(route, null);
|
||||||
|
fs.writeFileSync(outputPath, html, 'utf-8');
|
||||||
|
console.log(` Generated: ${outputPath}`);
|
||||||
|
} catch (err) {
|
||||||
|
console.error(` Error generating ${outputPath}:`, err.message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(`==> Generated ${pages.length} static pages`);
|
||||||
|
}
|
||||||
|
|
||||||
|
buildStaticPages().catch(console.error);
|
||||||
121
sitemap.xml
121
sitemap.xml
@@ -2,128 +2,107 @@
|
|||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/</loc>
|
<loc>https://vyla.cc/</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>weekly</changefreq>
|
<changefreq>weekly</changefreq>
|
||||||
<priority>1.0</priority>
|
<priority>1.0</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/start-here/introduction</loc>
|
<loc>https://vyla.cc/start-here/introduction</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<priority>0.9</priority>
|
<priority>0.9</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/start-here/architecture</loc>
|
<loc>https://vyla.cc/start-here/architecture</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<priority>0.8</priority>
|
<priority>0.8</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/products/home</loc>
|
<loc>https://vyla.cc/products/home</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>weekly</changefreq>
|
<changefreq>weekly</changefreq>
|
||||||
<priority>0.9</priority>
|
<priority>0.9</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/products/go</loc>
|
<loc>https://vyla.cc/products/go</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>weekly</changefreq>
|
<changefreq>weekly</changefreq>
|
||||||
<priority>0.9</priority>
|
<priority>0.9</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/products/tv</loc>
|
<loc>https://vyla.cc/products/tv</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>weekly</changefreq>
|
<changefreq>weekly</changefreq>
|
||||||
<priority>0.9</priority>
|
<priority>0.9</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/sdk</loc>
|
<loc>https://vyla.cc/sdk</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>weekly</changefreq>
|
|
||||||
<priority>0.8</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>https://vyla.cc/sdk/vyla-sdk/quickstart</loc>
|
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<priority>0.7</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>https://vyla.cc/sdk/vyla-sdk/reference</loc>
|
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
|
||||||
<priority>0.7</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>https://vyla.cc/sdk/vyla-sdk/contributing</loc>
|
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
|
||||||
<priority>0.6</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>https://vyla.cc/stream-api/overview</loc>
|
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>weekly</changefreq>
|
|
||||||
<priority>0.8</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>https://vyla.cc/stream-api/reference/paths</loc>
|
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
|
||||||
<priority>0.7</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>https://vyla.cc/stream-api/reference/media-data</loc>
|
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
|
||||||
<priority>0.7</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>https://vyla.cc/stream-api/reference/operations</loc>
|
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
|
||||||
<priority>0.6</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>https://vyla.cc/stream-api/deployment/self-hosting</loc>
|
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
|
||||||
<priority>0.7</priority>
|
|
||||||
</url>
|
|
||||||
<url>
|
|
||||||
<loc>https://vyla.cc/misc/project/support-us</loc>
|
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>weekly</changefreq>
|
|
||||||
<priority>0.9</priority>
|
<priority>0.9</priority>
|
||||||
</url>
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://vyla.cc/sdk/vyla-sdk/quickstart</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.8</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://vyla.cc/sdk/vyla-sdk/reference</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.8</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://vyla.cc/sdk/vyla-sdk/contributing</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.7</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://vyla.cc/stream-api/overview</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.9</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://vyla.cc/stream-api/reference/paths</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.8</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://vyla.cc/stream-api/reference/media-data</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.8</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://vyla.cc/stream-api/reference/operations</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.8</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://vyla.cc/stream-api/deployment/self-hosting</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.8</priority>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://vyla.cc/misc/project/support-us</loc>
|
||||||
|
<changefreq>monthly</changefreq>
|
||||||
|
<priority>0.7</priority>
|
||||||
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/resources/faq</loc>
|
<loc>https://vyla.cc/resources/faq</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<priority>0.7</priority>
|
<priority>0.7</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/misc/project/story</loc>
|
<loc>https://vyla.cc/misc/project/story</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>monthly</changefreq>
|
<changefreq>monthly</changefreq>
|
||||||
<priority>0.5</priority>
|
<priority>0.6</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/misc/project/changelog</loc>
|
<loc>https://vyla.cc/misc/project/changelog</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
|
||||||
<changefreq>weekly</changefreq>
|
<changefreq>weekly</changefreq>
|
||||||
<priority>0.6</priority>
|
<priority>0.6</priority>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/misc/project/credit</loc>
|
<loc>https://vyla.cc/misc/project/credit</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
<changefreq>monthly</changefreq>
|
||||||
<changefreq>yearly</changefreq>
|
<priority>0.6</priority>
|
||||||
<priority>0.4</priority>
|
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://vyla.cc/misc/project/dmca</loc>
|
<loc>https://vyla.cc/misc/project/dmca</loc>
|
||||||
<lastmod>2026-11-15</lastmod>
|
<changefreq>monthly</changefreq>
|
||||||
<changefreq>yearly</changefreq>
|
<priority>0.5</priority>
|
||||||
<priority>0.4</priority>
|
|
||||||
</url>
|
</url>
|
||||||
</urlset>
|
</urlset>
|
||||||
BIN
src/assets/images/hope/tieit.png
Normal file
BIN
src/assets/images/hope/tieit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 140 KiB |
@@ -2115,6 +2115,8 @@ function initContribSheet() {
|
|||||||
document.body.style.overflow = "hidden";
|
document.body.style.overflow = "hidden";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
openSheet();
|
||||||
|
|
||||||
function closeSheet() {
|
function closeSheet() {
|
||||||
overlay.classList.remove("active");
|
overlay.classList.remove("active");
|
||||||
document.body.style.overflow = "";
|
document.body.style.overflow = "";
|
||||||
@@ -2247,6 +2249,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
buildSearch();
|
buildSearch();
|
||||||
buildSettings();
|
buildSettings();
|
||||||
initEasterEggs();
|
initEasterEggs();
|
||||||
|
initContribSheet();
|
||||||
bindLightboxClicks();
|
bindLightboxClicks();
|
||||||
bindHeadingClicks();
|
bindHeadingClicks();
|
||||||
loadPage();
|
loadPage();
|
||||||
|
|||||||
Reference in New Issue
Block a user