A ready-to-deploy hackathon template using FastHTML and Railway with integrated AI capabilities.
-
Setup Services:
cp .env.example .env # Edit .env with your service credentials: # - Supabase (database & auth) # - Neo4j (graph database) # - Anthropic (AI/LLM) uv run python setup_database.py # Get SQL to run in Supabase dashboard
-
Local Development:
uv sync source .venv/bin/activate python main.pyVisit http://localhost:5001
-
Deploy to Railway:
railway login railway init # Or railway link for existing projects railway up # Deploy railway open # View deployed app
Or connect GitHub repository to Railway dashboard for auto-deploy
main.py- Main application with auth, routes, and service dashboardauth.py- Authentication functions and session managementdatabase.py- Database helper class for Supabase operationssupabase_config.py- Supabase client configurationneo4j_config.py- Neo4j client configuration and connection testingllm.py- LangChain integration with Anthropic Claude for AI featuressetup_database.py- Database setup script.env.example- Environment variables template (Supabase, Neo4j, Anthropic)pyproject.toml- Project dependencies (managed by uv)nixpacks.toml- Railway build configuration for uvrailway.toml- Railway deployment configurationruntime.txt- Python runtime version
- 🚀 One-click demo login for hackathons
- 🔐 Supabase authentication (signup, login, logout)
- 📊 Multi-database integration with Supabase PostgreSQL + Neo4j graph database
- 🤖 AI/LLM integration with LangChain + Anthropic Claude
- 🎯 Session management with FastHTML
- ⚡ Protected routes with auth decorators
- 📈 Service health monitoring dashboard for all integrations
- 🔗 Graph database ready with Neo4j connection
- 🧠 LLM capabilities with structured chat and AI features
- 🛠️ Development-friendly with hot reload
Edit main.py to add your routes and features. The template includes:
- Authentication system ready to use with Supabase
- Database operations via
Databaseclass for PostgreSQL - Graph database operations via Neo4j client
- AI/LLM features via LangChain and Anthropic integration
- Session management built-in with FastHTML
- Service monitoring dashboard showing connection status
- Demo login for easy testing
Access /dashboard after login to see real-time status of:
- ✅ Supabase connection and authentication
- ✅ Neo4j graph database connection
- ✅ LLM/Anthropic API connection
Happy hacking! 🚀