A Next.js application that integrates Puter.ai features for chat, smart search, document analysis, media generation, and user profile management.
Pagpug AI Dashboard is a custom AI workspace built on top of the Puter SDK and local utilities. This app enables users to:
- Chat with selected AI models
- Use smart search combining web search and LLM synthesis
- Upload documents for local analysis (RAG)
- Generate text-to-image and text-to-video content
- View Puter account profile and usage
- Manage default model selection in settings
Note: each user must log in with their own Puter account to access authenticated features.
AI Chatwith dynamic models and stop/cancel controlsModel selectorwith search and keyboard supportSmart searchto fetch and synthesize web dataDocument RAGfor answering questions from uploaded filesText-to-ImageandText-to-Videousing Puter multimodal featuresPuter Profileto view account details and usage statsSettingsto save the default model
- Clone the repository:
git clone https://github.com/DheyohDev/PagpugChat.git
cd PagpugChat- Install dependencies:
npm install- Configure
.envas needed. If you use a SearXNG search engine, add its base URL here:
NEXT_PUBLIC_SEARXNG_URL=https://your-searxng-instance.example.com- Start the development server:
npm run dev- Open
http://localhost:3000
To use this app, sign in with your Puter Account :
- Click the login button on the main page
- Complete the Puter authentication flow
- After login, your profile appears and chat/usage features become available
hooks/useDashboardApp.ts— main app logic and chat workflowcomponents/chat/ModelSelector.tsx— AI model selector with searchcomponents/user/Profile.tsx— profile and usage displayutils/search/smart-search.ts— smart search pipeline and web proxylib/puter-models.ts— AI model list and vision detectionapp/api/search/route.ts— search proxy to SearXNG
- Ensure environment variables for Puter and SearXNG are configured
- If you use a search engine, set
NEXT_PUBLIC_SEARXNG_URLto your SearXNG instance URL - Deploy on a platform that supports Next.js App Router
#PuterAI #NextJS #AIChat #SmartSearch #RAG #TextToImage #TextToVideo #Dashboard #WebApp
