Skip to content
项目

关于

Signalt's enrichment table, open source: a 1:1 showcase and a shadcn registry item

网站与应用开发

这些数字如何统计

45 星标3 复刻 +3 24小时

实测星标增长

24小时
+3
7天
正在收集历史
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Signalt's enrichment table running the CEO column

Signalt table

The enrichment table from Signalt, open sourced. A spreadsheet you run: pick a column, press play, and every row gets enriched while you watch.

Open the live demo →

  • Enrichment columns that run, with coverage per column, waterfall sources and credits
  • Filters, sorting, hide and drag columns, drag to select, a totals row, right-click menus
  • A record sheet for each row, a column assistant ("Ask") and a "runs itself" flow
  • Row virtualization in a real <table role="grid">, keyboard and screen reader support, light and dark mode
  • Runs entirely in the browser on demo data: no account, no backend, no API keys

Use the table in your app

The table at the core of the page installs with the shadcn CLI:

npx shadcn@latest add https://signalt-table.vercel.app/r/record-table.json

It copies the source into components/record-table/ and installs its dependencies. The code is yours.

import { RecordTable, type RecordColumn } from "@/components/record-table/record-table"

type Company = { id: string; name: string; stage: string; revenue: number | null }

const columns: RecordColumn<Company>[] = [
  { id: "name", header: "Company", type: "text", accessor: (r) => r.name, editable: true },
  { id: "revenue", header: "Revenue", type: "currency", accessor: (r) => r.revenue, aggregate: "sum" },
  {
    id: "stage",
    header: "Stage",
    type: "tag",
    accessor: (r) => r.stage,
    editable: true,
    options: [
      { value: "New", tone: "blue" },
      { value: "Won", tone: "green" },
    ],
  },
]

export function Companies({ rows }: { rows: Company[] }) {
  return (
    <div style={{ height: 600, display: "flex" }}>
      <RecordTable data={rows} getRowId={(r) => r.id} columns={columns} />
    </div>
  )
}

The table fills its parent, so give the parent a height. Sorting, filters, column order, hidden columns, selection and the active cell can each be controlled (sort + onSortChange) or left to the table (defaultSort). Every prop is documented in types.ts, and app/table/demo.tsx shows a fuller example.

It ships with its own look (record-table.css, Inter included). The colors live on the table and its popups, not on :root, so it looks the same in any app and leaves your theme alone. Dark mode follows the .dark class. Override any variable on .rec-root, .rec-pop to restyle it.

What's real and what's simulated

The interface is Signalt's production code, copied file for file. The folder layout mirrors Signalt's apps/web, so changes can be copied across.

The backend is not included. The calls Signalt makes to its servers (registers, website crawling, credits, CRM sync) are answered in the browser from a static snapshot:

lib/demo/showcase.json The table, rows and sidebar, captured from Signalt's demo workspace
lib/showcase/store.ts Prepares the snapshot for the demo and keeps a credit balance
lib/bedrifty, lib/crawl, lib/credits, lib/data, lib/integrations Stand-ins for Signalt's server actions, same names and types

The companies are real Norwegian companies so the logos look right. The people, emails, phone numbers and results are made up. Reloading the page resets everything.

Develop

pnpm install
pnpm dev              # localhost:3000 opens the table
pnpm registry:build   # rebuilds registry-dist/record-table.json

Optional: set DATABASE_URL to a Postgres database (we use Neon) and run db/schema.sql to count installs and store email sign-ups from the bar at the top. Without it, both are logged to the console.

Credits

Made by Codehagen for Signalt. Want the next open-source drop first? Leave your email in the bar at the top of the demo.

Accessible primitives from UI SDK, icons from Hugeicons, the registry format from shadcn/ui.

License

MIT

探索相关项目

加载中…