From 1d4b7ea9fdc3d7ab608f3933b7592a7aeb34fd54 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:25:46 +0000 Subject: [PATCH 01/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index b4200d6..e1e055d 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -3,10 +3,14 @@ title: "Context Window Guide" description: "Understanding and managing AI model context windows" --- -## What is a Context Window? +## What is a context window? A context window is the maximum amount of text an AI model can process at once. Think of it as the model's "working memory" - it determines how much of your conversation and code the model can consider when generating responses. + + **What are tokens?** Tokens are small chunks of text that AI models read. A token is roughly ¾ of a word. For example, the word "hamburger" becomes two tokens: "ham" and "burger". When we talk about context window sizes like "128K tokens," that means the AI can read about 96,000 words at once. + + **Key Point**: Larger context windows allow the model to understand more of your codebase at once, but may increase costs and response times. From b23902638c6e0e2adaaf52f1adb454a40b379364 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:25:52 +0000 Subject: [PATCH 02/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index e1e055d..271919b 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -11,11 +11,11 @@ A context window is the maximum amount of text an AI model can process at once. **What are tokens?** Tokens are small chunks of text that AI models read. A token is roughly ¾ of a word. For example, the word "hamburger" becomes two tokens: "ham" and "burger". When we talk about context window sizes like "128K tokens," that means the AI can read about 96,000 words at once. - - **Key Point**: Larger context windows allow the model to understand more of your codebase at once, but may increase costs and response times. - + + **Key point**: Larger context windows allow the model to understand more of your codebase at once, but may increase costs and response times. + -### Quick Reference +### Quick reference | Size | Tokens | Approximate Words | Use Case | | --------------- | ------ | ----------------- | ------------------------- | From 335d8dd48ea90950cf649a45e7ee324dc631a7a6 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:06 +0000 Subject: [PATCH 03/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index 271919b..e7a9af3 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -25,7 +25,7 @@ A context window is the maximum amount of text an AI model can process at once. | **Extra Large** | 400K+ | ~300,000+ | Entire applications | | **Massive** | 1M+ | ~750,000+ | Multi-project analysis | -### Model Context Windows +### Model context windows | Model | Context Window | Effective Window\* | Notes | | --------------------- | -------------- | ------------------ | ------------------------------ | @@ -35,7 +35,7 @@ A context window is the maximum amount of text an AI model can process at once. | **DeepSeek V3** | 128K tokens | ~100K tokens | Optimal for most tasks | | **Qwen3 Coder** | 256K tokens | ~200K tokens | Good balance | -\*Effective window is where model maintains high quality +\*Effective window is where the model maintains high quality. Beyond this point, the AI may start "forgetting" earlier parts of your conversation. ### What Counts Toward Context From 30dbb8aad912ef9b67aa0798cbe700c597c698b3 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:11 +0000 Subject: [PATCH 04/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index e7a9af3..c2d0af4 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -37,7 +37,7 @@ A context window is the maximum amount of text an AI model can process at once. \*Effective window is where the model maintains high quality. Beyond this point, the AI may start "forgetting" earlier parts of your conversation. -### What Counts Toward Context +### What counts toward context 1. **Your current conversation** - All messages in the chat 2. **File contents** - Any files you've shared or CodinIT has read From 82e5ecab6f65be8f5ddf5cb2241348341679c921 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:17 +0000 Subject: [PATCH 05/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index c2d0af4..7eefd2c 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -44,9 +44,9 @@ A context window is the maximum amount of text an AI model can process at once. 3. **Tool outputs** - Results from executed commands 4. **System prompts** - CodinIT's instructions (minimal impact) -### Optimization Strategies +### Optimization strategies -#### 1. Start Fresh for New Features +#### 1. Start fresh for new features ```mdx /new - Creates a new task with clean context From 4e6687d9025ce771ed5c578e9e6a4aba6f39241d Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:21 +0000 Subject: [PATCH 06/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index 7eefd2c..324547d 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -58,7 +58,7 @@ Benefits: - No irrelevant history - Better model focus -#### 2. Use @ Mentions Strategically +#### 2. Use @ mentions strategically Instead of including entire files: From d590ce83b1f8b9f797e377e4efff95d57b148265 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:28 +0000 Subject: [PATCH 07/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index 324547d..a89689d 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -66,9 +66,9 @@ Instead of including entire files: - Use search instead of reading large files - Reference specific functions rather than whole files -#### 3. Enable Auto-compact +#### 3. Enable auto-compact -CodinIT can automatically summarize long conversations: +CodinIT can automatically summarize long conversations to free up space in the context window: - Settings → Features → Auto-compact - Preserves important context From e99ed180b2d4a60842252d099dc0dab502d77fb4 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:33 +0000 Subject: [PATCH 08/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index a89689d..d0c8461 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -74,9 +74,9 @@ CodinIT can automatically summarize long conversations to free up space in the c - Preserves important context - Reduces token usage -## Context Window Warnings +## Context window warnings -### Signs You're Hitting Limits +### Signs you're hitting limits | Warning Sign | What It Means | Solution | | ----------------------------- | ----------------------------- | ------------------------------------- | From 86580ff0f0dba34a5423aa718ba4e6b44e2415c6 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:38 +0000 Subject: [PATCH 09/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index d0c8461..c866ae4 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -85,9 +85,9 @@ CodinIT can automatically summarize long conversations to free up space in the c | **Repetitive suggestions** | Context fragmentation | Summarize and start fresh | | **Missing recent changes** | Context overflow | Use checkpoints to track changes | -### Best Practices by Project Size +### Best practices by project size -#### Small Projects (\< 50 files) +#### Small projects (\< 50 files) - Any model works well - Include relevant files freely From 47ae3110d897d177245d4eb5bc6914fdd03ce97c Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:43 +0000 Subject: [PATCH 10/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index c866ae4..ffa2323 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -93,7 +93,7 @@ CodinIT can automatically summarize long conversations to free up space in the c - Include relevant files freely - No special optimization needed -#### Medium Projects (50-500 files) +#### Medium projects (50-500 files) - Use 128K+ context models - Include only working set of files From bcf26aecb3d5032928f65044ddabe110040d5c31 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:48 +0000 Subject: [PATCH 11/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index ffa2323..4dae490 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -99,7 +99,7 @@ CodinIT can automatically summarize long conversations to free up space in the c - Include only working set of files - Clear context between features -#### Large Projects (500+ files) +#### Large projects (500+ files) - Use 200K+ context models - Focus on specific modules From 542a450bb4dac70e84b44b8174e8bccee29af101 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:26:59 +0000 Subject: [PATCH 12/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index 4dae490..4399c70 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -106,27 +106,29 @@ CodinIT can automatically summarize long conversations to free up space in the c - Use search instead of reading many files - Break work into smaller tasks -## Advanced Context Management +## Advanced context management -### Plan/Act Mode Optimization +### Plan/Act mode optimization Leverage Plan/Act mode for better context usage: -- **Plan Mode**: Use smaller context for discussion -- **Act Mode**: Include necessary files for implementation +- **Plan Mode**: Use smaller context for discussion and planning +- **Act Mode**: Include necessary files when you're ready to write code -Configuration: +Configuration example: ``` Plan Mode: DeepSeek V3 (128K) - Lower cost planning Act Mode: Claude Sonnet (1M) - Maximum context for coding ``` -### Context Pruning Strategies +### Context pruning strategies -1. **Temporal Pruning**: Remove old conversation parts -2. **Semantic Pruning**: Keep only relevant code sections -3. **Hierarchical Pruning**: Maintain high-level structure, prune details +These are ways CodinIT can reduce the amount of text in your context window: + +1. **Temporal pruning**: Remove older parts of your conversation that are no longer relevant +2. **Semantic pruning**: Keep only the code sections related to your current task +3. **Hierarchical pruning**: Keep the big picture but remove fine details ### Token Counting Tips From c8956da1684ebabf1a1cdcab1247af31d4b3f219 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:27:07 +0000 Subject: [PATCH 13/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index 4399c70..4ec273c 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -130,15 +130,15 @@ These are ways CodinIT can reduce the amount of text in your context window: 2. **Semantic pruning**: Keep only the code sections related to your current task 3. **Hierarchical pruning**: Keep the big picture but remove fine details -### Token Counting Tips +### Token counting tips -#### Rough Estimates +#### Rough estimates -- **1 token ≈ 0.75 words** +- **1 token ≈ 0.75 words** (so 1,000 tokens is about 750 words) - **1 token ≈ 4 characters** - **100 lines of code ≈ 500-1000 tokens** -#### File Size Guidelines +#### File size guidelines | File Type | Tokens per KB | | -------------- | ------------- | From 68cd79214590976e12739c27aa80b62aae9c37d7 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:27:13 +0000 Subject: [PATCH 14/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index 4ec273c..f1fa7d4 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -147,7 +147,7 @@ These are ways CodinIT can reduce the amount of text in your context window: | **Markdown** | ~200-300 | | **Plain text** | ~200-250 | -## Context Window FAQ +## Context window FAQ ### Q: Why do responses get worse with very long conversations? From 414f4d1b6a4037c5f360f6d6780f473a86e2602b Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:27:18 +0000 Subject: [PATCH 15/24] Update model-config/context-windows.mdx --- model-config/context-windows.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model-config/context-windows.mdx b/model-config/context-windows.mdx index f1fa7d4..89933b7 100644 --- a/model-config/context-windows.mdx +++ b/model-config/context-windows.mdx @@ -169,7 +169,7 @@ These are ways CodinIT can reduce the amount of text in your context window: - Show an error and suggest starting a new task - Truncate older messages (with warning) -## Recommendations by Use Case +## Recommendations by use case | Use Case | Recommended Context | Model Suggestion | | ----------------------- | ------------------- | ----------------- | From 1008323624329c4c85c828d5b7d2c9eab749e885 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:27:34 +0000 Subject: [PATCH 16/24] Update integrations/supabase.mdx --- integrations/supabase.mdx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/integrations/supabase.mdx b/integrations/supabase.mdx index 54bb1c7..9bf80a0 100644 --- a/integrations/supabase.mdx +++ b/integrations/supabase.mdx @@ -3,9 +3,15 @@ title: 'Supabase Integration' description: 'Complete Supabase integration with database operations, authentication, real-time subscriptions, and TypeScript support' --- -# Supabase Integration +# Supabase integration -CodinIT provides comprehensive Supabase integration, enabling you to build full-stack applications with PostgreSQL databases, authentication, real-time subscriptions, and edge functions. This integration goes beyond basic database connectivity to include advanced features like Row Level Security, automated migrations, and TypeScript type generation. +CodinIT provides comprehensive Supabase integration, enabling you to build full-stack applications with databases, user login systems, live data updates, and server functions. + + + **What is Supabase?** Supabase is a service that provides a database (a place to store your app's data), user authentication (login/signup systems), and other backend features—all without you needing to set up your own servers. + + +This integration goes beyond basic database connectivity to include advanced features like Row Level Security (RLS), automated migrations, and TypeScript type generation. ## Overview From 13e1e7f5545bfd48bd0486ac6571de1e579d2c4e Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:27:45 +0000 Subject: [PATCH 17/24] Update integrations/supabase.mdx --- integrations/supabase.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/integrations/supabase.mdx b/integrations/supabase.mdx index 9bf80a0..de8c42e 100644 --- a/integrations/supabase.mdx +++ b/integrations/supabase.mdx @@ -15,17 +15,17 @@ This integration goes beyond basic database connectivity to include advanced fea ## Overview -The Supabase integration in CodinIT offers enterprise-grade database capabilities with developer-friendly tooling: +The Supabase integration in CodinIT offers powerful database capabilities with easy-to-use tools: - Hosted PostgreSQL with advanced features and extensions + A hosted database to store all your app's information (users, posts, orders, etc.) - Complete user management with social providers and custom flows + Ready-made login systems including "Sign in with Google" and email/password - Live subscriptions and real-time data synchronization + Your app updates instantly when data changes—no page refresh needed From ae1459817e065daa594c2e203eef2a3039bf9065 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:27:54 +0000 Subject: [PATCH 18/24] Update integrations/supabase.mdx --- integrations/supabase.mdx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/integrations/supabase.mdx b/integrations/supabase.mdx index de8c42e..a1cbd29 100644 --- a/integrations/supabase.mdx +++ b/integrations/supabase.mdx @@ -29,15 +29,15 @@ The Supabase integration in CodinIT offers powerful database capabilities with e -### Key Features - -- **Automated Migrations**: Generate and execute SQL migrations with rollback support -- **Row Level Security**: Automatic RLS policy creation and management -- **TypeScript Integration**: Auto-generated types from your database schema -- **Real-time Subscriptions**: Live data updates without manual polling -- **Authentication Flows**: Complete user registration, login, and session management -- **Edge Functions**: Serverless functions for API endpoints and integrations -- **File Storage**: Built-in file upload and management capabilities +### Key features + +- **Automated migrations**: Database changes are tracked and can be undone if something goes wrong +- **Row Level Security (RLS)**: Rules that control who can see or edit specific data (for example, users can only see their own orders) +- **TypeScript integration**: Your code editor knows exactly what data types to expect, reducing errors +- **Real-time subscriptions**: Your app automatically updates when data changes—like seeing new messages appear without refreshing +- **Authentication flows**: Complete user registration, login, and session management +- **Edge functions**: Small programs that run on Supabase's servers to handle tasks like sending emails or processing payments +- **File storage**: Built-in file upload and management for images, documents, and other files **Default Choice**: Supabase is the recommended database solution for CodinIT projects requiring advanced database From 0b751dc773b5d7c23eaafd9c4fd0e4f107dc6602 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:28:01 +0000 Subject: [PATCH 19/24] Update integrations/supabase.mdx --- integrations/supabase.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/supabase.mdx b/integrations/supabase.mdx index a1cbd29..60a49d8 100644 --- a/integrations/supabase.mdx +++ b/integrations/supabase.mdx @@ -40,11 +40,11 @@ The Supabase integration in CodinIT offers powerful database capabilities with e - **File storage**: Built-in file upload and management for images, documents, and other files - **Default Choice**: Supabase is the recommended database solution for CodinIT projects requiring advanced database + **Default choice**: Supabase is the recommended database solution for CodinIT projects requiring advanced database features, authentication, or real-time capabilities. -## Setup and Configuration +## Setup and configuration ### Connecting to Supabase From c654a0a65af70522e623db49fdc64b7c69452136 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:28:11 +0000 Subject: [PATCH 20/24] Update integrations/supabase.mdx --- integrations/supabase.mdx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/integrations/supabase.mdx b/integrations/supabase.mdx index 60a49d8..e75696a 100644 --- a/integrations/supabase.mdx +++ b/integrations/supabase.mdx @@ -58,7 +58,11 @@ The Supabase integration in CodinIT offers powerful database capabilities with e Share your Supabase URL and anon key when prompted -### Environment Variables +### Environment variables + + + **What are environment variables?** These are secret settings stored outside your code. They keep sensitive information like passwords and API keys safe, and let you use different settings for testing vs. your live app. + CodinIT automatically creates the necessary environment variables: @@ -68,8 +72,7 @@ VITE_SUPABASE_ANON_KEY=your_supabase_anon_key ``` - **Security Note**: Never commit your Supabase service role key to version control. The anon key is safe for - client-side use. + **Security note**: Never share or publish your Supabase service role key. The "anon key" is safe to use in your app's front-end code. ### Connection Verification From e0425373880fbf0af9350c360354343d6361f470 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:28:16 +0000 Subject: [PATCH 21/24] Update integrations/supabase.mdx --- integrations/supabase.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integrations/supabase.mdx b/integrations/supabase.mdx index e75696a..23cdff1 100644 --- a/integrations/supabase.mdx +++ b/integrations/supabase.mdx @@ -75,7 +75,7 @@ VITE_SUPABASE_ANON_KEY=your_supabase_anon_key **Security note**: Never share or publish your Supabase service role key. The "anon key" is safe to use in your app's front-end code. -### Connection Verification +### Connection verification Once connected, CodinIT will: From ccd915d1bb02726e4c680bcd0ea224be2471382d Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:28:22 +0000 Subject: [PATCH 22/24] Update integrations/supabase.mdx --- integrations/supabase.mdx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/integrations/supabase.mdx b/integrations/supabase.mdx index 23cdff1..102e4ae 100644 --- a/integrations/supabase.mdx +++ b/integrations/supabase.mdx @@ -89,9 +89,13 @@ If connection fails, you'll receive guidance to: - Check project permissions - Ensure network connectivity -## Database Operations +## Database operations -### Creating Tables and Schemas +### Creating tables and schemas + + + **What is a table?** A table is like a spreadsheet in your database. Each table stores one type of information (like "users" or "orders"), with rows for each item and columns for each piece of data (like "name" or "email"). + CodinIT automatically generates SQL migrations for database changes: From ab18138f80476f55f1db86ad0b1aa6cfb0d3fed7 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:28:31 +0000 Subject: [PATCH 23/24] Update integrations/supabase.mdx --- integrations/supabase.mdx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/integrations/supabase.mdx b/integrations/supabase.mdx index 102e4ae..021bfb0 100644 --- a/integrations/supabase.mdx +++ b/integrations/supabase.mdx @@ -112,13 +112,17 @@ CREATE TABLE users ( ### Row Level Security (RLS) + + **What is Row Level Security?** RLS is like a security guard for your data. It automatically filters what each user can see or change. For example, you can set rules so users only see their own orders, not everyone else's. + + All tables automatically get RLS enabled with appropriate policies: ```sql --- Enable RLS +-- Enable RLS (turn on the security guard) ALTER TABLE users ENABLE ROW LEVEL SECURITY; --- Create policies for authenticated users +-- Create a rule: users can only read their own data CREATE POLICY "Users can read own data" ON users FOR SELECT From 3d78049d1b0b93eb2c174650ea85e43042fa8f59 Mon Sep 17 00:00:00 2001 From: "mintlify[bot]" <109931778+mintlify[bot]@users.noreply.github.com> Date: Tue, 25 Nov 2025 16:28:40 +0000 Subject: [PATCH 24/24] Update integrations/supabase.mdx --- integrations/supabase.mdx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/integrations/supabase.mdx b/integrations/supabase.mdx index 021bfb0..88371af 100644 --- a/integrations/supabase.mdx +++ b/integrations/supabase.mdx @@ -130,19 +130,20 @@ CREATE POLICY "Users can read own data" USING (auth.uid() = id); ``` -### Data Operations +### Data operations -**Querying Data:** +**Querying data (getting information from your database):** ```typescript -// CodinIT generates type-safe queries +// Get all active users from the database const { data: users } = await supabase.from('users').select('*').eq('status', 'active'); ``` -**Real-time Subscriptions:** +**Real-time subscriptions (automatically update when data changes):** ```typescript -// Live data updates +// Listen for any changes to the users table +// When someone signs up or updates their profile, your app knows immediately const channel = supabase .channel('users') .on(