Skip to content

About

LiquiFact web app - invoice liquidity marketplace on Stellar (Next.js)

Resources

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

LiquiFact Frontend

Live

Web app for LiquiFact, the invoice liquidity network on Stellar. SMEs list unpaid invoices and get paid today; investors fund them through a Soroban escrow contract and earn yield when the debtor settles.

Part of the LiquiFact stack: frontend (this repo) · backend (Express API) · contracts (Soroban).

Pages

Route What it does
/ Landing page: product overview, live API stats, escrow contract
/marketplace Invoices from the API with status filters
/marketplace/[id] Invoice detail and funding form
/submit Submit an invoice for financing
/docs Product overview, architecture, usage guide, API and contract reference

The production app can be installed from the browser. Previously viewed invoices remain available offline with a saved-data timestamp; bundled demo data is used only when no cached response is available. Unvisited pages show an offline screen.

npm run build prepares the versioned worker policy/config before building Next. The worker registers only in production on HTTPS or localhost; use npm start to verify offline behavior. npm run test:ui runs the PWA keyboard/status tests. Updates activate only after the user selects Reload. Funding, escrow, wallet, and RPC traffic are not cached. Browser evidence.

Development

Requires Node.js 20.9+.

npm ci
npm run dev      # http://localhost:3000
npm test         # unit tests (node:test)
npm run test:ui  # funding component tests (Vitest)
npm run build

Configuration

All variables are optional (see .env.local.example):

Variable Default
NEXT_PUBLIC_API_URL https://liquifact-backend.vercel.app
NEXT_PUBLIC_CONTRACT_ID CDQCKR2YU6IVQ4GYPBMXBPZ4FGFQB5H25AI7ZSETHS2CZ5ZRCWQDSO6P
NEXT_PUBLIC_CONTRACT_INVOICE_ID INV_0001
NEXT_PUBLIC_ESCROW_REGISTRY (empty)
NEXT_PUBLIC_STELLAR_NETWORK testnet
NEXT_PUBLIC_STELLAR_RPC_URL https://soroban-testnet.stellar.org
NEXT_PUBLIC_SITE_URL https://liquifact-frontend.vercel.app

Deployment

Deployed on Vercel (vercel deploy --prod). CI (.github/workflows/ci.yml) runs npm ci, npm test and npm run build on node 20 for every push to main and every pull request.

License

MIT — see LICENSE.

About

LiquiFact web app - invoice liquidity marketplace on Stellar (Next.js)

Resources

Contributing

Security policy

Accessibility

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages