Skip to content

Instantly share code, notes, and snippets.

@RGBKnights
Created April 21, 2026 19:49
Show Gist options
  • Select an option

  • Save RGBKnights/df39ca083dcacf11ea3de1dc1e2f8c6b to your computer and use it in GitHub Desktop.

Select an option

Save RGBKnights/df39ca083dcacf11ea3de1dc1e2f8c6b to your computer and use it in GitHub Desktop.
AI Builder Export
Run the following export for me:
Create an export directory and zip the project source code (excluding node_modules, .git, and lock files) into project.zip
Discover all public database tables dynamically (SELECT table_name FROM information_schema.tables WHERE table_schema = 'public'), query each one, and also query auth.users for id, email, created_at, last_sign_in_at, email_confirmed_at
Export each table as a CSV. Name the auth users file _users.csv to avoid conflicts. Bundle all CSVs into tables.zip, then remove the loose CSVs
Show the final directory listing with file sizes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment