Feyo
Feyo is an independent, open-source Stellar payments project building non-custodial payment infrastructure for web applications, developers, and eventually AI agents. The current payment flow supports native XLM on Stellar Testnet; stablecoin execution is planned.
Integrating payments requires clear authorization, precise asset and amount handling, and trustworthy settlement status. Feyo makes those boundaries explicit in a Testnet workspace that can prepare, sign, submit, and independently verify a native-XLM payment.
Current scope: an early-stage Stellar Testnet application with account checks, local payment preparation, user-approved wallet signing and a separate, exact-envelope submission action with independent ledger verification. Mainnet settlement, a public payment API, MCP payment tools, and Nigerian bank payouts are not implemented.
Open the deployed Testnet workspace · Read the product documentation · Inspect a Feyo-submitted Testnet payment
What works today
- Connect a wallet on Stellar Testnet, with account and network change handling and recoverable connection errors.
- Read public XLM and issued-asset balances from Testnet Horizon, preserving asset issuer identity and handling loading, unfunded accounts, empty results, and request failures.
- Validate payment drafts with exact decimal amounts, recipient addresses, and asset details; create and clear local drafts without signing or submission.
- Independently verify a known Testnet transaction hash against the expected source, destination, exact amount, asset and issuer in the read-only workspace.
- Inspect a destination account and exact issued-asset trustline through a non-blocking, read-only Testnet preflight; authorization and limit data are observations, not payment guarantees.
- Review a native-XLM unsigned payment, explicitly sign it in Freighter, save the exact signed attempt locally, then deliberately submit that same Testnet envelope. Destinations advertising a required memo are refused because this milestone has no memo support. A signature or Horizon HTTP response is not verified settlement.
- Resume a saved attempt after reload, check its original transaction hash, and retry only the identical signed envelope when still valid. Verified status requires independently retrieved matching transaction and operation evidence.
- View a local Testnet receipt only after independent payment verification. Copy a shareable text version with shortened displayed wallet addresses and an explicit warning that its full transaction hash remains linkable on-chain.
- Browse responsive MDX documentation with navigation and search.
Wallet session state and drafts stay in memory and clear on page reload. A signed payment attempt is stored in this browser until its ledger result is resolved and you clear it. Disconnect resets the local wallet session; extension permissions remain managed in the wallet.
Evidence from the deployed flow
On 2026-12-04, a user reviewed and signed a native-XLM payment in the wallet, then separately submitted it through Feyo. Stellar Testnet Horizon reports the transaction as successful, and its payment operation matches the intended source, destination, and exact 0.1000000 XLM amount. The user reported Verified · Testnet in Feyo. This is one real-wallet Testnet smoke test, with public ledger evidence; it does not establish issued-asset execution, broad failure-path coverage, an independent security review, or Mainnet readiness. The implementation is in PR #50; the merged-main CI run passed.
Feature status
| Area |
Status |
Scope |
| Testnet workspace and wallet connection |
Implemented |
Public address access; unsupported networks rejected |
| Account balances and payment drafts |
Implemented |
Read-only balances; validated session-only drafts with select and clear (PR #40); drafts themselves never send funds |
| Recipient account and asset readiness |
Implemented |
Deployed read-only Testnet account/trustline preflight (PR #33); observations, not payment guarantees |
| Unsigned XLM payment preview |
Implemented |
Deployed (PR #35): builds and decodes an unsigned native-XLM Testnet transaction for explicit review |
| Wallet signing authorization |
Implemented |
Explicit Freighter approval of a reviewed native-XLM Testnet envelope |
| Controlled Testnet submission |
Deployed; native-XLM smoke test passed |
Signed envelope persisted before a separate submit click; exact-hash recovery and independent ledger verification; one genuine 0.1 XLM Testnet transfer observed on 2026-12-04 |
| Testnet transaction verification |
Implemented |
Deployed read-only exact-match lookup UI; independent of signing and submission |
| Verified Testnet receipts |
Implemented |
Local evidence-backed receipt and user-controlled redacted copy; no server storage or proof of off-chain delivery |
| MDX docs, search, and CI checks |
Implemented |
Developer documentation and automated validation |
| Authorization model and execution contracts |
In progress |
Product and interface design, not an execution service |
| Stellar transaction lifecycle |
In progress |
Native-XLM preparation, signing, submission, verification, and local verified receipts are implemented; issued-asset execution remains unimplemented |
| Public payment API and MCP payment tools |
Planned |
Developer and agent integrations |
| Nigerian bank payouts |
Planned |
Requires regulated providers and reviewed integrations |
Local setup
Requires Git, Node.js 22.13 or newer, and npm. The locked Stellar SDK requires Node.js 22.12+, and the complete locked dependency graph is supported on Node.js 22.13+. CI and .nvmrc use Node.js 22.23.3. Use npm ci to install the versions recorded in the lockfile.
git clone https://github.com/Feyo-Protocol/feyo.git
cd feyo
npm ci
npm run dev
Open the Testnet workspace or documentation. No environment variables, API keys, or database setup are required for the current workspace. Wallet connection requires the browser extension; balance reads and transaction verification require internet access to Stellar Testnet Horizon.
- Install the browser extension from the official Varial website and create a dedicated test account in the wallet.
- In the wallet’s network settings or network selector, select Testnet (sometimes labeled Test Net). Feyo requires the passphrase
Test SDF Network ; September 2015 and rejects Mainnet connections.
- Fund the account with test XLM using Stellar Friendbot: open
https://friendbot.stellar.org/?addr=YOUR_PUBLIC_ADDRESS, replacing YOUR_PUBLIC_ADDRESS with your wallet’s G... public address. Test assets have no monetary value; never enter a secret key or recovery phrase into Feyo or Friendbot.
- Open the local workspace, select Connect Freighter, and approve address access in the extension. The current UI and
@stellar/freighter-api integration retain the Freighter name.
- Confirm that public balances load, then enter a recipient public address and amount to create a local draft. An unfunded account shows Account not funded; fund it and refresh balances. A draft does not authorize or send a payment.
- Build an XLM preview, inspect its full destination, amount, fee and expiry, confirm review, and approve the exact envelope in Freighter. The app saves the signed attempt in this browser before it offers submission.
- Choose Submit signed payment separately. If the result is uncertain, use Check exact hash; an explicit retry sends only the same saved signed envelope while it remains valid. Clear the local attempt only after independent verification, a confirmed ledger failure or evidence that the envelope expired without appearing in the ledger. Use a dedicated test account and a small Testnet amount.
Testing and builds
Run the same checks used by the repository CI, followed by a whitespace check:
npm run lint
npm run docs:check
npm run docs:search:check
npm test
npm run test:coverage # Optional coverage report
npx next typegen
npx tsc --noEmit
npm run build
npm run test:browser:install
npm run test:browser
git diff --check
The default suite is deterministic and makes no live Horizon calls. An opt-in observation check can verify a genuine public Testnet payment by setting FEYO_LIVE_TESTNET_VERIFY=1 plus FEYO_TESTNET_TRANSACTION_HASH, FEYO_TESTNET_SOURCE, FEYO_TESTNET_DESTINATION, and FEYO_TESTNET_AMOUNT, then running npm run test:live:testnet. For an issued asset, also set FEYO_TESTNET_ASSET_TYPE=issued, FEYO_TESTNET_ASSET_CODE, and FEYO_TESTNET_ASSET_ISSUER. These values are public ledger data; never provide a secret key or recovery phrase.
The real-wallet Testnet smoke checklist records the evidence required for payment claims. One native-XLM transfer was verified against independent Testnet ledger evidence on 2026-12-04. The opt-in live check also builds a local receipt from that public evidence; this does not establish Mainnet readiness or cover every wallet/browser failure path.
Tests use Node’s built-in runner, including server-rendered React components, plus a locked Playwright browser runner. They cover wallet behavior, balance handling, independent payment verification, payment intent validation, payment status rendering, SEO/robots/sitemap policies, presentation components, documentation, keyboard navigation, verification-form accessibility, mobile navigation, cancellation, and overflow. No live wallet, network, credentials, or funds are needed for CI; Horizon and wallet behavior use deterministic injected fixtures. Run the browser install once after npm ci, then run browser tests after the production build. To serve the production build locally, run npm start after npm run build.
Public URL, sitemap, and social previews
Set NEXT_PUBLIC_SITE_URL to your actual HTTPS origin when deploying publicly (for example, https://your-own-host.example). Provide an origin only, with no path, query string, credentials, or guessed production domain. This configures absolute metadata, canonical URLs, and the sitemap.
If the variable is missing or invalid, the metadata base falls back to http://localhost:3000 only for local development and /robots.txt disallows indexing. Preview deployments (VERCEL_ENV=preview) are also non-indexable. Once the actual HTTPS origin is configured, /sitemap.xml lists public landing and documentation pages; the Testnet-only /app workspace is excluded from the sitemap, blocked by robots, and marked noindex.
The generated /opengraph-image is a lightweight branded social image that describes the Testnet balance viewer and local payment drafts; it does not advertise Mainnet settlement or bank payouts. Run npm test for offline SEO policy regression tests.
Architecture and repository layout
The application uses Next.js App Router, React, TypeScript, Tailwind CSS, and MDX. The browser workspace connects through an isolated wallet adapter for public account and network access, fetches account data from Testnet Horizon, validates drafts locally, and submits a reviewed native-XLM envelope directly to Testnet Horizon after wallet authorization. There is no deployed payment backend in this repository.
src/app/app/ Testnet workspace UI
src/app/docs/ MDX pages, docs layout, and search
src/components/ Shared UI, wallet connection, and payment status
src/wallet/ Testnet wallet connection and explicit signing adapter
src/lib/stellar/ Testnet identity, balances, recipient readiness, and payment verification
src/lib/payments/ Exact-decimal amounts and payment intent validation
src/mdx-components.tsx Shared MDX component mapping
tests/ Unit and component tests
scripts/ Documentation link and search-index checks
.github/ CI workflows and contribution templates
Authorization, signing, submission, and settlement verification are separate design boundaries, described in the architecture documentation.
Long-term project planning: Living engineering roadmap · Architecture decisions · Maintainer playbook · Current project handoff.
Feyo is maintained independently of any external rewards cycle. The product roadmap is flexible and guided by safety, user needs and ecosystem feedback.
Documentation and roadmap
These links open the MDX sources on GitHub; run the app to browse the rendered documentation at /docs.
The roadmap moves from the current Testnet foundation toward permissioned execution, verifiable transaction status, developer and agent interfaces, and provider-backed payouts. Future work has no committed release dates; consult the roadmap and issues for scope and progress.
Contributing
Developers of all experience levels are welcome. Start with CONTRIBUTING.md and the Code of Conduct, then browse open issues or report a reproducible bug. Discuss large or architectural changes in an issue before implementation.
Fork the repository, create a focused branch, and make a small, reviewable change. Run the checks above and open a pull request explaining the problem, resulting behavior, and verification. Include tests for behavior changes and keep documentation clear about implemented and planned capabilities.
Security and non-custodial design
Feyo’s wallet adapter requests public account access and, only after explicit review and a separate user action, a Testnet signature through Freighter. The application never requests or stores private keys or recovery phrases. It saves the signed envelope and original transaction hash in this browser before a separate submission action. Signed XDR is a bearer authorization until expiry: use a private browser profile, keep the device secure, and clear resolved attempts. Public account addresses and hashes are sent to Testnet Horizon for account checks, submission and independent evidence.
The design keeps authorization, wallet signing, execution, and verification separate. Asset identity includes the issuer, amounts use exact decimal handling, and a local draft, signature, or reported submission must never be treated as settlement evidence. Verified UI state requires opaque evidence produced by the Testnet verifier; copying or deserializing verification-shaped flags does not preserve that trust. Future payment integrations require explicit permissions, review, and tests.
Report vulnerabilities privately using the process in SECURITY.md; do not include credentials or user data in public issues.
License
Feyo is licensed under Apache-2.0.
评论