Skip to content

CRM · React

CRM pipeline

Contacts table plus a five-stage deal pipeline board with inline stage changes, all persisted locally.
CRM pipeline starter, as built from its own files
Starter screenshot captured from this template's own build at 1440×900. It shows the template as it ships, not output generated from a prompt.

What you get

A small CRM with two views over the same data: a searchable contacts table with stage selects and delete, and a kanban-style pipeline (Lead → Qualified → Proposal → Won/Lost) where deals move between columns with keyboard-accessible buttons. State lives in localStorage via a typed hook so the app works offline; swap src/store.ts for API calls when you add a backend.

Files, exactly as copied.

Exactly what is copied into a new project: 14 files, nothing generated.

Raw data: GET /api/v1/templates/vite-react-crm

src/Pipeline.tsx
src/Pipeline.tsx
import { STAGES, STAGE_TONE, initials, type Stage, type useContacts } from "./store"; const money = (n: number) => "$" + n.toLocaleString(); export function Pipeline({ store }: { store: ReturnType<typeof useContacts> }) {  const move = (id: string, dir: -1 | 1, current: Stage) => {    const i = STAGES.indexOf(current);    const next = STAGES[i + dir];    if (next) store.update(id, { stage: next });  };  return (    <div className="grid gap-3 md:grid-cols-5">      {STAGES.map((stage) => {        const items = store.contacts.filter((c) => c.stage === stage);        const total = items.reduce((s, c) => s + c.value, 0);        return (          <section key={stage} aria-labelledby={"stage-" + stage} className="rounded-2xl border border-slate-200 bg-slate-100/60 p-2.5">            <h2 id={"stage-" + stage} className="flex items-center justify-between px-1.5 pb-1 pt-1 text-sm font-medium">              <span className="flex items-center gap-2">                <span className={"h-2 w-2 rounded-full " + STAGE_TONE[stage].dot} />                {stage}                <span className="rounded-full bg-white px-1.5 text-xs text-slate-500 shadow-sm">{items.length}</span>              </span>              <span className="text-xs font-normal text-slate-500">{money(total)}</span>            </h2>            <ul className="mt-2 space-y-2">              {items.map((c) => (                <li key={c.id} className="rounded-xl border border-slate-200 bg-white p-3 text-sm shadow-sm">                  <div className="flex items-start justify-between gap-2">                    <p className="font-medium leading-snug">{c.company}</p>                    <span className="grid h-6 w-6 shrink-0 place-items-center rounded-full bg-gradient-to-br from-sky-100 to-sky-100 text-[10px] font-semibold text-slate-700">{initials(c.name)}</span>                  </div>                  <p className="text-xs text-slate-500">{c.name}</p>                  {c.note ? <p className="mt-2 line-clamp-2 text-xs leading-relaxed text-slate-500">{c.note}</p> : null}                  <div className="mt-3 flex items-center justify-between">                    <span className="rounded-md bg-slate-100 px-1.5 py-0.5 text-xs font-medium tabular-nums text-slate-700">{money(c.value)}</span>                    <span className="flex gap-1">                      <button type="button" onClick={() => move(c.id, -1, c.stage)} disabled={stage === STAGES[0]} className="grid h-6 w-6 place-items-center rounded-md border border-slate-200 text-xs hover:bg-slate-50 disabled:opacity-30" aria-label={"Move " + c.company + " back"}>                        ←                      </button>                      <button type="button" onClick={() => move(c.id, 1, c.stage)} disabled={stage === STAGES[STAGES.length - 1]} className="grid h-6 w-6 place-items-center rounded-md border border-slate-200 text-xs hover:bg-slate-50 disabled:opacity-30" aria-label={"Move " + c.company + " forward"}>                        →                      </button>                    </span>                  </div>                </li>              ))}              {items.length === 0 ? <li className="rounded-xl border border-dashed border-slate-300 p-4 text-center text-xs text-slate-400">No deals here yet</li> : null}            </ul>          </section>        );      })}    </div>  );}

Remix

Remix this template.

Describe what to change and the agent starts from CRM pipeline's files. The box is already started for you: finish “Start from CRM pipeline and …”

Agent ready

Creates a free account first; your idea is carried over.

Dependencies

Documented from the template's package.json. The runtime has a prebuilt dependency set for Vite + React + TypeScript, so installs are fast.

  • react^19.1.0
  • react-dom^19.1.0
  • vite^6.3.0
  • @vitejs/plugin-react^4.4.0
  • tailwindcss^4.1.0
  • @tailwindcss/vite^4.1.0
  • typescript^5.8.0

How it runs

Framework
Vite + React + TypeScript
Dev command
npm run dev
Build command
npm run build
Output directory
dist
Port
5173
Entry route
/

Projects run in an isolated sandbox with a live preview. Read the projects documentation for settings, snapshots and deployment.

All templates

Build on CRM pipeline

Create a free account, start from this template, and ask the AI agent to turn it into your app.