跳到正文

Stellar-Sentinel

sentinel-frontend

Stellar Sentinel dashboard for Stellar account screening, network health, and Soroban contract flag events.

README 已保存到本站,可直接阅读

Documentation snapshot

README 快照

这篇是英文原文

下面正文是项目自己的英文 README。想读全文就用浏览器自带的整页翻译: Chrome / Edge 点地址栏右侧的翻译图标,或用右键菜单里的「翻译成中文」; 手机浏览器一般在菜单里。

本页保存的是公开项目资料快照,阅读过程不需要连接 GitHub。

Stellar Sentinel Frontend

Open the live dashboard

Stellar Sentinel is a dashboard for screening Stellar account activity and reviewing Soroban contract flag events. Scores are transparent off-chain signals; they do not submit a transaction or create a contract flag.

Architecture

flowchart LR
  User --> UI[Next.js dashboard]
  UI -->|POST /risk/score| API[FastAPI backend]
  UI -->|GET /events and /network/status| API
  API -->|account activity| Horizon[Stellar Horizon]
  API -->|network health and contract events| RPC[Stellar RPC]
  Contract[Soroban Sentinel contract] -->|flagged events| RPC

The browser uses the backend as its only application API. It renders account metrics and signal explanations, the current network/RPC status, and a paginated contract event feed. If loading an older event page fails, already-loaded events remain visible and the failed cursor can be retried. The dashboard keeps up to five successful account assessments in the current page session so analysts can revisit recent results without storing them across reloads. The event feed requires a deployed contract ID configured in the backend.

Stellar Testnet deployment

The backend is configured for the Stellar Sentinel contract at CCZAAZ3FJ7LKZA7E7A6EKQTU2HCNVI3YUVIHKWHSULGZSWAJFS2D2XVX. The dashboard reads its Soroban events through GET /events. The contract is initialized at threshold 70; its feed is empty until an authorized agent records a flag. Deployment and transaction details are in the contract README.

Project layout

  • app/page.tsx — dashboard, account screening form, event feed, and section navigation.
  • app/globals.css — responsive layout, sidebar/mobile navigation, and component styles.
  • app/layout.tsx — document metadata and root layout.
  • .env.example — frontend API URL for local development.

Run locally

Requires Node.js 24 (the version used by CI) and npm. Start the backend separately; see sentinel-backend.

cp .env.example .env.local
npm ci
npm run dev

Open http://localhost:3000. npm run start serves a production build after npm run build.

Commands

CommandPurpose
npm run devRun the local Next.js development server.
npm run lintRun ESLint across the frontend.
npm run buildCreate a production build and check compilation/types.
npm run startServe the production build.

There is no separate frontend unit-test suite configured yet. CI runs lint and build on pushes to main and pull requests.

Configuration

Set NEXT_PUBLIC_API_BASE_URL in .env.local (default: http://localhost:8000). This value is exposed to the browser, so it must contain only a public API origin, never a secret. The backend’s CORS_ORIGINS must include the frontend origin, normally http://localhost:3000.

API integration

  • POST /risk/score returns the account score, signals, metrics, data source, and observation time.
  • GET /events?limit=20&cursor=... returns paginated contract events.
  • GET /network/status reports the Stellar network, Soroban RPC health, and latest ledger.

When the backend identifies the network as Public Network or Testnet, account, contract, and available transaction references link to the matching Stellar Expert explorer. Unknown networks and missing transaction hashes remain plain text.

Keep response changes coordinated with the backend. Errors, loading, and empty states should remain explicit; do not replace missing chain data with sample values.

If a new account screening request fails after a successful assessment, the dashboard keeps the last successful result visible and shows the new request error above it.

Official distribution

获取与安装

暂未发现可确认的官方软件包地址

当前 README 快照没有出现 npm、PyPI、Crates.io、pub.dev 等官方包页链接。本站不会根据仓库名称猜测下载地址。

本站不托管项目文件;需要安装时,请以项目维护者发布的官方文档为准。

使用前核验

本站保存公开资料用于阅读,不代表安全审计或功能背书。安装前请核对许可证、依赖来源和发布签名,不要直接运行来源不明的二进制文件或高权限脚本。