When you build an app, not everything can safely or efficiently happen on the user’s device. Some tasks need extra security, reliability, or power. That is where server functions (sometimes called edge functions) come in. Server functions handle important work behind the scenes, like talking to your database, checking permissions, or processing payments. Instead of running this logic directly in a user’s browser or mobile app, where it could be slower or less secure, the function runs on a server. This keeps sensitive information safe and ensures your app behaves the same way for every user. Think of them as trusted helpers that live outside the app, but make sure everything runs smoothly. By using server functions, you can build apps that are faster, safer, and easier to maintain. Watch the video below for an introduction to supercharging your app with APIs and server functions:Documentation Index
Fetch the complete documentation index at: https://support.bolt.new/llms.txt
Use this file to discover all available pages before exploring further.
View Server Functions
To open the Server Functions settings for your project’s database, follow these steps:
- Log in to your Bolt project.
- Click the database icon in the top center of your screen.
- Click Server Functions in the left menu.
- Authenticated or public HTTP endpoints that need low latency.
- Webhook receivers (Stripe, GitHub, etc.).
- On-demand image or Open Graph generation.
- Small AI inference tasks or orchestrating calls to external LLM APIs (like OpenAI).
- Sending transactional emails.
- Building messaging bots for Slack, Discord, etc.
View logs
Bolt allows you to view logs for your server functions. To do so, scroll to the right in a function’s row, then click View Logs, as shown in the screenshot below:
