A minimalist, customizable personal homepage deployed on Cloudflare Workers, with an admin panel for easy configuration.
Simple Homepage is a lightweight personal homepage designed specifically for deployment on Cloudflare Workers. It features a clean, modern UI with dark/light theme support, customizable personal information, social links, and a password-protected admin panel that allows you to update your site settings without editing any code.
- 🎨 Dark/light theme toggle with custom background color and image support
- 🔒 Password-protected admin panel for secure configuration
- 🖼️ Customizable avatar, name, motto, site title, and favicon
- 🔗 Built-in support for GitHub, Bilibili, and Email social links
- 📱 Fully responsive design optimized for mobile and desktop devices
- ⚡ Ultra-fast loading powered by Cloudflare's global edge network
- ✨ Smooth animations and interactive UI elements with ripple effects
- 🛡️ No database required - all configuration stored in Cloudflare KV
- A Cloudflare account (free tier available)
- A GitHub account
- Log in to your Cloudflare dashboard
- Go to Workers & Pages > KV
- Click Create a namespace
- Name it
CONFIG_KVand click Add
- Go to Workers & Pages > Overview
- Click Create application > Create Worker
- Name your worker (e.g.,
simple-homepage) and click Deploy - Click Quick edit to open the code editor
- Delete all existing code in the editor
- Copy the entire content of
worker.jsfrom this repository - Paste it into the Cloudflare code editor
- Click Save and deploy
- Go back to your Worker's main page
- Click Settings > Variables
- Under KV Namespace Bindings, click Add binding
- Set Variable name to
CONFIG_KV - Select the
CONFIG_KVnamespace you created earlier - Click Save and deploy
- Visit your deployed homepage
- Add
#adminto the end of the URL (e.g.,https://your-worker.your-account.workers.dev/#admin) - Log in with the default password:
admin123
After logging in, you can customize:
- Basic information (site title, name, motto, avatar, favicon)
- Social links (GitHub, Bilibili, Email)
- Appearance (background color, background image, dark/light theme)
- Admin password (highly recommended to change the default)
- Change the default admin password immediately after first login
- All configuration changes are saved automatically to Cloudflare KV
- Background images should be direct URLs to image files
- The admin session is stored in your browser's sessionStorage and expires when you close the tab
This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.
Simple Homepage 是一个专为 Cloudflare Workers 设计的轻量级个人主页。它拥有简洁现代的用户界面,支持深色/浅色主题切换,可自定义个人信息和社交链接,并提供密码保护的管理面板,让你无需编辑任何代码即可更新网站设置。
- 🎨 深色/浅色主题切换,支持自定义背景颜色和背景图片
- 🔒 密码保护的管理面板,确保配置安全
- 🖼️ 可自定义头像、姓名、格言、网站标题和图标
- 🔗 内置支持 GitHub、Bilibili 和 Email 社交链接
- 📱 完全响应式设计,完美适配手机和桌面设备
- ⚡ 依托 Cloudflare 全球边缘网络,加载速度极快
- ✨ 流畅的动画效果和交互式 UI 元素,包含涟漪特效
- 🛡️ 无需数据库,所有配置存储在 Cloudflare KV 中
- 一个 Cloudflare 账户(免费版可用)
- 一个 GitHub 账户
- 登录你的 Cloudflare 控制台
- 进入 Workers & Pages > KV
- 点击 创建命名空间
- 命名为
CONFIG_KV并点击 添加
- 进入 Workers & Pages > 概览
- 点击 创建应用程序 > 创建 Worker
- 为你的 Worker 命名(例如
simple-homepage)并点击 部署 - 点击 快速编辑 打开代码编辑器
- 删除编辑器中所有现有的代码
- 复制本仓库中
worker.js的全部内容 - 粘贴到 Cloudflare 代码编辑器中
- 点击 保存并部署
- 返回你的 Worker 主页面
- 点击 设置 > 变量
- 在 KV 命名空间绑定 下,点击 添加绑定
- 设置 变量名称 为
CONFIG_KV - 选择你之前创建的
CONFIG_KV命名空间 - 点击 保存并部署
- 访问你部署好的主页
- 在 URL 末尾添加
#admin(例如https://your-worker.your-account.workers.dev/#admin) - 使用默认密码登录:
admin123
登录后,你可以自定义以下内容:
- 基本信息(网站标题、姓名、格言、头像、网站图标)
- 社交链接(GitHub、Bilibili、Email)
- 外观设置(背景颜色、背景图片、深色/浅色主题)
- 管理员密码(强烈建议修改默认密码)
- 首次登录后请立即修改默认管理员密码
- 所有配置更改会自动保存到 Cloudflare KV
- 背景图片应为图片文件的直接 URL
- 管理员会话存储在浏览器的 sessionStorage 中,关闭标签页后会过期
本项目采用 GNU General Public License v3.0 许可证 - 详情请参阅 LICENSE 文件。