Database 1,583 installs

InsForge App Integration Skill

by insforge/agent-skills

Use this skill when writing app code with InsForge or @insforge/sdk: database CRUD, auth, storage uploads/storage RLS, functions, OpenRouter AI, realtime,…

Skill content

Client-side SDK for database queries, authentication, file uploads, AI features, real-time messaging, and edge function invocation.

- Six core modules: Database (CRUD, filters, RPC), Auth (sign up/in, OAuth, sessions), Storage (upload/download/delete), Functions (edge function invoke), AI (chat, image generation, embeddings), and Real-time (WebSocket channels, publish/subscribe)

- All SDK methods return { data, error } objects; database inserts require array format and storage operations need both url and key saved to database

- Real-time channels use SQL triggers to auto-publish database changes; RLS policies control subscribe and publish access via realtime.channels and realtime.messages tables

- Includes RLS policy patterns for common scenarios (order access, chat membership) and best practices for channel pattern creation and trigger configuration

InsForge App Integration Skill

This skill covers client-side SDK integration using @insforge/sdk. For backend infrastructure operations (creating tables, inspecting schema, deploying functions, secrets, managing storage buckets, configuring payment provider keys/catalog, website deployments, cron job and schedules, logs, etc.), use the insforge-cli skill.

Quick Setup

1. Install the SDK

npm install @insforge/sdk@latest

2. Set up environment variables

Before using the SDK, create a .env file (or .env.local for Next.js) in your project root with your InsForge URL and anon key.

How to get your URL and anon key