Skip to content
Templates

TechnologyAI chat app

Asklark

AI chat UI with streaming text and animated answer cards

Asklark

Video preview

Recorded from the actual template. The 4 animated views are included in the source.

Category
AI chat app
Dashboard
Views
4
animated
Interface
Dark
theme
Stack
Next.js
16 · React 19
License
Unlimited
projects
Delivery
ZIP
by email

About

A Next.js assistant interface with streamed text and cards, a prompt library, a knowledge base and a token dashboard. Open charts, tables, plans and code in a side panel, and use the command palette and settings to navigate and change the interface.

  • Best forFounders, developers, agencies and vibe coders building an AI assistant, internal copilot or chat product with saved prompts, file states and usage tracking.

Included views

4 views
  • Chat

    Send one of six sample questions, follow the streamed text and answer cards, then open a chart, table, plan or code file in the side panel. The command palette and settings are accessible from Chat.

  • Library

    Search, edit and star prompt templates. Fill their variables and send the completed text to Chat.

  • Knowledge

    Select or drop local files to simulate uploading and indexing. Retry sample failures, browse collections and toggle which sources can appear in sample answers.

  • Usage

    Compare sample token and cost totals by model and teammate across three periods, set a threshold and track scripted answers in the log.

Animations and interactions

  • A chat that answers with cards

    Ask for the morning briefing: the assistant shows the steps it works through, greets you, then three key figures count up with their trend and the chart draws itself. It can also answer with a table, a plan with day tabs, a code file or a list of sources, and cards open in a side panel with their data, copy and download.

  • Connect your own model

    lib/assistant.ts defines the answer format and the streaming interface. The template ships with a scripted assistant so it runs without a key; AGENTS.md explains how to replace it with a real model and map tool calls to cards.

  • Prompt library

    Saved prompts with categories, favourites and search. Open one, fill in its blanks, see the final text and send it to the chat. Add and edit prompts in a validated dialog.

  • Knowledge base

    Try local file selection or drop, simulated upload and indexing, retry, collections and source toggles. File contents stay unread and nothing is sent.

  • Usage you can read

    Tokens this month against the plan with an alert threshold, tokens per day stacked by model over 7, 30 or 90 days, cost per model, usage by teammate and a request log that updates when you chat.

  • Theme and motion settings

    A dark canvas with drifting colour, frosted panels, a modern display face, an animated orb with instrument rings and a running light on whatever the assistant is building. Light theme, six accents and an adjustable corner radius included. Reduced motion is respected and phones get a stacked layout with a tab bar.

Responsive layouts, keyboard-accessible navigation and reduced-motion support.

Demo data and what to connect

This is an interface for your own AI assistant. Six scripted answers and sample data illustrate the experience. A model, backend, sign-in, billing, web search, file reading and indexing are not included. Local state resets on reload, and view changes use the URL hash. The 25 portraits are AI-generated images of fictional people.

  • IncludedFictional demonstration data and local interactions, ready to edit. The included README identifies the data files and model.
  • Not includedBackend, database, authentication, payments or AI services. Features that look connected are simulated; connect your own services when you adapt the code.

What’s in the ZIP

  • Complete Next.js project
  • 4 animated views
  • Source files and project assets
  • README with setup and customization
  • LICENSE.md

Stack and requirements

  • StackNext.js 16, React 19, TypeScript, Tailwind CSS 4, framer-motion, GSAP 3, NumberFlow, d3 (math only)
  • FontsSora, Geist, Geist Mono
  • RequiresNode.js 24 and npm 11

Run it locally

Extract the ZIP, open a terminal in the project folder, then run:

npm ci
npm run dev

Open localhost:3000. The README covers the data, colors, fonts and animations.

Explore the source files
asklark/
    • error.tsx
    • globals.css
    • layout.tsx
    • not-found.tsx
    • page.tsx
    • App.tsx
    • gsap.ts
    • app.config.ts
    • assistant.ts
    • autoplay.ts
    • data.ts
    • derive.ts
    • format.ts
    • motion.ts
    • reduced-motion.ts
    • store.tsx
    • d3.d.ts
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • LICENSE.md
  • next.config.ts
  • package-lock.json
  • package.json
  • postcss.config.mjs
  • README.md
  • tsconfig.json

Price, license and delivery

  • Price$9 USD, one-time payment. No subscription or renewal.
  • TaxesApplicable VAT and sales tax are included in the price. The total is shown before you pay.
  • LicenseUnlimited personal and client projects. No resale or redistribution of the source. Read the license
  • DeliveryAfter payment, Polar emails your receipt and a download link for the ZIP.
  • RefundsIf the files don’t install or run as described and can’t be fixed within 7 days, you get a full refund. Refund policy
  • Supporthello@buildindex.dev for the template as delivered.

Secure checkout by Polar. More answers in the questions.

$9one-time

USD · Tax included

Buy · $9