Astro启动器

astro-sci-fi-ui — Astro 启动器模板

作者 jonnysmillie

Astro 优先的科幻风格界面套件,提供驾驶舱式框架、面板、HUD 与终端组件,并附带可选的图表、战术地图和浏览器端目标检测示例页面。

看看你的网站会是什么样

浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。

2 个预览视图
桌面端首页1 / 2
桌面端截图首屏预览

由服务器浏览器实际访问页面后截取。

全部页面与视图 2

截图用于了解视觉与布局,交互效果请以实际项目为准。

采集于 2026-10-03查看来源

值得关注的模板亮点

从已有项目资料中,快速了解它的特点。

01

以 Astro 静态输出为主,配合 Tailwind v4 与共享设计令牌

02

提供驾驶舱式框架、面板、HUD、终端和雷达等可组合组件

03

AppShell 与 AppNav 统一处理背景、暗角、扫描线和全局设置

04

图表、战术地图和浏览器端目标检测通过环境变量按需启用

05

内置主题(synthwave、nebula、ember、matrix、void)与高对比度、浅色外观选项

模板详细介绍

该项目是一个面向 Astro 的科幻风格界面套件,以静态 HTML 和 CSS 为主,结合 Tailwind v4 与共享设计令牌,用于搭建驾驶舱风格的页面。组件覆盖框架与面板、HUD 元素(角标、准星、状态条、滚动条)、终端堆栈以及被动雷达,并通过 AppShell 和 AppNav 提供背景、暗角、扫描线等外壳效果。全局设置(主题、叠加层、动效、声音)保存在浏览器 localStorage 的 sf:settings 中。

React 仅在特定场景引入:uPlot 图表、MapLibre 战术地图、Framer Motion 边框动画,以及 /intel 路由上可选的 TensorFlow.js 面板。这些功能通过环境变量开关控制,例如 PUBLIC_FEATURE_INTEL_ML 和 PUBLIC_FEATURE_MAP,便于按需裁剪演示内容。

仓库包含组件文档、架构说明、令牌与设置说明以及第三方素材的许可与隐私提示。演示地图使用公共栅格瓦片端点,实际部署需自行提供瓦片或付费方案并遵守相应服务条款;/intel 的摄像头或文件检测在浏览器内运行,YouTube iframe 无法被脚本读取用于计算机视觉。

Astro启动器

适合你的项目吗?

适用场景

  • 构建科幻或驾驶舱风格的 Astro 静态站点界面
  • 在组件文档或展示页中预览 HUD、面板、终端与雷达组件
  • 为仪表盘页面接入 uPlot 图表并展示 Open-Meteo 示例数据
  • 在浏览器内运行 MapLibre 战术地图或 COCO-SSD 目标检测演示

适合人群

  • 使用 Astro 并希望快速搭建科幻风格界面的开发者
  • 需要可组合 HUD、面板与终端组件的界面原型
  • 希望按环境变量裁剪图表、地图或机器学习演示的团队

上手与定制指南

结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。

  1. 1

    需要 Node ≥ 22.12,使用 npm install 安装依赖,npm run dev 启动开发服务器(默认端口 4321)

  2. 2

    可通过 .env 设置 PUBLIC_FEATURE_INTEL_ML=false 或 PUBLIC_FEATURE_MAP=false 关闭对应功能

  3. 3

    地图演示使用公共栅格瓦片端点,正式部署应替换为自有瓦片或付费方案并遵守服务条款

  4. 4

    演示图片、字体、图标等第三方素材需单独核对许可,不能仅凭代码的 MIT 许可判断

查看仓库使用说明

授权与来源资料

使用条件与限制

免费使用 · 保留许可声明

本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。

使用时需要遵守

  • 允许免费使用、修改、商用和分发该版本代码。
  • 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
  • 代码按现状提供;担保与责任限制以原许可证及适用法律为准。

额外费用与待核对事项

  • 演示地图使用公共栅格瓦片端点,正式部署需自行提供瓦片或采用付费方案,并遵守各瓦片服务商的条款。
  • /intel 路由中的 YouTube 嵌入 iframe 无法被脚本读取,因此不能用于计算机视觉处理。
  • /intel 的 COCO-SSD 与 /map 的 MapLibre 功能需通过环境变量开关控制,关闭后对应页面仅显示占位内容。
  • 项目资料提及可选付费版本或功能;本次仅收录公开免费代码,不包含付费升级。
  • 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
  • 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据

Permission is hereby granted, free of charge

许可证原文

demo uses public raster endpoints; ship your own tiles or a paid plan and follow each provider’s terms

README 原文

YouTube iframes are not script-readable for CV

README 原文

Set **`PUBLIC_FEATURE_INTEL_ML=false`** to drop COCO-SSD on `/intel`, or **`PUBLIC_FEATURE_MAP=false`** for a map placeholder without MapLibre.

README 原文
https://github.com/jonnysmillie/astro-sci-fi-ui/blob/main/LICENSEhttps://github.com/jonnysmillie/astro-sci-fi-ui/blob/main/README.md

DeepSeek 根据仓库许可证和 README 整理 ·2026-10-03。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。

项目核对记录与介绍依据

模板资料

