{"id":21212219,"url":"https://github.com/yanranxiaoxi/opennav","last_synced_at":"2025-07-10T09:31:36.932Z","repository":{"id":61391825,"uuid":"531638098","full_name":"yanranxiaoxi/OpenNav","owner":"yanranxiaoxi","description":"开放、自由的个人网络收藏夹","archived":false,"fork":false,"pushed_at":"2022-12-31T16:47:19.000Z","size":411,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-03-06T19:57:04.816Z","etag":null,"topics":["navigation-bar","php","web-navigation"],"latest_commit_sha":null,"homepage":"https://newtab.soraharu.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yanranxiaoxi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"xiaoxi","custom":["https://www.buymeacoffee.com/yanranxiaoxi","https://opennav.soraharu.com/license/"]}},"created_at":"2022-09-01T18:21:35.000Z","updated_at":"2023-01-29T08:51:36.000Z","dependencies_parsed_at":"2023-01-31T19:30:55.263Z","dependency_job_id":null,"html_url":"https://github.com/yanranxiaoxi/OpenNav","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanranxiaoxi%2FOpenNav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanranxiaoxi%2FOpenNav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanranxiaoxi%2FOpenNav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanranxiaoxi%2FOpenNav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanranxiaoxi","download_url":"https://codeload.github.com/yanranxiaoxi/OpenNav/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225629733,"owners_count":17499295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["navigation-bar","php","web-navigation"],"created_at":"2024-11-20T21:08:21.379Z","updated_at":"2024-11-20T21:08:22.105Z","avatar_url":"https://github.com/yanranxiaoxi.png","language":"PHP","funding_links":["https://ko-fi.com/xiaoxi","https://www.buymeacoffee.com/yanranxiaoxi","https://opennav.soraharu.com/license/"],"categories":[],"sub_categories":[],"readme":"![OpenNav](https://socialify.api.soraharu.com/yanranxiaoxi/OpenNav/image?description=1\u0026font=Inter\u0026forks=1\u0026logo=https%3A%2F%2Fraw.githubusercontent.com%2Fyanranxiaoxi%2FOpenNav%2Fmain%2FPublic%2Fassets%2Fimages%2Flogos%2Fopennav.svg\u0026name=1\u0026owner=1\u0026pattern=Diagonal%20Stripes\u0026stargazers=1\u0026theme=Light)\n\n# OpenNav\n\n⭐ 开放、自由的个人网络收藏夹 ⭐\n\n[![pipeline status](https://gitlab.soraharu.com/XiaoXi/OpenNav/badges/main/pipeline.svg)](https://gitlab.soraharu.com/XiaoXi/OpenNav/-/commits/main) [![Latest Release](https://gitlab.soraharu.com/XiaoXi/OpenNav/-/badges/release.svg)](https://gitlab.soraharu.com/XiaoXi/OpenNav/-/releases)\n\n🔗 [GitLab (Homepage)](https://gitlab.soraharu.com/XiaoXi/OpenNav) | 🔗 [GitHub](https://github.com/yanranxiaoxi/OpenNav)\n\n## ✨ 特性\n\n-   🔎 前端实时全文搜索\n-   📁 两级分类标签设计\n-   🌲 多前端主题一键切换\n-   🖥️ 直观设计的控制台面板\n-   ⏱️ 支持高安全性时基验证登录\n-   ⭐ 一键导入 Chrome / Edge 收藏夹\n-   🛠 全量操作 API 化，便捷二次开发\n-   ☁️ 轻量化开发，全接口注释\n-   🔐 全局完整鉴权流程及渗透防护\n\n## ✔️ 要求\n\n-   PHP 8.0 或更高版本\n-   PHP 插件\n    -   PHP [pdo_sqlite](https://www.php.net/manual/ref.pdo-sqlite.php) 以使用 SQLite 数据库\n    -   PHP [curl](https://www.php.net/manual/book.curl.php) 以获取在线内容（如自动更新、主题）\n    -   PHP [mbstring](https://www.php.net/manual/book.mbstring.php) 以生成文字网站图标及配置时基验证\n    -   PHP [intl](https://www.php.net/manual/book.intl.php) 以获取准确的根域名信息\n    -   PHP [fileinfo](https://www.php.net/manual/book.fileinfo.php) 以在线获取网站图标（可选）\n    -   PHP file_uploads 启用了上传机制以导入 Chrome / Edge 收藏夹\n    -   PHP upload_max_filesize 与最大文件上传大小匹配，建议至少为 8 MiB\n-   支持所有 **现代浏览器**（极为有限的 Internet Explorer 支持）\n\n## ⚙️ 从发布版本部署（推荐）\n\n1. 前往本项目发布页 [GitLab](https://gitlab.soraharu.com/XiaoXi/OpenNav/-/releases) | [GitHub](https://github.com/yanranxiaoxi/OpenNav/releases) 获取最新编译版本软件包，包名为 `OpenNav-compiled.zip`\n2. 将软件包上传至服务器站点目录中，并解压\n3. 设置站点运行目录为解压出的 `Public` 目录\n4. 访问你的网站，如果一切正常，将会显示 **安装 OpenNav** 页面，在安装时系统会自动进行运行环境检查，如出现错误，请仔细阅读报错提示，如遇到无法解决的错误，可提交 Issue 寻求帮助\n5. 配置周期任务\n\n    - 方式一：添加到系统 crontab\n\n        \u003e 请将 `/path/to/your/opennavroot` 修改为您的 OpenNav 目录\n\n        ```\n        30 2 * * * php /path/to/your/opennavroot/Cron/Cron.php\n        ```\n\n    - 方式二：使用工具周期性（建议为 24 小时）访问以下地址\n\n        \u003e 请将 `opennav.yourdomain.com` 修改为您的域名\n\n        ```\n        https://opennav.yourdomain.com/index.php?c=Cron\n        ```\n\n## ⚙️ 从源代码部署\n\n1. 确保您的服务器已安装 [NodeJS](https://nodejs.org/)、[Composer](https://getcomposer.org/)\n2. 执行以下命令拉取源代码\n\n    ```shell\n    git clone --depth=1 https://gitlab.soraharu.com/XiaoXi/OpenNav.git\n\n    # 或者，也可以从 GitHub 仓库拉取\n\n    git clone --depth=1 https://github.com/yanranxiaoxi/OpenNav.git\n    ```\n\n3. 进入源代码目录并编译、安装、获取默认主题\n\n    ```shell\n    cd ./OpenNav/\n    npm run ins\n    ```\n\n4. 设置站点运行目录为项目文件夹内的 `Public` 目录\n5. 继续执行 **从发布版本部署** 的第 4 步骤\n\n\u003e **Warning**\n\u003e\n\u003e 从源代码部署仅建议用于开发环境，本项目当前处于快速迭代开发阶段，未经过完整验证的源代码可能会出现较多未知错误，请在遇到无法解决的错误时首先尝试使用 `git reset --hard upstream/main \u0026\u0026 git clean -fdx \u0026\u0026 git pull` 拉取最新版本源代码，如确认处在最新版本，可开启 Issue 并附上您的复现过程，开发者将会尽快予以回应。\n\n## 🛠 参与开发\n\n1. 确保您的计算机已安装 [NodeJS](https://nodejs.org/)、[Composer](https://getcomposer.org/)\n2. Fork 本项目仓库到您的 GitHub、GitLab 或其他受支持的 Git 托管平台\n3. 克隆您的 Fork 仓库到本地\n\n    \u003e 请按实际情况修改 `whereyourgit.com` 和 `yourusername`\n\n    ```shell\n    git clone --depth=3 https://whereyourgit.com/yourusername/OpenNav.git\n    ```\n\n4. 进入项目目录并编译、安装、获取默认主题\n\n    ```shell\n    cd ./OpenNav/\n    npm run ins:dev\n    ```\n\n5. 使用合适的 IDE 打开项目目录。本项目推荐使用 [Visual Studio Code](https://code.visualstudio.com/) + [PHP Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client) + [PHP Server](https://marketplace.visualstudio.com/items?itemName=brapifra.phpserver) + [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) + [EditorConfig](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig) 进行开发，可以获得较为出色的代码提示效果\n6. （可选）如您使用以上推荐环境进行开发，可配置 `.vscode/settings.json` 为以下内容，开启代码自动格式化\n\n    ```json\n    {\n    \t\"editor.formatOnSave\": true,\n    \t\"editor.defaultFormatter\": \"esbenp.prettier-vscode\"\n    }\n    ```\n\n7. 进行您的开发\n8. 提交 Commit 前，请使用 `npm run fix` 格式化代码\n9. 发起 Pull Request 并阐明您所做出的更改\n10. 感谢您的贡献！~\n\n## 📜 开源许可\n\n本项目支持个人及非商业社会团体 **免费使用所有主线功能**（仅额外的主题、去除前端版权标识、插入付费广告等商业性质功能需要授权激活使用）。\n\n个人（支持个人商用）及非商业社会团体可支付 **[99 CNY]** 获取永久使用授权。\n\n商业用途企业需支付 **[299 CNY]** 以获取永久使用授权。\n\n主线功能基于 [Mozilla Public License Version 2.0](https://choosealicense.com/licenses/mpl-2.0/) 许可进行开源，商业性质功能具有 [专属许可协议](https://gitlab.soraharu.com/XiaoXi/OpenNav/-/blob/main/LICENSE#L381)。\n\n所有使用者、贡献者仍需遵循以下附加条款：\n\n1. 未获取永久使用授权的个人、团体、企业 **不属于** 许可的开源对象；\n2. 对本项目进行修改、重构、衍生开发等再演绎过程时不可去除任何授权限制代码；\n3. 本项目仅为通用个人网络收藏夹用途，其功能类似于浏览器的同步收藏夹，项目所有者及贡献者均不提供任何网络服务用于托管本项目的副本，所有未合并入主分支的代码均不属于本项目，所有用户自部署实例上的内容均与本项目无任何关联；\n4. 处于任何国家、地区的任何个人、团体、企业在使用本项目及其任何衍生功能时，均需遵守中华人民共和国现行法律之约束，不将本项目的任何副本用于违法用途，所有不当用途所造成的合规风险均由使用者承担；\n5. 所有参与本项目的贡献者需了解，如因合规原因需要更改本项目许可的附加条款甚至完整许可协议，项目所有者承诺将会发送电子邮件通知，并视为贡献者无条件同意此更改，无论是否接收到该电子邮件；\n6. 参与贡献的开发者均可以申请获取使用授权，但仍受上述协议限制，如不接受以上许可协议及附加条件，请不要使用本项目或参与本项目的贡献。\n\n以上附加条款仅为本项目所有者面对所在地域当前开源环境的无奈之举，请大家见谅，望有朝一日能安心去除以上附件条款，而无需有任何「开源负担」。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanranxiaoxi%2Fopennav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanranxiaoxi%2Fopennav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanranxiaoxi%2Fopennav/lists"}