A modern, decentralized insurance platform built on the Stellar ecosystem.
Stellar Insured empowers individuals and organizations to purchase insurance coverage, submit claims, participate in governance, and manage policies through a transparent, blockchain-powered experience. By leveraging Stellar and Soroban smart contracts, the platform removes traditional intermediaries while improving transparency, security, and accessibility.
Traditional insurance systems often suffer from:
- Limited transparency
- Slow claims processing
- High operational overhead
- Centralized decision-making
- Restricted access to governance
Stellar Insured addresses these challenges through a decentralized architecture where policyholders can interact directly with smart contracts and governance mechanisms.
The frontend serves as the primary user interface for:
- Policyholders managing insurance coverage
- Claimants submitting and tracking claims
- DAO members participating in governance
- Contributors interacting with protocol services
- Browse available insurance products
- Purchase policies directly through connected wallets
- View active and expired coverage
- Track policy details and premium information
- Submit insurance claims digitally
- Upload supporting evidence and documentation
- Monitor claim review progress
- Receive claim status updates in real time
- Create governance proposals
- Vote on protocol decisions
- Monitor proposal activity
- Participate in community-driven insurance management
- Non-custodial authentication
- Stellar wallet integration
- Secure transaction signing
- No usernames or passwords required
- Live policy updates
- Instant claim status synchronization
- Governance voting updates
- Blockchain event monitoring
- WCAG-focused accessibility improvements
- Keyboard navigation support
- Responsive mobile-first design
- Screen reader compatibility
- Dark and light theme support
ββββββββββββββββββββββββββββ
β Frontend (Next.js) β
βββββββββββββββ¬βββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββ
β Backend Services β
β REST APIs β
β Authentication β
β Claims Processing β
βββββββββββββββ¬βββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββ
β Soroban Smart Contracts β
β Policy Management β
β Governance β
β Claims Settlement β
βββββββββββββββ¬βββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββ
β Stellar Blockchain β
ββββββββββββββββββββββββββββ
- Next.js (App Router)
- React
- TypeScript
- Tailwind CSS
- ShadCN UI
- React Hooks
- Context API
- Custom Data Fetching Hooks
- Stellar Wallet Kit
- Soroban Smart Contracts
- Stellar Network APIs
- ESLint
- Prettier
- GitHub Actions
- Vercel Deployment
.
βββ public/
β βββ images/
β βββ icons/
β βββ assets/
β
βββ src/
β βββ app/ # Next.js App Router pages
β βββ components/ # Reusable UI components
β βββ data/ # Static data & mock data
β βββ hooks/ # Custom React hooks
β βββ lib/ # Utilities & helpers
β βββ styles/ # Global styles
β βββ types/ # Shared TypeScript types
β βββ context/ # Context providers
β
βββ middleware.ts
βββ README.md
βββ CONTRIBUTING.md
βββ components.json
βββ next.config.ts
βββ package.jsonBefore running the project locally, ensure you have:
- Node.js 18+
- npm, pnpm, or yarn
- Git
- A Stellar wallet (recommended: Freighter)
Clone the repository:
git clone https://github.com/steller-secure/Stellar-Insured-Frontend.git
cd Stellar-Insured-FrontendInstall dependencies:
npm installCreate environment variables:
cp .env.example .env.localStart the development server:
npm run devOpen:
http://localhost:3000
Create a .env.local file:
NEXT_PUBLIC_API_BASE_URL=http://localhost:4000
NEXT_PUBLIC_STELLAR_NETWORK=testnet
NEXT_PUBLIC_STELLAR_RPC_URL=https://soroban-testnet.stellar.org
NEXT_PUBLIC_APP_NAME=Stellar Insured| Variable | Description |
|---|---|
| NEXT_PUBLIC_API_BASE_URL | Backend API URL |
| NEXT_PUBLIC_STELLAR_NETWORK | Stellar network (testnet/mainnet) |
| NEXT_PUBLIC_STELLAR_RPC_URL | Soroban RPC endpoint |
| NEXT_PUBLIC_APP_NAME | Application display name |
This project maintains comprehensive automated testing coverage.
npm testnpm run test:coveragenpm run test:watchnpm run buildBuild system: This project uses Turbopack, the default bundler in Next.js 16, for both
next devandnext build. No custom webpack configuration is required β production chunk splitting is handled automatically by Turbopack. Turbopack is opted into explicitly via theturbopack: {}block innext.config.ts. If you ever need to fall back to webpack, add the--webpackflag to thedev/buildscripts inpackage.json.
npm run lint- Unit Tests
- Integration Tests
- User Flow Validation
- Accessibility Testing
- Component Testing
Target Coverage: 80%+
GitHub Actions automatically handles:
- Dependency installation
- Type checking
- Linting
- Unit testing
- Build verification
Triggered on:
develop branch
Triggered on:
main branch
Deployment Platform:
Vercel
Security is a core priority of Stellar Insured.
- Wallet-based authentication
- Non-custodial user accounts
- Environment variable protection
- Secure API communication
- Smart contract verification
- Input validation and sanitization
- Never commit
.envfiles - Validate all user inputs
- Review smart contract interactions carefully
- Keep dependencies updated
The application follows modern accessibility standards.
Implemented improvements include:
- ARIA labels
- Keyboard navigation
- Screen reader support
- Focus management
- Semantic HTML
- Responsive design
Target Standard:
WCAG 2.1 AA
We welcome community contributions.
- Fork the repository
- Create a feature branch
git checkout -b feature/my-feature- Make changes
- Run tests
npm run lint
npm run test
npm run build- Commit using conventional commits
feat: add claim status notifications- Push changes
- Open a Pull Request
For detailed contribution guidelines see:
CONTRIBUTING.md
- Stellar Developer Docs
- Soroban Documentation
- Stellar Wallet Kit
- Next.js Documentation
- React Documentation
- Tailwind CSS Documentation
- Policy marketplace
- Wallet authentication
- Claims submission
- DAO governance
- Voting mechanisms
- Proposal management
- Advanced analytics
- Risk scoring
- On-chain claim automation
- Mobile application
- Multi-chain integrations
- Institutional insurance pools
Licensed under the MIT License.
See the LICENSE file for details.
Built with β€οΈ on Stellar to make insurance more transparent, accessible, and community-driven.