How nabin-poudel/askly works
Askly is a small Next.js chat app. A user submits a prompt in the chat interface; the interface invokes a server action, which requests a response from Google Gemini and returns either text or a user-facing error. The interface also shows loading state and supports copying assistant responses. The README documents the responsive, dark-themed chat experience. The sampled sources show the request and response path; no conversation-history persistence is present in the excerpts.
Main entry points: page.tsx Chat interface · aiAction.ts AI server action
Components 5
Chat experience
- Chat interface
app/page.tsx
Response generation
- AI server action
app/actions/aiAction.ts
Other components
- User
- Google Gemini
- Browser clipboard
Connections 6
- User → Chat interface: submits prompt
README.md - Chat interface → AI server action: calls
app/page.tsx - AI server action → Google Gemini: sends prompt
app/actions/aiAction.ts - Google Gemini → AI server action: returns text
app/actions/aiAction.ts - AI server action → Chat interface: returns result
app/page.tsx - Chat interface → Browser clipboard: copies response
app/page.tsx