A Next.js inventory dashboard built with Kiro AI IDE. A TanStack Table grid and detail view get Velt cell comments, @mentions with a custom contact list, a comments sidebar, presence and notifications.
A modern inventory management dashboard for warehouse and logistics teams, built with Next.js, TanStack Table and Velt using the Kiro AI IDE. Teams track stock, filter by status and discuss problems in context: comment on a cell, mention a teammate, and review every thread in a sidebar.
The README doubles as a tutorial for combining these libraries. The Kiro prompts used to build it are in docs/kiro-prompts.md.
- Data grid: TanStack Table with sorting, filtering and search, and TanStack Virtual for large datasets.
- Cell comments:
VeltCommentToolin the grid lets users comment on specific items. - @mentions: A custom contact list (Steve, Warehouse Manager, and Elli, Inventory Specialist) with autocomplete search, set up through the Velt contact element.
- Comments sidebar:
VeltCommentsSidebarwithVeltSidebarButtonfor filtering and reviewing discussions. - Notifications and presence:
VeltNotificationsToolandVeltPresencein the header. - Detail view: A modal with full item information.
- Filters: Filter dropdowns and status indicators (in stock, low stock, out of stock).
- Dark mode: Dark theme throughout the interface.
| Layer | Tool |
|---|---|
| Framework | Next.js 15.2 (App Router), React 19, TypeScript |
| Data grid | TanStack Table v8 and TanStack Virtual |
| Collaboration | Velt (@veltdev/react) |
| UI | Tailwind CSS v4, Radix UI, Lucide |
| State | Zustand |
| Dev environment | Kiro AI IDE |
| Deployment | Vercel |
- Node.js 18 or newer
- npm or yarn
- A Velt API key from the Velt console
git clone https://github.com/Studio1HQ/Example-apps.git
cd Example-apps
npm installCreate a .env.local file in the project root.
| Variable | Description |
|---|---|
NEXT_PUBLIC_VELT_API_KEY |
Your Velt API key, from the Velt console. |
npm run devOpen http://localhost:3000. Other scripts: npm run build, npm run start, npm run lint. To deploy, run vercel --prod with the Vercel CLI.
app/page.tsx sets the Velt document to inventory-dashboard-main, loads the user list into Velt's contact element and enables custom autocomplete search. When a user types an @mention, the autocompleteSearch event filters the team list by name:
const commentElement = client.getCommentElement();
const contactElement = client.getContactElement();
commentElement.enableCustomAutocompleteSearch();
contactElement.updateContactList(users);
commentElement.on("autocompleteSearch").subscribe((inputData) => {
if (inputData.type === "contact") {
contactElement.updateContactList(
users.filter((u) => u.name.toLowerCase().includes(inputData.searchText.toLowerCase())),
{ merge: false }
);
}
});Sample inventory items use this shape:
interface InventoryItem {
id: string;
ProductName: string;
SKU: string;
Category: string;
CurrentStock: number;
MinStock: number;
MaxStock: number;
Status: "IN STOCK" | "LOW STOCK" | "OUT OF STOCK";
LastUpdated: string;
Supplier?: string;
Location?: string;
UnitPrice?: number;
}├── app/ # page.tsx (dashboard, Velt setup), layout.tsx
├── components/
│ ├── InventoryTable.tsx # Main data grid
│ ├── DetailView.tsx # Item detail modal
│ ├── Sidebar.tsx # Navigation sidebar
│ ├── header.tsx # Presence, notifications, sidebar button
│ ├── FilterDropdowns.tsx # Filters
│ ├── VeltAuth.tsx # Identify the user
│ └── ui/ # Reusable UI components
├── helper/userdb.ts # Users
├── types/delivery.ts # Data models
├── utils/ # Data transform and validation
├── docs/kiro-prompts.md # Prompts used with Kiro
└── images/ # Screenshots
The project came from this brief to Kiro: build a lightweight internal dashboard for warehouse and logistics teams to track shipment statuses, with a TanStack data grid and detail view, and Velt for contextual comments with tag mentions, reactions and sidebar filtering. A second prompt trimmed the UI.
Use cases it covers: low stock management with @mentions to warehouse managers, cell-level discussions with resolved and unresolved state, and filtering items by active discussions.
- Velt documentation: SDK guides and API reference.
- Velt: Product site.
- Kiro: AI IDE used to build the project.
- TanStack Table: Data grid docs.
Built by Studio1, the technical content and DevRel partner for devtool teams. Made with Velt.
Browse more open-source examples at github.com/Studio1HQ.
studio1hq.com · Technical content, docs, video and DevRel for devtools



