How to Build a Kanban Board App with AI
Build a Trello-style kanban board in Layerwise with boards, lists, and cards, saved drag-and-drop order, due dates, and shared access, then publish it.
Table of contents
A kanban board looks simple: a few columns and cards you drag between them. The decisions that shape it are less visible. Where is a card's order saved when someone drops it? Who can open a board, and who can change it? What happens to a finished card nobody wants to delete? Once a board holds dozens of cards, how does anyone find what is due this week? Answer those before asking an AI to write code, and the first version is much easier to test.
This guide builds a Trello-style team task board with Layerwise. You will define the board records, plan card order and due dates, decide who can see and edit each board, start from the Cardy template or a prompt, test with two accounts, and publish. If you are weighing hosted tools first, see our guide to the best Trello alternatives.

1. Define the board records
A board app nests four records: workspaces hold boards, boards hold lists, and lists hold cards. Every screen and permission check reads them, so write them down first. This is a simplified card type from Cardy:
type Card = {
id: string;
boardId: string;
listId: string; // the list (column) the card is in
title: string; // up to 300 characters
description: string;
position: number; // order within its list, starting at 0
priority: 'none' | 'low' | 'medium' | 'high' | 'urgent';
labels: string[]; // names from a fixed set of six
assignees: string[]; // user IDs of workspace members
dueDate: string | null; // YYYY-MM-DD
checklist: { id: string; title: string; done: boolean }[];
archived: boolean;
};The six labels are Design, Product, Engineering, Research, Marketing, and Bug. The server rejects an assignee who is not a member of the board's workspace. The checklist lives on the card because it is only edited with the card. Comments and activity are separate tables, and every move, edit, and comment adds an activity entry.
Lists have their own position, and boards have a visibility of private or public. Access comes from the workspace: a membership record gives a user the role owner or member.
archived, on boards and cards, makes removal a change of state that can be undone. Cardy cannot delete boards, lists, cards, or comments. Archived cards stay under Archived cards in the board menu, and a restored card returns to the end of its list.

The card details edit the whole record at once. Title, description, priority, due date, assignees, labels, and checklist changes stay a draft until you choose Save or press ⌘ Enter (Ctrl Enter on Windows), so one save writes one activity entry. Closing with unsaved changes asks before discarding them.
2. Decide how cards keep their order
There are three common ways to store order:
- Whole-number positions, renumbered on each move. A move rewrites every card in the two lists.
- Fractional positions. A moved card gets a value between its neighbors, so one row changes, but values need occasional rebalancing.
- An ordered array of card IDs on each list. Easy to read, but cards and lists can disagree.
Cardy uses the first. The browser sends only the card, the destination list, and an index. The server checks that both belong to the board, then saves the new positions and an activity entry in one database batch, so a failure never leaves half a move. Lists are reordered the same way, and new cards go to the end.
Dragging works with a mouse. On touch screens and keyboards, each card has a menu with Move to, Move up, and Move down, and each list has Move left and Move right. In the card details, changing Status moves the card to the end of the chosen list. Plan that from the start.
Due dates are a second kind of placement. In Calendar, dragging a card onto a day sets its due date, and dragging it onto No due date clears it. The card menu's Due date submenu offers Today, Tomorrow, and In a week. Dates are stored as YYYY-MM-DD with no time, so a card is overdue when its date is before today on the viewer's device and it is not in the board's last list, which Cardy treats as done.
The harder question is two people moving cards at once. Cardy has no real-time updates: it reloads the board after each change and when the window regains focus, so the last saved move wins. If your team shares boards, decide now. Turn on Plan mode, described in Direct the agent, to review the approach before code changes:
Explain how card and list moves are saved today and what happens when two
members move cards on the same board at the same time. Then propose a way to
show other members' changes within a few seconds without a page reload. Keep
the server as the only place that assigns positions.3. Decide who can see and edit a board
Cardy has two roles, shown as Owner and Member:
- Owners rename the workspace, invite and remove members, change board Settings, and archive and restore boards.
- Members create and duplicate boards, add and rename lists, create, move, and archive cards, edit card details, and comment.
- Owners cannot be removed. Removing a member also unassigns them from every card.
The server enforces these rules, not only the interface. A member's request to change a board's visibility is rejected even without the button.
New boards are private. In Board settings, an owner can choose Public: anyone with the link can view, and members edit. Signed-out visitors can then read the board, and its cards open marked Read only. Public viewers see descriptions, comments, and member names, but not email addresses. Archived boards and cards are never shown to non-members.
Invitations are links, not emails. An owner chooses Invite above the board, enters an address in Members, chooses Invite again, and copies the link with Copy. The link expires after seven days, and only its hash is stored. Only an account with that email address can accept it, and the address must be verified, so a link that leaks is useless to anyone else. Owners can Revoke a pending link.
Visitors who choose Try the demo on the landing page see a sample board, Website relaunch, marked Sample. It is created in the app's database on first load, including in the published app, and its workspace has no members, so no account can change it. An edit asks visitors to sign in and asks signed-in users to create a workspace. Create workspace adds a private board, My first board, with Ideas, In progress, In review, and Done lists. Boards created later with the + next to Boards in the sidebar start with To do, In progress, and Done.
For a third role, say where it is enforced:
Add a Viewer role to workspaces. Viewers can open every board in the workspace,
including private ones, but cannot move cards, edit card details, or comment.
Enforce this in the server functions, not only by hiding buttons, and let
owners choose the role when creating an invitation link.4. Choose a starting point
Download Layerwise, sign in, and select a team.
Cardy includes everything above, plus a landing page and four views of each board:
- Board: lists of cards you drag between.
- List: a table sortable by priority, title, status, due date, and assignees.
- Calendar: a month of due dates, with a list of undated cards.
- Insights: open, overdue, and due-soon counts, checklist progress, cards by list, open cards by priority, and open work per member.

