Files
Sunshine/gh-pages-template/index.html
T
renovate[bot] 75cda71dda chore(deps): update dependency bootstrap-icons to v1.13.2 (#5879)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-10-09 09:37:33 -04:00

305 lines
16 KiB
HTML

---
title: Sunshine
subtitle: A LizardByte project
layout: page
full-width: true
after-content:
- donate.html
- support.html
cover-img:
- /Sunshine/assets/img/banners/AdobeStock_305732536_1920x1280.jpg
- /Sunshine/assets/img/banners/AdobeStock_231616343_1920x1280.jpg
- /Sunshine/assets/img/banners/AdobeStock_303330124_1920x1280.jpg
---
<!-- About section-->
<section class="py-5" id="About">
<div class="container px-auto">
<p class="lead text-center mx-auto mt-0 mb-5">
Sunshine is a self-hosted game stream host for Moonlight. Offering low latency, cloud gaming
server capabilities with support for AMD, Intel, and Nvidia GPUs for hardware encoding. Software
encoding is also available. You can connect to Sunshine from any Moonlight client on a variety
of devices. A web UI is provided to allow configuration, and client pairing, from your favorite
web browser. Pair from the local server or any mobile device.
</p>
</div>
</section>
<!-- Features section-->
<section class="py-5" id="Features">
<div class="container px-auto">
<h2 class="text-center fw-bolder my-5">Features</h2>
<div class="row gx-5">
{% for feature in site.data.features %}
<div class="col-md-6 col-lg-4 mb-5">
<div class="card-custom h-100 shadow border-0 rounded-0">
<div class="card-body p-4">
<div class="d-flex align-items-center">
<div class="icon">
{% if feature.icon_fa %}
<i class="fa-fw fa-2x {{ feature.icon_fa }}"></i>
{% elsif feature.icon_img %}
<img {% if feature.icon_img_invert %}class="invert"{% endif %} src="{{ feature.icon_img }}" alt="{{ feature.icon_img_alt | default: feature.title }}"/>
{% endif %}
</div>
<div class="ms-3">
<h5 class="fw-bolder mb-0">{{ feature.title }}</h5>
<p class="mb-0">{{ feature.description }}</p>
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
<!-- Clients section-->
<section class="py-5" id="Clients">
<div class="container px-auto">
<h2 class="text-center fw-bolder my-5">Clients</h2>
<div class="row gx-5" id="clients-container">
<!-- Dynamically populated from sunshine.json -->
</div>
</div>
</section>
<!-- More cards -->
<div class="container py-5 px-auto">
<div class="container col-md-10">
<!-- Docs section -->
<section class="py-4" id="Docs">
<div class="card-custom shadow border-0 rounded-0">
<div class="card-body p-4">
<div class="d-flex align-items-center">
<i class="fa-fw fa-2x fas fa-book"></i>
<div class="ms-3">
<h2 class="fw-bolder mb-0">Documentation</h2>
<p class="mb-0">
Read the documentation to learn how to install, use, and configure Sunshine.
</p>
</div>
</div>
</div>
{% capture github_release_package_icons %}
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.2/icons/windows.svg" alt="Windows"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/macos.svg" alt="macOS"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/freebsd.svg" alt="FreeBSD"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/appimage.svg" alt="AppImage"/> <!-- //NOSONAR(Web:S6851) -->
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/alpinelinux.svg" alt="Alpine Linux"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/archlinux.svg" alt="Arch Linux"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/debian.svg" alt="Debian"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/fedora.svg" alt="Fedora"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/opensuse.svg" alt="openSUSE"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/ubuntu.svg" alt="Ubuntu"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/flatpak.svg" alt="Flatpak"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/homebrew.svg" alt="Homebrew"/>
{% endcapture %}
<div class="card-footer p-3 px-4">
<a class="btn btn-outline-theme me-3 mb-3" href="https://docs.lizardbyte.dev/projects/sunshine" target="_blank">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/readthedocs.svg" alt="ReadTheDocs"/>
Read the Docs
</a>
</div>
</div>
</section>
<!-- Download section -->
<section class="py-4" id="Download">
<div class="card-custom shadow border-0 rounded-0">
<div class="card-body p-4">
<div class="d-flex align-items-center">
<i class="fa-fw fa-2x fas fa-download"></i>
<div class="ms-3">
<h2 class="fw-bolder mb-0">Download</h2>
<p class="mb-0">
Download Sunshine for your platform.
</p>
</div>
</div>
</div>
<div class="card-footer p-3 px-4">
<a class="latest-button btn btn-outline-theme me-3 mb-3 d-none" href="https://github.com/LizardByte/Sunshine/releases/latest" target="_blank">
<span class="d-flex align-items-center justify-content-center gap-1">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/github.svg" alt="GitHub"/>
Latest: <span id="latest-version" class="crowdin-ignore"></span>
</span>
<span class="d-flex align-items-center justify-content-center gap-1 mt-1">
{{ github_release_package_icons }}
</span>
</a>
<a class="beta-button btn btn-outline-theme me-3 mb-3 d-none" href="#" target="_blank">
<span class="d-flex align-items-center justify-content-center gap-1">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/github.svg" alt="GitHub"/>
<i class="fa-fw fa-lg fas fa-flask"></i>
Beta: <span id="beta-version" class="crowdin-ignore"></span>
</span>
<span class="d-flex align-items-center justify-content-center gap-1 mt-1">
{{ github_release_package_icons }}
</span>
</a>
<a class="btn btn-outline-theme me-3 mb-3" href="https://cloudsmith.io/~lizardbyte/repos/" target="_blank">
<span class="d-flex align-items-center justify-content-center gap-1">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/cloudsmith.svg" alt="Cloudsmith"/>
Cloudsmith
</span>
<span class="d-flex align-items-center justify-content-center gap-1 mt-1">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/alpinelinux.svg" alt="Alpine Linux"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/debian.svg" alt="Debian"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/fedora.svg" alt="Fedora"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/opensuse.svg" alt="openSUSE"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/ubuntu.svg" alt="Ubuntu"/>
</span>
</a>
<a class="btn btn-outline-theme me-3 mb-3" href="https://copr.fedorainfracloud.org/coprs/lizardbyte/" target="_blank">
<span class="d-flex align-items-center justify-content-center">
Copr
</span>
<span class="d-flex align-items-center justify-content-center gap-1 mt-1">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/fedora.svg" alt="Fedora"/>
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/opensuse.svg" alt="openSUSE"/>
</span>
</a>
<a class="btn btn-outline-theme me-3 mb-3" href="https://github.com/LizardByte/pacman-repo" target="_blank">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/archlinux.svg" alt="Arch Linux"/>
Arch Linux
</a>
<a class="btn btn-outline-theme me-3 mb-3" href="https://hub.docker.com/r/lizardbyte/sunshine" target="_blank">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/docker.svg" alt="Docker"/>
Docker
</a>
<a class="btn btn-outline-theme me-3 mb-3" href="https://flathub.org/apps/dev.lizardbyte.app.Sunshine" target="_blank">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/flathub.svg" alt="Flathub"/>
Flathub
</a>
<a class="btn btn-outline-theme me-3 mb-3" href="https://github.com/LizardByte/homebrew-homebrew" target="_blank">
<img class="icon-sm invert" src="https://cdn.jsdelivr.net/npm/simple-icons@16/icons/homebrew.svg" alt="Homebrew"/>
Homebrew
</a>
</div>
</div>
</section>
</div>
</div>
<script src="{{ '/Sunshine/assets/js/release-versions.js' | relative_url }}"></script>
<script type="module">
try {
await globalThis.updateGitHubReleaseVersions({
repository: 'LizardByte/Sunshine',
stableButtonSelector: '.latest-button',
stableVersionSelector: '#latest-version',
prereleaseButtonSelector: '.beta-button',
prereleaseVersionSelector: '#beta-version',
});
} catch (error) {
console.error('Failed to update release versions', error);
}
const clientsContainer = document.getElementById('clients-container');
if (clientsContainer) {
const clientsResponse = await fetch('https://app.lizardbyte.dev/app-directory/sunshine.json');
const data = await clientsResponse.json();
const apps = data.apps || [];
apps.forEach(app => {
let iconsHtml = '';
// Dynamic generation from JSON icons array
if (app.icons && Array.isArray(app.icons)) {
app.icons.forEach(icon => {
iconsHtml += `<img ${icon.invert ? 'class="invert"' : ''} src="${icon.src}" alt="${icon.alt}"/>`;
});
}
const typeBadge = app.official
? '<span class="badge text-bg-info rounded-pill">Official</span>'
: '<span class="badge text-bg-warning rounded-pill">Community</span>';
let downloadsHtml = '';
// Dynamic generation from JSON downloads array
if (app.downloads && Array.isArray(app.downloads)) {
app.downloads.forEach((download, index) => {
const isLast = index === app.downloads.length - 1;
const pbClass = isLast ? '' : ' pb-3';
if (download.img) {
let styleAttr = '';
let heightAttr = '40';
let imgHost = '';
try { imgHost = new URL(download.img).hostname; } catch (e) {}
if (imgHost === 'play.google.com' || imgHost.endsWith('.ssl-images-amazon.com') || imgHost === 'fdroid.gitlab.io') {
heightAttr = '60';
}
if (imgHost.endsWith('.ssl-images-amazon.com')) {
styleAttr = 'style="padding: 10px;"';
}
downloadsHtml += `
<div class="${pbClass.trim()}">
<a href="${download.url}" target="_blank">
<img alt="${download.label}"
src="${download.img}"
height="${heightAttr}"
${styleAttr}/>
</a>
</div>
`;
} else {
let btnClass = 'btn btn-info';
let iconHtml = '<i class="fas fa-download"></i> ';
let urlHost = '';
try { urlHost = new URL(download.url).hostname; } catch (e) {}
if (urlHost === 'github.com') {
iconHtml = '<i class="fab fa-github"></i> ';
}
downloadsHtml += `
<div class="${pbClass.trim()}">
<a href="${download.url}" target="_blank" class="${btnClass}">
${iconHtml}${download.label}
</a>
</div>
`;
}
});
}
const projectLink = (app.links && app.links.github) || (app.links && app.links.website) || '#';
const clientHtml = `
<div class="col-md-6 col-lg-4 mb-5">
<div class="card-custom h-100 shadow border-0 rounded-0 d-flex flex-column">
<div class="card-body p-4">
<div class="d-flex align-items-center">
<div class="icon">
${iconsHtml}
</div>
<div class="ms-3">
<h5 class="fw-bolder mb-0">
<a href="${projectLink}" target="_blank" class="text-decoration-none project-card-link crowdin-ignore">
${app.name}
</a>
</h5>
</div>
<div class="ms-auto">
${typeBadge}
</div>
</div>
</div>
${downloadsHtml ? `
<div class="card-footer p-3 px-4">
${downloadsHtml}
</div>` : ''}
</div>
</div>
`;
clientsContainer.innerHTML += clientHtml;
});
}
</script>