跳到正文

正在自动登录…

← 返回项目列表

NyxFoundation/nyxis

授权安全后端框架形式化验证

Nyxis 是一个 Lean 后端框架,为 AI 生成的 Web 应用提供经过形式化验证的授权安全保障。开发者只需编写和审批 Cedar 模式与策略,即可确保任何 HTTP 请求序列都无法越权访问数据。 适用于希望通过 AI 代理快速开发 Web 应用、同时确保授权安全性的独立开发者。开发者无需编写 Lean 代码,仅需通过 Lake 集成 Nyxis 并配置策略。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/26 18:31:26 · 查看原文

值得看Lean库与框架
累计 Stars
118
当前热度
1 天内 · 小火
仓库创建时间
打开 GitHub ↗

选用指南

AI 根据 README 整理 · 2026/10/26 18:31:26

适用场景

适用于需要严格授权保证的 AI 生成 Web 应用后端,如公告板、团队文档共享等场景。

查看 README 依据
Nyxis lets solo developers who ship web applications written by AI agents release them with confidence about authorization. The only things a developer writes and approves are a [Cedar](https://www.cedarpolicy.com/) schema and policies. Handlers can be written as usual by Claude Code or similar tools, and the developer never has to write Lean. Every backend built on Nyxis comes with a formal proof of the following: > No sequence of HTTP requests can cause an authenticated principal to read, modify, delete, or grant access to data beyond its legitimate permissions.
- [`examples/bulletin-board/`](examples/bulletin-board/README.md): a bulletin board with published and draft posts, Google OAuth login, and granting and revoking admin rights. It ships with a Next.js frontend, so you can watch the policies allow and deny requests as you use the UI. - [`examples/team-docs/`](examples/team-docs/README.md): document sharing within organizations, with memberships and roles, timestamps, filtered and paginated lists, attachments, email notifications, and external API calls. Backend only for now. ## Repository layout | Path | Contents | |---|---|
目标用户

面向使用 AI 代理编写 Web 应用、但需要授权安全验证的独立开发者。

查看 README 依据
Nyxis lets solo developers who ship web applications written by AI agents release them with confidence about authorization. The only things a developer writes and approves are a [Cedar](https://www.cedarpolicy.com/) schema and policies. Handlers can be written as usual by Claude Code or similar tools, and the developer never has to write Lean. Every backend built on Nyxis comes with a formal proof of the following: > No sequence of HTTP requests can cause an authenticated principal to read, modify, delete, or grant access to data beyond its legitimate permissions.
使用方式

通过 Lake 的 require 命令集成到应用中,使用 Lean 语言编写模式、策略和处理器,通过 lake build 构建并验证证明。

查看 README 依据
Nyxis is a standalone package you pull in with Lake's `require`. Your application package contains only the schema, policies, handlers, and startup code, and none of Nyxis's code. Nyxis resolves its pinned dependencies from `.lake/vendor/` inside its own checkout, so first run the build steps above in a clone of this repository, then require it by path (as the official samples do): ```lean require nyxis from "<path to your Nyxis clone>" ```
1. **Write and approve a Cedar schema and policies.** The schema doubles as the table definition (entity type = table, attribute = column), and each action carries exactly one effect defined by Nyxis. 2. **Write handlers (or let an AI agent write them).** Handlers have the Nyxis type `Nyxis.Handler`, and their only effect is calling actions on the authorization layer. They cannot perform IO or reach the database directly. 3. **Run `lake build`.** Building also binds the app to the approved sources, audits the application code, and checks the proofs.
部署要求

需要 Lean 4(版本已固定)、Python 3.12 或更高版本、OpenSSL CLI、C 编译器、pkg-config、libpq 和 libcrypto 开发文件,以及运行时依赖 PostgreSQL(Supabase)和 Supabase Auth。

查看 README 依据
# Nyxis English | [日本語](README.ja.md) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) [![Version](https://img.shields.io/badge/version-v0.1.0-orange.svg)](https://github.com/NyxFoundation/nyxis) [![Status](https://img.shields.io/badge/status-under%20development-yellow.svg)](ASSUMPTIONS.md) [![Lean](https://img.shields.io/badge/Lean-v4.34.1-0052cc.svg?logo=lean&logoColor=white)](lean-toolchain) [![Cedar](https://img.shields.io/badge/policies-Cedar-6f42c1.svg)](https://www.cedarpolicy.com/)
cannot forge any of them. ## Requirements - Lean 4 via [elan](https://github.com/leanprover/elan) (the version is pinned in `lean-toolchain`) - Python 3.12 or later, the OpenSSL CLI, and a C compiler - pkg-config and the development files for libpq and libcrypto (on macOS, `brew install libpq`; because Homebrew's libpq is keg-only, add `$(brew --prefix libpq)/lib/pkgconfig` to `PKG_CONFIG_PATH`) - At runtime: PostgreSQL (Supabase) and Supabase Auth ## Build ```sh python3 scripts/prepare-dependencies.py # fetch pinned dependencies into .lake/vendor/, verified by SHA256
已知限制

Nyxis 正处于积极开发中(v0.1.1),保证范围和在证明之外信任的假设在 ASSUMPTIONS.md 中说明,生产使用前需阅读。

查看 README 依据
The Lean kernel checks this property on every `lake build`. Reviewing and auditing authorization comes down to reading the schema and policies and confirming that the proof checks. > [!NOTE] > Nyxis is under active development (v0.1.1). The scope of the guarantee and the assumptions trusted outside the proof are spelled out in [ASSUMPTIONS.md](ASSUMPTIONS.md). Read it before using Nyxis in production. ## How it works

README

正在加载 README…

收录信息

仓库创建时间
2026/10/26 12:26:18
首次达标收录
2026/10/26 18:26:38
统计更新时间
2026/10/26 19:36:06

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 3.8 / 5

新颖度
4.2
实用价值
3.6
成熟度
4.0
实质含量
3.5

由 Jev 模型根据仓库描述与 README 评估,2026/10/26 18:26:38 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/26 16:55:57
许可证标识
MIT
Fork 数
1
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目