来源平台
Astro Themes
资料与维护参考分
资料较完整 · 83 / 100
技术栈
Astro
网站类型
启动器
这个分数如何计算

本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。

这个项目需要核对什么

记录的仓库更新时间
2026-04-15
截图检查日期
2026-10-03

已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。

目录记录的主要技术栈是 Astro。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。

查看具体选型方法 →

介绍的制作与核对状态

介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。

审核声明: [email protected] · 2026-10-04

查看当时使用的来源资料

SHA-256: 847b68703b09c12f521bd5c80135afc4b09b448b327a58019dd74e4543c3af74

2026-10-03T14:16:14.988Z

来源文件 / 仓库
# Sci‑Fi UI (Astro)

**Sci‑Fi UI** is an **Astro-first** interface kit for cockpit-style layouts: composable **frames and panels**, **HUD** primitives (corners, reticle, status bars, tickers), a **terminal** stack, and a passive **radar** — all biased toward **static HTML and CSS**, with **Tailwind v4** and shared **design tokens** (themes, glow, scanlines, optional sound). A thin **shell** (`AppShell`, `AppNav`) ties pages together with vignette, grain, and global **settings** persisted in the browser. **React** shows up only where it pays off: **charts** (uPlot), a **MapLibre** tactical map, **Framer Motion** for a few borders, and an optional **TensorFlow.js** panel on the intel route — each gated by env flags so you can ship a lighter fork without ripping out the whole demo.

**License:** [MIT](LICENSE) · **Contributing:** [CONTRIBUTING.md](CONTRIBUTING.md) · **Changelog:** [CHANGELOG.md](CHANGELOG.md)

## Docs

- [docs/architecture.md](docs/architecture.md) — layout and layers  
- [docs/components.md](docs/components.md) — component props  
- [docs/tokens-and-settings.md](docs/tokens-and-settings.md) — CSS variables and `sf:settings`  
- [docs/third-party.md](docs/third-party.md) — tiles, embeds, fonts — legal / privacy notes  

## Optional env flags

See [`.env.example`](.env.example). Set **`PUBLIC_FEATURE_INTEL_ML=false`** to drop COCO-SSD on `/intel`, or **`PUBLIC_FEATURE_MAP=false`** for a map placeholder without MapLibre.

## Stack

Astro 6, Tailwind v4 (`@tailwindcss/vite`), React where needed (uPlot, MapLibre, Framer Motion, TensorFlow.js on `/intel`).

## Routes

| Path | What it is |
|------|------------|
| `/` | Landing page |
| `/components` | Component documentation (nav + preview + snippets per primitive) |
| `/kit` | Component showcase (panels, HUD, radar, terminal) |
| `/settings` | Global shell preferences (theme, overlays, motion, sound) |
| `/dashboard` | uPlot charts + Open-Meteo sample |
| `/map` | MapLibre tactical map (env can disable) |
| `/intel` | YouTube embed + optional local COCO-SSD (env can disable ML block) |

## Layout (src)

`components/` — `core`, `effects`, `hud`, `terminal`, `radar`, `shell` (AppShell, AppNav), `charts`, `map`, `intel` · `layouts/` (ScifiLayout) · `lib/` · `styles/` · `plugins/` · `pages/` · `scripts/` · `data/`

Pages use [`AppShell`](src/components/shell/AppShell.astro) (background, vignette, scanlines) and [`AppNav`](src/components/shell/AppNav.astro). Pass `narrow` to `AppShell` for a centered max-width column.

## Usage

```astro
---
import ScifiLayout from "../layouts/ScifiLayout.astro";
import AppShell from "../components/shell/AppShell.astro";
import AppNav from "../components/shell/AppNav.astro";
import Panel from "../components/core/Panel.astro";
---

<ScifiLayout title="My HUD">
  <AppShell>
    <AppNav />
    <Panel variant="primary" glow>…</Panel>
  </AppShell>
</ScifiLayout>
```

**Sound:** wired from [`boot.ts`](src/scripts/boot.ts) via `AppShell`. Use `data-sf-sound-hover` / `data-sf-sound-click`, or `sound` on [`Button.astro`](src/components/core/Button.astro). Settings live under `sf:settings` in `localStorage` — see [`src/lib/settings.ts`](src/lib/settings.ts).

**Themes:** Default (no attribute) is **synthwave** cyan / magenta on violet-black. Optional `data-theme`: `nebula` (older cyan/violet look), `ember`, `matrix`, `void` — see [`tokens.css`](src/styles/tokens.css). **Appearance:** `data-sf-appearance` — `high-contrast`, `light`.

**Map tiles:** demo uses public raster endpoints; ship your own tiles or a paid plan and follow each provider’s terms (e.g. [OSM tile policy](https://operations.osmfoundation.org/policies/tiles/)).

**Intel:** webcam / file runs in-browser; YouTube iframes are not script-readable for CV.

## Commands

| Command | Action |
|---------|--------|
| `npm install` | Dependencies |
| `npm run dev` | Dev server (`:4321`) |
| `npm run build` | Production build |
| `npm run preview` | Preview build |

**Node ≥ 22.12** (Astro 6).
反馈内容错误

看看同类模板

对比同技术栈与用途的模板,找到更适合的视觉与内容结构。