Skip to content
 
 

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web3 Shell

A modern, open-source Web3 portal for developers. Secure crypto payments, AI-powered blogging, and mobile-ready deployment.


Features

Crypto Payments

Accept cryptocurrency deposits via NOWPayments. Support for 50+ currencies including BTC, ETH, USDT, and more. Webhook-verified transactions with idempotent balance crediting.

AI-Powered Blog

Write and publish blog posts with AI assistance. Uses a BYOK (Bring Your Own Key) model - your API keys never touch our servers. Supports AiAssist.net integration with streaming responses.

Secure Authentication

Cookie-based session management with bcrypt password hashing. Session rotation on login prevents fixation attacks. HttpOnly, Secure, SameSite=Strict cookies for maximum protection.

Developer Tools

Generate app keys for API access. Manage multiple applications from a single dashboard. Full admin panel for content and user management.

Mobile Ready

Built with Capacitor for iOS and Android deployment. Secure storage integration uses iOS Keychain and Android Keystore for sensitive data.


Tech Stack

Layer Technology
Frontend React 18, TypeScript, Vite
Styling Tailwind CSS, shadcn/ui, Framer Motion
Backend Express.js, TypeScript
Database Redis
Auth express-session, bcrypt, connect-redis
Payments NOWPayments API
Mobile Capacitor

Quick Start

Prerequisites

  • Node.js 22+
  • Redis

Installation

# Clone the repository
git clone https://github.com/ethgr0wth/web3-shell-starter.git
cd web3-shell-starter

# Install dependencies
npm ci

# Set up environment
cp .env.example .env
# Edit .env with your secrets

# Start Redis
redis-server

# Run development server
npm run dev

Visit http://localhost:5000

Environment Variables

Variable Required Description
SESSION_SECRET Yes Session encryption key (32+ chars)
NOWPAYMENTS_API_KEY For payments NOWPayments API key
NOWPAYMENTS_IPN_SECRET For payments Verifies NOWPayments webhook signatures
REDIS_URL No Redis connection string

Project Structure

web3-shell/
├── client/                 # React frontend
│   └── src/
│       ├── components/     # UI components
│       ├── lib/            # Utilities and contexts
│       └── pages/          # Route pages
├── server/                 # Express backend
│   ├── routes.ts           # API endpoints
│   ├── storage.ts          # Redis data layer
│   └── nowpayments.ts      # Payment integration
├── shared/                 # Shared types
│   └── schema.ts           # Zod schemas
└── scripts/                # Utility scripts

API Overview

Authentication

Endpoint Method Description
/api/auth/register POST Create account
/api/auth/login POST Login
/api/auth/logout POST Logout
/api/auth/me GET Get current user

Blog

Endpoint Method Description
/api/blog/posts GET List published posts
/api/blog/posts/:slug GET Get post by slug
/api/blog/posts POST Create post
/api/blog/posts/:id PATCH Update post

Payments

Endpoint Method Description
/api/payments/create POST Create payment invoice
/api/payments/:id/status GET Check payment status

See AGENTS.md for complete API documentation.


Deployment

Replit

  1. Import repository to Replit
  2. Add secrets in the Secrets tab
  3. Click Run

Production Build

npm run build
NODE_ENV=production node dist/index.cjs

Mobile Apps

# iOS
npx cap add ios
npx cap sync ios
npx cap open ios

# Android
npx cap add android
npx cap sync android
npx cap open android

See DEPLOYMENT.md for detailed instructions.


Security

  • Passwords hashed with bcrypt (12 rounds)
  • Session rotation on login
  • HMAC-verified payment webhooks
  • Idempotent transaction processing
  • BYOK model - AI keys stored client-side only
  • Capacitor Secure Storage for mobile

Please report vulnerabilities privately as described in SECURITY.md.


Documentation

Document Description
DEPLOYMENT.md Production deployment guide
AGENTS.md Technical reference for AI agents
FORK.md Guide for forking the project
CONTRIBUTING.md Contribution guidelines

Contributing

We welcome contributions! Please read CONTRIBUTING.md for guidelines.

# Create a feature branch
git checkout -b feature/your-feature

# Make changes and commit
git commit -m "Add your feature"

# Push and create PR
git push origin feature/your-feature

License

MIT License - see LICENSE for details.


Acknowledgments


Built with care for the Web3 developer community.

About

A security-focused Web3 developer portal with crypto payments, AI-assisted publishing, and mobile support.

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages