The record
Audio queries updated
Fixed a minor issue with the way the recordings where fetched from Supabase
Updated documentation to reflect new structure and deployment mode
Added automated SQL migrations in migrations/supabase directory to standardize database setup
Reorganized project folder structure to improve code organization and maintainability
Expanded documentation with detailed step-by-step deployment instructions
Updated README to include comprehensive setup and configuration guides
Added clear deployment walkthrough for new developers
Streamlined overall deployment process through improved documentation and automation
These changes significantly simplify the setup process and make it easier for new developers to get started with AnotherWrapper.
Credit System Implementation into Advanced AI Chat App
Added a credit-based system to prevent API abuse and manage access to resource-intensive features like web browsing and premium AI models (GPT-4, Claude Sonnet).
Chat messages are now processed through a usage-limits handler that tracks credit consumption, where free models (GPT-4o mini, Claude Haiku) remain accessible while premium features require credits.
Implementation uses response headers (x-credit-usage) for real-time credit tracking and integrates with the existing streaming architecture.
This update enables sustainable API usage through credit-based rate limiting while keeping core chat functionality accessible, with real-time credit balance updates through toast notifications.

PDF Vectorization Batch processing
Implemented batch processing for PDF vectorization to handle large documents reliably.
Documents are now processed in configurable chunks (default: 100), preventing Supabase timeout issues and enabling reliable processing of large PDFs (500+ pages).
This update makes PDF processing more reliable and scalable while maintaining existing functionality.

Refactor: Removed
hooks/reduceUserCreditsandhooks/uploadToSupabaseAdded their functionality to
lib/db/mutations/to maintain alignment with the updated file structure.
Refactor: Migrated payment-related functions to /lib/db/payments/
Consolidated functions used in the payments app for consistency with the previous file restructuring changes.
Changed xAI Grok Integration to use Vercel AI SDK
Vercel AI SDK is a charm to work with so added a demo app
Includes a custom demo app with tailored output.
Not visible yet in dashboard but will launch it soon
Flexible User Image Generation
Removed backend filtering in UserImageGeneration. Now filtering is handled on the front-end for greater flexibility.
Sidebar Improvements
Sidebar now includes chat history for enhanced functionality.
Old Chat App Removed
Deleted outdated chat app.
Moved PDF-related components to
components/pdf/.New
components/chat/folder contains files for the updated chat app.
SQL Migration Files Generated
Created new SQL migration files to streamline deployment setup.
Super easy to set up DB now. Tutorial coming soon!
Renamed Documents Table
Updated
documentstable for PDFs topdf_documentsfor better differentiation fromchat_documents.
Supabase Types Added
Added Supabase types for stricter typing and better consistency across the app.
/lib Folder Reorganized
Restructured
/libfor better organization:/lib/clientsfor all clients./lib/aifor AI utilities./lib/dbfor database queries.






