Blink Ai App Builder Full Stack Ai App Builder Creating
Database Scalable, secure SQL database powered by Turso. Blink handles all setup — just describe your data. Overview Every Blink project includes a fully managed SQL database at no extra cost. You don't need to set anything up — just describe what data you want to store, and Blink creates the tables, writes the queries, and handles everything automatically. Your database is powered by Turso (a SQLite-compatible database) hosted on AWS edge infrastructure.
This means: - Fast globally: Data is replicated to edge locations for low-latency access worldwide - Scales automatically: Handles thousands of concurrent connections without configuration - Secure by default: Row-level security, encryption at rest, and isolated per project - Fully yours: Export your data anytime as CSV or JSON, no lock-in Quick Start Tell Blink what data you need: Blink automatically: - Creates the database (if it doesn't exist) - Creates the table with appropriate column types - Adds essential columns: id ,created_at ,updated_at ,user_id - Generates the UI code for forms and displays - Configures row-level security so users only see their own data You don't need to learn SQL, write migrations, or configure anything.
But if you're familiar with databases, Blink generates standard SQL under the hood that you can view and customize. How Blink Manages Your Data When you describe data requirements in your prompts, Blink uses its blink_run_sql tool to interact with your database. This tool can: Create and modify tables: When you ask for new data structures, Blink generates CREATE TABLE statements with proper column types, constraints, and indexes.
Handle schema changes: When you ask to add a field or modify your data structure, Blink detects the existing schema and generates safe ALTER TABLE statements that won't lose data. Write optimized queries: Blink generates SELECT , INSERT , UPDATE , and DELETE queries with proper parameterization to prevent SQL injection. Set up relationships: When you describe related data (e.g., "comments belong to posts"), Blink creates foreign keys and joins automatically.
For example, if you say: Blink will: - Detect your existing tasks table schema - Generate ALTER TABLE tasks ADD COLUMN due_date TEXT - Execute the migration safely - Update your code to use the new field The Database Panel Access your database directly via the Database tab in the right panel. This gives you a visual interface to browse and manage your data. Browsing Tables The left sidebar shows all tables in your database. Click any table to see its contents.
You'll see the table schema (column names and types) and a paginated view of the data.
Viewing and Editing Data The main area displays your table data in a spreadsheet-like view: - Pagination: Choose how many rows to show (25, 50, 100, or 200) and navigate through pages - Search: Type in the search box to filter rows across all columns - Sort: Click any column header to sort by that column (click again to reverse) - Edit cells: Click any cell to modify its value directly - Select rows: Use the checkboxes to select multiple rows for bulk operations - Delete rows: Select rows and click the delete button, or delete individual rows via the row menu Adding Data Add a single row: Click the + button to add a new row.
Fill in the fields and save. Import from CSV: Click the Upload button (↑ icon) to import data from a CSV file: - Drop your CSV file or click to browse - Map CSV columns to table columns (Blink auto-maps when names match) - Review the preview - Click Import Generate a sample CSV: If you need a template, click "Generate Sample CSV" to download a file with the correct headers for your table.
Exporting Data Click the Download button (↓ icon) and choose your format: - CSV: Standard spreadsheet format, opens in Excel/Google Sheets - JSON: Array of objects, useful for developers and API integrations API Documentation Click the code icon (</> ) to see auto-generated API documentation for your table.
This shows: - The REST endpoint URL - Available operations (GET, POST, PUT, DELETE) - Code snippets for JavaScript/fetch and curl - Authentication requirements Creating Tables Basic Example Blink creates a table with these columns: The id , user_id , created_at , and updated_at columns are added automatically to every table. This ensures consistent IDs, proper ownership tracking for security, and audit trails. Tables with Relationships Blink creates a comments table with a post_id foreign key linking to the posts table.
When you query comments, you can join them with posts automatically. Tables with Specific Types For more control, describe the exact structure you need: Blink interprets these requirements and creates appropriate column types and constraints.
Querying Data Describe what data you want to see, and Blink generates the queries: Filtering Sorting Pagination Search Aggregations Data Import & Export Importing CSV Data For bulk data imports, use the Database panel's upload feature: - Open the Database tab - Select the table you want to import into - Click the Upload button (↑ icon) - Drag your CSV file or click to browse - Map columns: Blink tries to auto-match columns by name. Adjust any mismatches.
Preview the data to make sure it looks right - Click Import The import handles type conversion automatically. Dates are parsed, numbers are converted, and booleans are recognized. If you need a template to fill out, click Generate Sample CSV to download a file with the correct column headers.
You can also ask Blink to add import functionality to your app: Exporting Data To download your data: - Open the Database tab - Select the table - Click the Download button (↓ icon) - Choose CSV or JSON format The export includes all rows in the table. For filtered exports, you can ask Blink: Row-Level Security By default, Blink enables Row-Level Security (RLS) which ensures users can only see their own data. This is handled automatically through the user_id column.
When RLS is enabled: - Reads are filtered: SELECT * FROM posts becomesSELECT * FROM posts WHERE user_id = 'current_user_id' - Inserts are tagged: New rows automatically get the current user's ID in the user_id column - Updates/Deletes are restricted: Users can only modify rows they own Public Data Sometimes you want data to be visible to everyone. For example, a blog where anyone can read posts but only authors can edit: Configure this in Workspace Settings → Security → Table Rules. For more details, see the Security documentation.
It's fully compatible with SQLite syntax while adding features like: - Global replication across edge locations - Support for thousands of concurrent connections - Branching and time-travel (point-in-time recovery) Infrastructure SQL Compatibility Blink Database supports standard SQL including: - All DML operations: SELECT ,INSERT ,UPDATE ,DELETE - Schema operations: CREATE TABLE ,ALTER TABLE ,DROP TABLE - Clauses: WHERE ,JOIN ,GROUP BY ,ORDER BY ,LIMIT ,OFFSET - Aggregate functions: COUNT ,SUM ,AVG ,MIN ,MAX - Indexes, triggers, and views - JSON functions for working with JSON data - Full-text search capabilities Data Types SQLite (and LibSQL) uses a flexible type system: Storage Limits API Access Your database is accessible via a REST API, allowing external services or your own frontend code to interact with the data.
Endpoint: POST /api/v1/projects/{projectId}/databases/sql Authentication: Include your API key in the Authorization header. Use the publishable key for client-side code (respects RLS) or the secret key for server-side code (bypasses RLS). The Database panel's API Documentation tab (click the </> icon) provides ready-to-use code snippets. See Security → API Keys for more about authentication. Common Questions Can I write raw SQL? Yes. Blink generates standard SQL that you can view in the code tab.
You can also ask Blink to run specific SQL: For complex queries or migrations, describe what you need and Blink will generate the appropriate SQL. How do I backup my data? Automatic daily backups are included. For manual backups, export your tables as CSV or JSON from the Database panel. Can I connect external tools? Yes. Use the REST API with your API key. This works with Postman, curl, or any HTTP client. What if I need more storage? Upgrade to a higher plan for more storage.
If you need custom limits, contact support. Can I use multiple databases? Currently, each project has one database. For multi-database architectures, create separate projects or use Supabase integration for more complex setups. Tutorials Using Database AI CRM Contacts, companies, deals, activities. Analytics Dashboard Events, users, funnels, sessions. Project Manager Issues, sprints, comments, history. All Tutorials → Every tutorial uses database.
People Also Asked
- Blink - AI App Builder | Build Apps in Minutes with AI
- Blink AI App Builder: Full-stack AI app builder creating production ...
- Blink - Blink: The AI App Builder for Creating Websites, SaaS, and ...
- Blink - AI App Builder for Web and Mobile | EveryDev.ai
- Blink Review 2026: Best Full-Stack No-Code AI App Builder Tested
- Blink AI App Builder: The Best No-Code AI App Builder? (2025/2026)
Blink - AI App Builder | Build Apps in Minutes with AI?
When you query comments, you can join them with posts automatically. Tables with Specific Types For more control, describe the exact structure you need: Blink interprets these requirements and creates appropriate column types and constraints.
Blink AI App Builder: Full-stack AI app builder creating production ...?
This means: - Fast globally: Data is replicated to edge locations for low-latency access worldwide - Scales automatically: Handles thousands of concurrent connections without configuration - Secure by default: Row-level security, encryption at rest, and isolated per project - Fully yours: Export your data anytime as CSV or JSON, no lock-in Quick Start Tell Blink what data you need: Blink automatic...
Blink - Blink: The AI App Builder for Creating Websites, SaaS, and ...?
When you query comments, you can join them with posts automatically. Tables with Specific Types For more control, describe the exact structure you need: Blink interprets these requirements and creates appropriate column types and constraints.
Blink - AI App Builder for Web and Mobile | EveryDev.ai?
When you query comments, you can join them with posts automatically. Tables with Specific Types For more control, describe the exact structure you need: Blink interprets these requirements and creates appropriate column types and constraints.
Blink Review 2026: Best Full-Stack No-Code AI App Builder Tested?
Fill in the fields and save. Import from CSV: Click the Upload button (↑ icon) to import data from a CSV file: - Drop your CSV file or click to browse - Map CSV columns to table columns (Blink auto-maps when names match) - Review the preview - Click Import Generate a sample CSV: If you need a template, click "Generate Sample CSV" to download a file with the correct headers for your table.