Appearance
Choosing a Backend for Your WeWeb App
WeWeb is primarily a frontend builder, so it needs to connect to external backend services to store and manage data. Before diving into working with data, it's important to understand the backend options available to you.
NEW TO BACKENDS?
If you're new to web development and don't understand what a backend is or how APIs and databases work together, start with our APIs and Databases primer. It covers the fundamentals of how a frontend connects to data storage through APIs.
Understanding Backend Services
A backend service provides several essential functions for your application:
- Data storage - Databases to store your application data
- Business logic - Processing and manipulating data
- Authentication - Managing user accounts and access
- API endpoints - Interfaces for your frontend to request data
In WeWeb, you connect to these services through data source plugins, which provide a seamless interface between your application and the backend service.
Common Backend Options
WeWeb supports several backend services through its plugin system. Let's explore the most popular options:
REST API
Best for: Connecting to any existing API and quick prototyping
The REST API plugin is the most flexible option, allowing you to connect to virtually any API:
- Pros: Works with any REST API, great for custom backends, simple to use
- Cons: Less integrated experience, may require more manual configuration
- Use case: When you already have an existing API or need to connect to third-party services that WeWeb doesn't have a plugin for
Learn more about the REST API plugin →
Supabase
Best for: Applications needing a relational database with SQL capabilities
Supabase provides a complete backend solution with PostgreSQL database and authentication:
- Pros: Powerful SQL database capabilities, built-in authentication, realtime capabilities
- Cons: Requires SQL knowledge, more developer-oriented
- Use case: Projects where you need relational data and have team members comfortable with SQL
Learn more about the Supabase plugin →
Xano
Best for: Powerful no-code backend development with scalable infrastructure
Xano is a sophisticated no-code backend builder with enterprise-grade capabilities:
- Pros: Visual API builder, powerful business logic capabilities, highly scalable, no SQL knowledge required
- Cons: Subscription-based pricing may be higher for some use cases
- Use case: Complex applications where you need powerful backend logic but prefer a visual interface over writing code
Learn more about the Xano plugin →
Airtable
Best for: Simple applications or quick prototypes
Airtable is a spreadsheet-database hybrid that's easy to use:
- Pros: Easy to set up, familiar spreadsheet interface, visual data management
- Cons: Limited scaling capabilities, API rate limits
- Use case: Simple applications, prototypes, or projects where visual data management is important
Learn more about the Airtable plugin →
Choosing the Right Backend
When selecting a backend for your WeWeb project, consider these factors:
1. Project Complexity
- Simple projects (personal websites, landing pages, basic forms) - Airtable or a simple REST API
- Medium complexity (business apps, member portals) - Xano or Supabase
- Complex applications (multi-user systems, marketplaces) - Both Xano and Supabase are capable; the choice depends more on your team's skills and preferences
2. Technical Experience
- No coding experience - Airtable for simple needs, Xano for more complex requirements
- Comfortable with SQL - Supabase gives you direct database access
- Prefer visual development - Xano offers powerful capabilities without requiring SQL knowledge
- Development team available - Any option, depending on your team's preferences
3. Data Structure Needs
- Simple data storage - Airtable
- Relational data with SQL control - Supabase
- Complex data operations without SQL - Xano
- Custom data requirements - Either Xano or Supabase, depending on your team's skills
4. Authentication Requirements
If your app needs user accounts and authentication:
- Simple auth - All options support basic authentication
- Advanced auth with visual setup - Xano Auth
- Advanced auth with more direct control - Supabase Auth or Auth0
5. Scalability Considerations
- Small user base (dozens/hundreds) - Any option
- Medium to large scale (thousands to millions) - Both Xano and Supabase can handle significant scale, with different pricing models
6. Budget and Pricing Model
- Hobby project or startup - Supabase offers a generous free tier to start
- Business with predictable needs - Xano's pricing is subscription-based
- Variable usage patterns - Supabase's usage-based pricing may be advantageous
Setting Up Your First Backend
Let's take a quick look at how to get started with two popular options:
Quick Start with Supabase
- Create a Supabase account at supabase.com
- Set up a new project
- Create tables for your data
- In WeWeb, add the Supabase plugin
- Connect to your Supabase project
- Create collections to fetch your data
Quick Start with Xano
- Create a Xano account at xano.com
- Create a new workspace
- Set up your database tables
- Create API endpoints
- In WeWeb, add the Xano plugin
- Connect to your Xano workspace
- Create collections to fetch your data
Backend Security Considerations
Regardless of which backend you choose, always consider these security aspects:
- Authentication - Ensure proper user authentication before allowing data access
- Authorization - Implement proper access controls (Row-Level Security in Supabase or Access Control in Xano)
- Data validation - Validate data on both frontend and backend
Making the Decision
Still not sure which backend to choose? Here's a simple decision flow:
- If you're building a simple prototype or are new to web development → Airtable
- If you prefer a no-code solution with visual development → Xano
- If you're comfortable with SQL and want direct database control → Supabase
- If you have existing APIs → REST API
Remember that both Xano and Supabase are capable of handling complex, scalable applications. The choice often comes down to your team's technical expertise, workflow preferences, and budget considerations.
UNLIMITED POSSIBILITIES
The backend options discussed here are recommendations based on WeWeb's existing data source plugins. It's important to note that you can use virtually any backend system with WeWeb as long as it provides an API.
The REST API plugin serves as a universal connector, allowing you to integrate with custom or proprietary backends, traditional server architectures, or any other service that exposes API endpoints. This flexibility means you're never limited to just the backends that have dedicated plugins.
CONTINUE LEARNING
Now that you understand the different backend options, learn how to work with data from your chosen backend: