Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GlossaryNovember 22, 20263 min read

What are frontend and backend?

Every app splits into what runs on your device and what runs on a server. Knowing which side a feature belongs on decides whether it is fast, and whether it is safe.

Startbase Team
Editorial ink illustration of a restaurant pass-through window with a plated dish, the order bell in ember orange

Key takeaways

  • The frontend runs on the user's device and handles screens and interaction; the backend runs on servers and handles data, rules and secrets.
  • Anything in the frontend can be read and changed by users, so permissions, prices and keys must be checked on the backend.
  • Not every app needs a backend: a portfolio or a single-player game can be frontend only until it needs accounts or shared data.

Split any app in two and you get the frontend, which runs on the user's phone or browser (screens, buttons, animations, everything you see and touch), and the backend, which runs on servers you control and stores data, enforces rules and talks to other services. When you tap "Book," the frontend shows the confirmation; the backend checks the slot is still free and saves the booking.

An everyday example: the restaurant

The dining room is the frontend: menus, tables, lighting, the waiter taking your order. The kitchen is the backend: the pantry (database), the recipes (business logic), the chef deciding whether a dish can be made. Diners never walk into the kitchen; they place orders through the waiter, who is the API carrying requests between the two. A beautiful dining room with no kitchen serves nothing. A great kitchen with no dining room has no customers.

What lives where, in a real app

Take a small online course platform:

  • Frontend: course pages, the video player, progress bars, the checkout form, dark mode, form validation that shows "email looks wrong" as you type.
  • Backend: the list of courses and lessons, who bought what, marking a lesson complete, processing the payment, sending the receipt email, deciding whether this user may watch lesson 7.
  • Both, on purpose: validation. The frontend checks the email format for a friendly message; the backend checks it again because the frontend can be bypassed.

The line you must not blur

Everything in the frontend ships to the user's device, which means the user can read it and change it. A course app that decides "paid user, show the video" only in the frontend can be unlocked by anyone with developer tools. A shop that sends the price from the browser can be told a $90 jacket costs $1. The rule from the Startbase security practices page: the frontend is always public; server-side functions are trusted; the database enforces access with row-level security. Secrets, prices, permissions and anything involving money belong behind that line.

Why it matters when building with Startbase

In a Startbase project, the frontend is the website (Vite and React) or mobile app (Expo and React Native) the agent builds in your workspace. The backend is Startbase Cloud, a managed Supabase backend you turn on when the app needs it: database, auth, storage, edge functions, secrets, emails and scheduled jobs. You do not have to assign features to sides yourself, but saying where a rule must hold gets you a safer first build.

Build a course platform. Lessons are visible to everyone as titles, but videos and downloads only play for users who bought that course. Check purchases on the backend and in the database, never only in the interface. Prices come from the database, not the browser. Mark lessons complete on the server so progress follows the user across devices.

The long versions: what is a backend, what is an API and what is full-stack.

Common confusions

  • "Frontend" is not just design. It includes real logic: routing, state, offline behavior, animations and input handling.
  • A backend is not always a server you run. Managed services and serverless functions are backends too; someone else just keeps the machines running.
  • Frontend only is a valid choice. A landing page, a calculator or a single-player browser game can stay frontend only until it needs accounts, saved data shared across devices or leaderboards.

Frequently asked questions

Is the database part of the backend?

Yes. The database is where the backend keeps its data. Some people list it separately as the data layer, but it sits behind the same line: users reach it only through rules you set.

Which is harder, frontend or backend?

They are hard in different ways. Frontend difficulty is about many devices, screen sizes and interactions; backend difficulty is about correctness, security and data that must never be lost.

On this page

  • An everyday example: the restaurant
  • What lives where, in a real app
  • The line you must not blur
  • Why it matters when building with Startbase
  • Common confusions

Keep reading

More in Glossary
Editorial ink illustration of a hand-cranked music box drum plucking a metal comb, the crank handle in ember orange
GlossaryNovember 22, 2026

What is a game loop?

Every real-time game runs one repeating cycle: read input, update the world, draw it. Here is what that cycle looks like and why it decides how your game feels.

3 min read
Editorial ink illustration of a brass stopwatch beside a small wind-up toy car, the second hand in ember orange
GlossaryNovember 22, 2026

What is delta time?

Delta time is the number that keeps your game the same speed on every screen. Here is how to use it, where it breaks, and how to spot a game that forgot it.

3 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.