├── .env ├── .eslintrc.json ├── .gitignore ├── .vscode └── settings.json ├── LICENSE ├── README.md ├── middleware.ts ├── next.config.js ├── package.json ├── postcss.config.js ├── public ├── android-chrome-192x192.png ├── android-chrome-512x512.png ├── apple-touch-icon.png ├── favicon-16x16.png ├── favicon-32x32.png ├── icon.ico ├── screenshot.png └── wasmllm-code.txt ├── src ├── app │ ├── api │ │ └── chat │ │ │ └── route.ts │ ├── favicon.ico │ ├── globals.css │ ├── layout.tsx │ └── page.tsx ├── components │ ├── button-scroll-to-bottom.tsx │ ├── chat-list.tsx │ ├── chat-message-actions.tsx │ ├── chat-message.tsx │ ├── chat-panel.tsx │ ├── chat-scroll-anchor.tsx │ ├── chat.tsx │ ├── empty-screen.tsx │ ├── external-link.tsx │ ├── footer.tsx │ ├── markdown.tsx │ ├── micbutton.tsx │ ├── prompt-form.tsx │ ├── providers.tsx │ ├── tailwind-indicator.tsx │ ├── transcribe.tsx │ └── ui │ │ ├── alert-dialog.tsx │ │ ├── badge.tsx │ │ ├── button.tsx │ │ ├── codeblock.tsx │ │ ├── dialog.tsx │ │ ├── dropdown-menu.tsx │ │ ├── icons.tsx │ │ ├── input.tsx │ │ ├── label.tsx │ │ ├── progress.tsx │ │ ├── select.tsx │ │ ├── separator.tsx │ │ ├── sheet.tsx │ │ ├── switch.tsx │ │ ├── textarea.tsx │ │ └── tooltip.tsx └── lib │ ├── fonts.ts │ ├── hooks │ ├── use-at-bottom.tsx │ ├── use-copy-to-clipboard.tsx │ ├── use-enter-submit.tsx │ └── use-local-storage.ts │ ├── utils.ts │ └── wasmllm │ ├── supported-models.ts │ ├── use-wasm-llm.ts │ ├── wasmllm.ts │ └── worker.ts ├── tailwind.config.ts ├── tsconfig.json └── yarn.lock /.env: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.formatOnSave": true 3 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/README.md -------------------------------------------------------------------------------- /middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/middleware.ts -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/next.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/package.json -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/postcss.config.js -------------------------------------------------------------------------------- /public/android-chrome-192x192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/public/android-chrome-192x192.png -------------------------------------------------------------------------------- /public/android-chrome-512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/public/android-chrome-512x512.png -------------------------------------------------------------------------------- /public/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/public/apple-touch-icon.png -------------------------------------------------------------------------------- /public/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/public/favicon-16x16.png -------------------------------------------------------------------------------- /public/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/public/favicon-32x32.png -------------------------------------------------------------------------------- /public/icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/public/icon.ico -------------------------------------------------------------------------------- /public/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/public/screenshot.png -------------------------------------------------------------------------------- /public/wasmllm-code.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/public/wasmllm-code.txt -------------------------------------------------------------------------------- /src/app/api/chat/route.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/app/api/chat/route.ts -------------------------------------------------------------------------------- /src/app/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/app/favicon.ico -------------------------------------------------------------------------------- /src/app/globals.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/app/globals.css -------------------------------------------------------------------------------- /src/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/app/layout.tsx -------------------------------------------------------------------------------- /src/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/app/page.tsx -------------------------------------------------------------------------------- /src/components/button-scroll-to-bottom.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/button-scroll-to-bottom.tsx -------------------------------------------------------------------------------- /src/components/chat-list.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/chat-list.tsx -------------------------------------------------------------------------------- /src/components/chat-message-actions.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/chat-message-actions.tsx -------------------------------------------------------------------------------- /src/components/chat-message.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/chat-message.tsx -------------------------------------------------------------------------------- /src/components/chat-panel.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/chat-panel.tsx -------------------------------------------------------------------------------- /src/components/chat-scroll-anchor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/chat-scroll-anchor.tsx -------------------------------------------------------------------------------- /src/components/chat.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/chat.tsx -------------------------------------------------------------------------------- /src/components/empty-screen.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/empty-screen.tsx -------------------------------------------------------------------------------- /src/components/external-link.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/external-link.tsx -------------------------------------------------------------------------------- /src/components/footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/footer.tsx -------------------------------------------------------------------------------- /src/components/markdown.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/markdown.tsx -------------------------------------------------------------------------------- /src/components/micbutton.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/micbutton.tsx -------------------------------------------------------------------------------- /src/components/prompt-form.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/prompt-form.tsx -------------------------------------------------------------------------------- /src/components/providers.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/providers.tsx -------------------------------------------------------------------------------- /src/components/tailwind-indicator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/tailwind-indicator.tsx -------------------------------------------------------------------------------- /src/components/transcribe.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/transcribe.tsx -------------------------------------------------------------------------------- /src/components/ui/alert-dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/alert-dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/badge.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/badge.tsx -------------------------------------------------------------------------------- /src/components/ui/button.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/button.tsx -------------------------------------------------------------------------------- /src/components/ui/codeblock.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/codeblock.tsx -------------------------------------------------------------------------------- /src/components/ui/dialog.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/dialog.tsx -------------------------------------------------------------------------------- /src/components/ui/dropdown-menu.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/dropdown-menu.tsx -------------------------------------------------------------------------------- /src/components/ui/icons.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/icons.tsx -------------------------------------------------------------------------------- /src/components/ui/input.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/input.tsx -------------------------------------------------------------------------------- /src/components/ui/label.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/label.tsx -------------------------------------------------------------------------------- /src/components/ui/progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/progress.tsx -------------------------------------------------------------------------------- /src/components/ui/select.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/select.tsx -------------------------------------------------------------------------------- /src/components/ui/separator.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/separator.tsx -------------------------------------------------------------------------------- /src/components/ui/sheet.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/sheet.tsx -------------------------------------------------------------------------------- /src/components/ui/switch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/switch.tsx -------------------------------------------------------------------------------- /src/components/ui/textarea.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/textarea.tsx -------------------------------------------------------------------------------- /src/components/ui/tooltip.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/components/ui/tooltip.tsx -------------------------------------------------------------------------------- /src/lib/fonts.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/fonts.ts -------------------------------------------------------------------------------- /src/lib/hooks/use-at-bottom.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/hooks/use-at-bottom.tsx -------------------------------------------------------------------------------- /src/lib/hooks/use-copy-to-clipboard.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/hooks/use-copy-to-clipboard.tsx -------------------------------------------------------------------------------- /src/lib/hooks/use-enter-submit.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/hooks/use-enter-submit.tsx -------------------------------------------------------------------------------- /src/lib/hooks/use-local-storage.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/hooks/use-local-storage.ts -------------------------------------------------------------------------------- /src/lib/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/utils.ts -------------------------------------------------------------------------------- /src/lib/wasmllm/supported-models.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/wasmllm/supported-models.ts -------------------------------------------------------------------------------- /src/lib/wasmllm/use-wasm-llm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/wasmllm/use-wasm-llm.ts -------------------------------------------------------------------------------- /src/lib/wasmllm/wasmllm.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/wasmllm/wasmllm.ts -------------------------------------------------------------------------------- /src/lib/wasmllm/worker.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/src/lib/wasmllm/worker.ts -------------------------------------------------------------------------------- /tailwind.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/tailwind.config.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hrishioa/wasm-ai/HEAD/yarn.lock --------------------------------------------------------------------------------