8000
Skip to content

yigehaozi/astralis

Repository files navigation

✨ Astralis

一个极简主义的浏览器起始页 / A Minimalist Browser Start Page

支持中英文 · 深色模式 · 自定义搜索 · 快速访问

English | 中文


中文

📖 简介

Astralis 是一个优雅的极简主义浏览器起始页,专注于提供简洁、高效的浏览体验。支持多语言、主题切换和个性化定制。

✨ 特性

  • 🌐 国际化支持 - 内置中英文双语,可轻松扩展其他语言
  • 🌓 主题切换 - 支持浅色/深色/跟随系统三种主题模式
  • 🔍 多搜索引擎 - 集成 Google、Baidu、Bing 等主流搜索引擎
  • 快速访问 - 自定义网站分类和快捷链接
  • 🎨 极简设计 - 清爽的界面,专注于内容本身
  • 📱 响应式布局 - 完美适配桌面和移动设备
  • 💾 本地存储 - 所有设置保存在本地,保护隐私

🚀 快速开始

前置要求

  • Node.js (推荐 v16 或更高版本)
  • npm 或 yarn

安装步骤

  1. 克隆仓库

    git clone https://github.com/yigehaozi/astralis.git
    cd astralis
  2. 安装依赖

    npm install
  3. 启动开发服务器

    npm run dev
  4. 访问应用

    在浏览器中打开 http://localhost:5173

构建生产版本

npm run build

构建后的文件将在 dist 目录中。

⚙️ 自定义配置

修改默认网站

编辑 constants.ts 文件中的 DEFAULT_CATEGORIES 来自定义默认的网站分类和链接:

export const DEFAULT_CATEGORIES: Category[] = [
  {
    id: '1',
    title: { zh: '常用', en: 'Frequently Used' },
    websites: [
      {
        id: '1',
        title: { zh: '示例网站', en: 'Example Site' },
        url: 'https://example.com',
        icon: '🌐'
      }
    ]
  }
];

修改搜索引擎

constants.ts 中修改 SEARCH_ENGINES 来添加或修改搜索引擎。

📦 技术栈

  • React - UI 框架
  • TypeScript - 类型安全
  • Vite - 构建工具
  • Tailwind CSS - 样式框架
  • Lucide React - 图标库

📄 许可证

MIT License


English

📖 Introduction

Astralis is an elegant minimalist browser start page focused on providing a clean and efficient browsing experience. It supports multiple languages, theme switching, and personalization.

✨ Features

  • 🌐 Internationalization - Built-in Chinese and English, easily extensible to other languages
  • 🌓 Theme Switching - Light/Dark/System theme modes
  • 🔍 Multiple Search Engines - Integrated Google, Baidu, Bing and more
  • Quick Access - Customizable website categories and shortcuts
  • 🎨 Minimalist Design - Clean interface focused on content
  • 📱 Responsive Layout - Perfect for desktop and mobile devices
  • 💾 Local Storage - All settings saved locally for privacy

🚀 Quick Start

Prerequisites

  • Node.js (v16 or higher recommended)
  • npm or yarn

Installation

  1. Clone the repository

    git clone https://github.com/yigehaozi/astralis.git
    cd astralis
  2. Install dependencies

    npm install
  3. Start development server

    npm run dev
  4. Open in browser

    Visit http://localhost:5173

Build for Production

npm run build

Built files will be in the dist directory.

⚙️ Customization

Modify Default Websites

Edit DEFAULT_CATEGORIES in constants.ts to customize default website categories and links:

export const DEFAULT_CATEGORIES: Category[] = [
  {
    id: '1',
    title: { zh: '常用', en: 'Frequently Used' },
    websites: [
      {
        id: '1',
        title: { zh: '示例网站', en: 'Example Site' },
        url: 'https://example.com',
        icon: '🌐'
      }
    ]
  }
];

Modify Search Engines

Edit SEARCH_ENGINES in constants.ts to add or modify search engines.

📦 Tech Stack

  • React - UI Framework
  • TypeScript - Type Safety
  • Vite - Build Tool
  • Tailwind CSS - Styling
  • Lucide React - Icons

📄 License

MIT License

About

https://www.astralis.cn/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0