Search matches titles, descriptions, labels, and checklist items, and Filter narrows the board, list, and calendar by label, assignee, priority, and due date. In the sidebar, My tasks lists your cards on the current board, Activity shows the board's recent history, and Archived holds archived boards. Press ? to see keyboard shortcuts, such as N for a new card and / for search.
Cardy has no attachments, email notifications, reminders, or real-time collaboration. To start from it, open Cardy, choose Use this template, pick a team and project name in Layerwise, then choose Copy to Layerwise. Other workflows are in the template gallery.
To start from scratch, enter a description in Describe the app you want to build... on the team home page, including the decisions above:
Build a team kanban board. Users create workspaces; the creator is the owner
and invites members with links that expire after seven days. Boards have
ordered lists, and lists have ordered cards with a title, description,
priority, labels, assignees, due date, and checklist. Save everything in the
project database. Members drag cards between lists, with a move menu for touch
and keyboard. Add List, Calendar, and Insights views of each board. Boards are
private unless an owner makes one public and read-only. Archive boards and
cards instead of deleting them, and enforce every rule on the server.A blank start lets you choose each behavior, but you must verify each one yourself. The prompting guide explains how to describe users, data, and screens.
5. Test with two accounts
Once the local preview loads, choose Try the demo while signed out. The Website relaunch sample should open with lists, labels, and due dates, and choosing New card should open Sign in to Cardy instead of adding a card.
Create two test accounts with Add user in Authentication: an owner and a teammate. Give both a password, and turn on Email verified for the teammate, because Cardy accepts invitations only from verified addresses. Then:
- Sign in as the owner and choose Create workspace. Add cards with Add card, open one, set a priority and due date, add checklist items, and choose Save. Drag a card to another list, reorder two cards, and refresh; the order and details should hold.
- Open Calendar and drag a card that is not in Done onto yesterday. Its date should turn red, and Insights should count it as Overdue.
- Choose Invite, enter the teammate's address, and copy the link. Open the preview in your default browser from the preview header, sign in as the teammate, open the link, and choose Accept. The teammate should be able to edit cards, but the board menu should have no Settings or Archive board, and Members should say that only workspace owners can invite or remove members. A revoked or used link, or one opened with another email address, should show an error.
- As the owner, open Settings from the board menu, choose Public, and choose Save. Copy the board link from Share and open it signed out, for example in a private window. Cards should open as Read only. Then choose Archive board, type ARCHIVE to confirm, and reload the link; it should show This board is unavailable.
- Open Database, select Local, and confirm the
positionvalues in thecardtable match the order on screen.
Check phone width last: each card should show its menu, and Calendar should become a list of days. If a check fails, open the preview console from Project actions, or find the failed request in Logs. If the console shows an error you don't recognize, look it up in the vibe coding errors reference.
6. Publish and improve it
Choose Publish in the preview header, then Publish in the menu, and open the live URL when the release finishes. Local and Online use separate databases, so test workspaces and accounts are not copied, but the sample board appears on the first visit. Repeat the invitation check with a real teammate: they sign up with the invited address, verify it with an email code, and accept. The publishing guide covers release status.
Choose the next change from what you observe. Analytics shows pageviews and visitors, not what anyone does on a board. If a card will not save, select Online in Logs and find the failing request. A common next request is one list of work across boards:
Change My tasks to show cards assigned to me on every board in every workspace
I belong to, grouped into Overdue, Due this week, Later, and No due date. Skip
archived boards and cards. Selecting a card opens it on its board.Start from Cardy if workspaces, lists, and cards fit how your team plans work, or from a prompt if you need a different model. Either way, settle ordering, access, and archiving before adding features. For the full project workflow, follow the Quick start.