Introduction
Turn your ideas into full stack applications with AI-powered code generation.
What is ByteMason?
ByteMason is an intelligent development tool that transforms natural language descriptions into complete full stack web applications. It’s designed for both beginners and experienced developers who want to:
- Build full-stack Next.js applications quickly
- Automate repetitive development tasks
Prerequisites
- Python 3.10 or higher
- Anthropic API key
- OpenAI API key
Quick Start
We will be launching bytemason on pip soon as a package, for now you can use the repo.
Install ByteMason
git clone https://github.com/lumiralabs/bytemasonCreate a .env file in root and add the following keys and model informations.
cp .env.example .env# .env file
# API keys
ANTHROPIC_API_KEY=your_key
OPENAI_API_KEY=your_key
# Default models (change them according to your requirements)
PROJECT_BUILDER_MODEL=anthropic/claude-3-5-sonnet-20241022
CODE_AGENT_MODEL=anthropic/claude-3-5-sonnet-20241022
SUPABASE_AGENT_MODEL=anthropic/claude-3-5-sonnet-20241022
REPAIR_AGENT_MODEL=gpt-4oCreate a virtual environment and download all the dependencies
pip install uv # If not installed
uv venv
source .venv/bin/activate # activate the environment
uv pip install -e .Create and generate your app
mason new <app-name>
cd <app-name>
mason plan <prompt>
mason db setup ./spec/specification.json
mason db push
mason code ./spec/specification.json
npm run devHow It Works
ByteMason uses a three-phase approach:
- Understanding and planning - AI analyzes your requirements and generates detailed technical specifications.
- Building - Creates Database schemas, frontend nad backend of your application
- Testing - Tests and fixes all the compile time errors.
Core Features
AI-Powered Development
- Natural language to code conversion
- Automatic error detection and fixing
- Smart code generation and repair
Modern Stack
- Next.js 14 with App Router
- Supabase as Database and Auth provider
- TypeScript for type safety
- shadcn/ui components
Developer Experience
- Clean, maintainable code
- Automated testing setup
- Type-safe database queries
- Modern development patterns
Documentation Structure
Guides
- Building Your First App - Step-by-step tutorial
- Database Management - Working with Supabase
- Local Development - Contributing to ByteMason
Reference
- AI architecture - How ByteMason AI works
- API Reference - API documentation
Example Applications
ByteMason can help you build:
Web Applications
- Todo apps
- Admin dashboards
- Booking systems
Features
- User authentication
- Database CRUD operations
- Responsive UI components
- API integrations
Local Development
Want to contribute or modify ByteMason? It’s easy to get started:
# Clone and setup
git clone https://github.com/lumiralabs/bytemason.git
cd bytemason
# Create virtual environment (Python 3.10 or higher)
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
# Install dependencies
pip install -e .
# Set environment variables
cp .env.example .env
# Add your API keys and model informations to the .envBest Practices
-
Writing Effective Prompts
# Be specific about features mason plan "Build a blog with categories, tags, comments, and email notifications for new posts" -
Working with Generated Code
- Review generated files
- Make incremental changes
- Use version control
-
Database Management
- Review migrations
- Test data relationships
- Validate security rules
Community and Support
Contributing
We welcome contributions! See our Contributing Guide to get started.