Repository files navigation

Interlace

Website: interlace.fyi

A cross-project status layer. Interlace deterministically indexes what's pending and what got done across all of your repositories, then answers the one question every multi-project developer keeps asking: "where am I across everything?"

The first surface is a CLI called lace. It scans your tracked repos and ranks what needs attention, so you don't have to mentally re-load the state of a dozen projects every morning.

$ lace status
interlace ▸ 2 blocking · 5 done this week
imigro-app ▸ 6 blocking · 51 done this week
neuromint ▸ 0 blocking · 12 done this week
...

Why

Context lives in too many places: open issues on GitHub, TODO/FIXME markers buried in code, unchecked - [ ] boxes in Markdown plans, branches you pushed and forgot. Interlace collects all of it into one Postgres-backed index and gives you a single ranked view.

Core principle: the collector is a dumb, fast, deterministic indexer. No LLM ever sits in the collection or ranking loop — results are reproducible and auditable. (LLM-powered summaries are an opt-in, on-demand layer planned for later.)

What it collects

SourceWhat it picks up
gitrepo state, recent commits, pushed branches
code commentsTODO / FIXME / HACK markers (via ripgrep), with p0/p1/p2 priority
Markdown- [ ] / - [x] checkboxes in *.md, with priority:: or [P0]/[P1] conventions
GitHubopen/closed issues, opened/merged PRs, and deferred @lace / 📌 PR review comments (token-gated)

Items are content-addressed, so editing a line or shifting code around doesn't churn your index — closing a checkbox or deleting a TODO transitions that item to done in place.

Requirements

  • Node.js ≥ 22 and pnpm 10
  • ripgrep (rg) on your PATH — the code-comment collector shells out to it. Install via brew install ripgrep (macOS) or your package manager. Without it, only the code-comment collector is skipped; everything else still runs.
  • A Postgres database reachable via DATABASE_URL (local Postgres, Docker, or Supabase all work).

Install

git clone https://github.com/maggit/interlace.git
cd interlace
pnpm install
pnpm build

The CLI binary is built to packages/cli/dist/index.js and exposed as lace. You can run it via pnpm --filter @interlace/cli exec lace …, or link it onto your PATH:

pnpm --filter @interlace/cli link --global # makes `lace` available globally

Quickstart

  1. Point at a database. Copy .env.example to .env and set your connection string, or export it directly:

    export DATABASE_URL=postgresql://user:pass@host:5432/postgres

    Need a throwaway Postgres? docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=lace postgres:16-alpine

  2. Apply the schema. A one-time step (re-run after upgrades that ship new migrations — it's idempotent):

    lace db migrate
  3. Register a project.

    lace project add imigro --path /abs/path/to/imigro --github sahara/imigro
  4. Scan — collect the current state of every tracked project (or just one):

    lace scan # all projects
    lace scan imigro # one project
  5. Check status.

    lace status # super-view: every active project, ranked
    lace project-status imigro # one project in detail (alias: lace s imigro)
  6. Close an item straight from the CLI — flips its checkbox [ ]→[x] in the source file and re-scans:

    lace close imigro docs/plan.md:42
  7. Run continuously (optional) — watch files and poll on an interval:

    lace daemon

Command reference

CommandDescription
lace configShow resolved mode, DB target (redacted), and enabled collectors
lace db migrateApply pending migrations to the configured database
lace project add <slug> --path <abs> [--github <owner/repo>]Register a project
lace project listList registered projects
lace scan [slug]Force a collect now — all projects, or one
lace close <slug> <path:line>Mark a checkbox item done and re-scan
lace statusSuper-view: all active projects, ranked
lace project-status <slug> (alias s, or lace <slug> status)Single project: repo line, done-this-week, pending
lace daemonWatch projects + poll on an interval, scanning continuously

Run lace config first if a command can't find your database — it prints exactly what Interlace resolved.

Configuration

Configuration is layered (later overrides earlier): built-in defaults → ~/.config/interlace/config.toml.interlace.toml in the repo → environment variables → command flags. The common knobs:

VariablePurpose
DATABASE_URLPostgres connection string (required for local mode)
GITHUB_TOKENEnables the GitHub collector; absent → GitHub collection is silently disabled
defer_tokenMarker that turns a PR review comment into a tracked item (default @lace)

See .env.example for the full set.

Two non-sensitive groups can also be overridden from a TOML config file (~/.config/interlace/config.toml or a project-local .interlace.toml):

[daemon]
pollIntervalMs = 60000# full poll cadence (default 300000)debounceMs = 1000# quiet period after a file change before re-scan (default 2000)
[ranking]
p2PressureCap = 30# saturation cap on low-priority (P2) backlog pressure,# so a big pile of low-priority items can't bury real P0 work

lace config prints the resolved daemon intervals so you can confirm an override took effect.

Architecture

Interlace is a pnpm + Turborepo monorepo:

packages/
├─ core/ Drizzle schema + migrations, config resolution, ranking,
│ idempotent ingest engine, super-view / project-status queries
├─ collectors/ Pure, deterministic collectors: git, code-comment, markdown, github
├─ cli/ The `lace` command (Commander) — runs collectors inline
├─ workers/ Background-job skeleton (reserved for backend mode)
├─ pollers/ Scheduled-poll skeleton (reserved for backend mode)
└─ api/ HTTP API skeleton (reserved for backend mode)
  • core owns the database (Postgres via Drizzle ORM + postgres.js) and the ingest engine, which is transaction-wrapped and idempotent: re-scanning never duplicates work, and items auto-complete when their source disappears.
  • collectors are pure functions over a repo's current state — given a path (and optionally a GitHub token) they return items and activity. They never touch the database directly.
  • Tests run against pglite (in-process Postgres) — no Docker needed in CI — plus real git, rg, and chokidar, and an in-memory fake GitHub client.

Development

pnpm install
pnpm build # turbo build, respects the dependency graph
pnpm test# vitest across all packages
pnpm typecheck # tsc --noEmit across all packages
pnpm lint:deps # dependency-cruiser: enforce package boundaries

@interlace/core must be built before packages that import it; turbo and the lint:deps script handle that ordering for you.

See CONTRIBUTING.md for the contribution workflow, coding conventions, and how to add a new collector; CHANGELOG.md for the release history; and SECURITY.md for how to report a vulnerability.

Status & roadmap

v1 (local mode) is complete: all collectors, idempotent ingest with auto-completion, ranking, and the lace CLI including a continuous daemon.

Designed-for but not yet built: backend mode (the api/workers/pollers packages deployed with a Redis/BullMQ queue), a menu-bar app, an MCP server, and lace brief (on-demand LLM summaries). Contributions toward any of these are welcome.

License

MIT © Raquel Hernandez

About

A cross-project status layer — deterministically index what's pending and what got done across all your repos. CLI: lace.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all \u003cpre\u003e\u003ccode\u003e blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks"); } } catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); } })(); (function(){ try { var __m = "github.com"; var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

Interlace

Website: interlace.fyi

A cross-project status layer. Interlace deterministically indexes what's pending and what got done across all of your repositories, then answers the one question every multi-project developer keeps asking: "where am I across everything?"

The first surface is a CLI called lace. It scans your tracked repos and ranks what needs attention, so you don't have to mentally re-load the state of a dozen projects every morning.

$ lace status
interlace ▸ 2 blocking · 5 done this week
imigro-app ▸ 6 blocking · 51 done this week
neuromint ▸ 0 blocking · 12 done this week
...

Why

Context lives in too many places: open issues on GitHub, TODO/FIXME markers buried in code, unchecked - [ ] boxes in Markdown plans, branches you pushed and forgot. Interlace collects all of it into one Postgres-backed index and gives you a single ranked view.

Core principle: the collector is a dumb, fast, deterministic indexer. No LLM ever sits in the collection or ranking loop — results are reproducible and auditable. (LLM-powered summaries are an opt-in, on-demand layer planned for later.)

What it collects

SourceWhat it picks up
gitrepo state, recent commits, pushed branches
code commentsTODO / FIXME / HACK markers (via ripgrep), with p0/p1/p2 priority
Markdown- [ ] / - [x] checkboxes in *.md, with priority:: or [P0]/[P1] conventions
GitHubopen/closed issues, opened/merged PRs, and deferred @lace / 📌 PR review comments (token-gated)

Items are content-addressed, so editing a line or shifting code around doesn't churn your index — closing a checkbox or deleting a TODO transitions that item to done in place.

Requirements

  • Node.js ≥ 22 and pnpm 10
  • ripgrep (rg) on your PATH — the code-comment collector shells out to it. Install via brew install ripgrep (macOS) or your package manager. Without it, only the code-comment collector is skipped; everything else still runs.
  • A Postgres database reachable via DATABASE_URL (local Postgres, Docker, or Supabase all work).

Install

git clone https://github.com/maggit/interlace.git
cd interlace
pnpm install
pnpm build

The CLI binary is built to packages/cli/dist/index.js and exposed as lace. You can run it via pnpm --filter @interlace/cli exec lace …, or link it onto your PATH:

pnpm --filter @interlace/cli link --global # makes `lace` available globally

Quickstart

  1. Point at a database. Copy .env.example to .env and set your connection string, or export it directly:

    export DATABASE_URL=postgresql://user:pass@host:5432/postgres

    Need a throwaway Postgres? docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=lace postgres:16-alpine

  2. Apply the schema. A one-time step (re-run after upgrades that ship new migrations — it's idempotent):

    lace db migrate
  3. Register a project.

    lace project add imigro --path /abs/path/to/imigro --github sahara/imigro
  4. Scan — collect the current state of every tracked project (or just one):

    lace scan # all projects
    lace scan imigro # one project
  5. Check status.

    lace status # super-view: every active project, ranked
    lace project-status imigro # one project in detail (alias: lace s imigro)
  6. Close an item straight from the CLI — flips its checkbox [ ]→[x] in the source file and re-scans:

    lace close imigro docs/plan.md:42
  7. Run continuously (optional) — watch files and poll on an interval:

    lace daemon

Command reference

CommandDescription
lace configShow resolved mode, DB target (redacted), and enabled collectors
lace db migrateApply pending migrations to the configured database
lace project add <slug> --path <abs> [--github <owner/repo>]Register a project
lace project listList registered projects
lace scan [slug]Force a collect now — all projects, or one
lace close <slug> <path:line>Mark a checkbox item done and re-scan
lace statusSuper-view: all active projects, ranked
lace project-status <slug> (alias s, or lace <slug> status)Single project: repo line, done-this-week, pending
lace daemonWatch projects + poll on an interval, scanning continuously

Run lace config first if a command can't find your database — it prints exactly what Interlace resolved.

Configuration

Configuration is layered (later overrides earlier): built-in defaults → ~/.config/interlace/config.toml.interlace.toml in the repo → environment variables → command flags. The common knobs:

VariablePurpose
DATABASE_URLPostgres connection string (required for local mode)
GITHUB_TOKENEnables the GitHub collector; absent → GitHub collection is silently disabled
defer_tokenMarker that turns a PR review comment into a tracked item (default @lace)

See .env.example for the full set.

Two non-sensitive groups can also be overridden from a TOML config file (~/.config/interlace/config.toml or a project-local .interlace.toml):

[daemon]
pollIntervalMs = 60000# full poll cadence (default 300000)debounceMs = 1000# quiet period after a file change before re-scan (default 2000)
[ranking]
p2PressureCap = 30# saturation cap on low-priority (P2) backlog pressure,# so a big pile of low-priority items can't bury real P0 work

lace config prints the resolved daemon intervals so you can confirm an override took effect.

Architecture

Interlace is a pnpm + Turborepo monorepo:

packages/
├─ core/ Drizzle schema + migrations, config resolution, ranking,
│ idempotent ingest engine, super-view / project-status queries
├─ collectors/ Pure, deterministic collectors: git, code-comment, markdown, github
├─ cli/ The `lace` command (Commander) — runs collectors inline
├─ workers/ Background-job skeleton (reserved for backend mode)
├─ pollers/ Scheduled-poll skeleton (reserved for backend mode)
└─ api/ HTTP API skeleton (reserved for backend mode)
  • core owns the database (Postgres via Drizzle ORM + postgres.js) and the ingest engine, which is transaction-wrapped and idempotent: re-scanning never duplicates work, and items auto-complete when their source disappears.
  • collectors are pure functions over a repo's current state — given a path (and optionally a GitHub token) they return items and activity. They never touch the database directly.
  • Tests run against pglite (in-process Postgres) — no Docker needed in CI — plus real git, rg, and chokidar, and an in-memory fake GitHub client.

Development

pnpm install
pnpm build # turbo build, respects the dependency graph
pnpm test# vitest across all packages
pnpm typecheck # tsc --noEmit across all packages
pnpm lint:deps # dependency-cruiser: enforce package boundaries

@interlace/core must be built before packages that import it; turbo and the lint:deps script handle that ordering for you.

See CONTRIBUTING.md for the contribution workflow, coding conventions, and how to add a new collector; CHANGELOG.md for the release history; and SECURITY.md for how to report a vulnerability.

Status & roadmap

v1 (local mode) is complete: all collectors, idempotent ingest with auto-completion, ranking, and the lace CLI including a continuous daemon.

Designed-for but not yet built: backend mode (the api/workers/pollers packages deployed with a Redis/BullMQ queue), a menu-bar app, an MCP server, and lace brief (on-demand LLM summaries). Contributions toward any of these are welcome.

License

MIT © Raquel Hernandez

About

A cross-project status layer — deterministically index what's pending and what got done across all your repos. CLI: lace.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Interlace

Website: interlace.fyi

A cross-project status layer. Interlace deterministically indexes what's pending and what got done across all of your repositories, then answers the one question every multi-project developer keeps asking: "where am I across everything?"

The first surface is a CLI called lace. It scans your tracked repos and ranks what needs attention, so you don't have to mentally re-load the state of a dozen projects every morning.

$ lace status
interlace ▸ 2 blocking · 5 done this week
imigro-app ▸ 6 blocking · 51 done this week
neuromint ▸ 0 blocking · 12 done this week
...

Why

Context lives in too many places: open issues on GitHub, TODO/FIXME markers buried in code, unchecked - [ ] boxes in Markdown plans, branches you pushed and forgot. Interlace collects all of it into one Postgres-backed index and gives you a single ranked view.

Core principle: the collector is a dumb, fast, deterministic indexer. No LLM ever sits in the collection or ranking loop — results are reproducible and auditable. (LLM-powered summaries are an opt-in, on-demand layer planned for later.)

What it collects

SourceWhat it picks up
gitrepo state, recent commits, pushed branches
code commentsTODO / FIXME / HACK markers (via ripgrep), with p0/p1/p2 priority
Markdown- [ ] / - [x] checkboxes in *.md, with priority:: or [P0]/[P1] conventions
GitHubopen/closed issues, opened/merged PRs, and deferred @lace / 📌 PR review comments (token-gated)

Items are content-addressed, so editing a line or shifting code around doesn't churn your index — closing a checkbox or deleting a TODO transitions that item to done in place.

Requirements

  • Node.js ≥ 22 and pnpm 10
  • ripgrep (rg) on your PATH — the code-comment collector shells out to it. Install via brew install ripgrep (macOS) or your package manager. Without it, only the code-comment collector is skipped; everything else still runs.
  • A Postgres database reachable via DATABASE_URL (local Postgres, Docker, or Supabase all work).

Install

git clone https://github.com/maggit/interlace.git
cd interlace
pnpm install
pnpm build

The CLI binary is built to packages/cli/dist/index.js and exposed as lace. You can run it via pnpm --filter @interlace/cli exec lace …, or link it onto your PATH:

pnpm --filter @interlace/cli link --global # makes `lace` available globally

Quickstart

  1. Point at a database. Copy .env.example to .env and set your connection string, or export it directly:

    export DATABASE_URL=postgresql://user:pass@host:5432/postgres

    Need a throwaway Postgres? docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=lace postgres:16-alpine

  2. Apply the schema. A one-time step (re-run after upgrades that ship new migrations — it's idempotent):

    lace db migrate
  3. Register a project.

    lace project add imigro --path /abs/path/to/imigro --github sahara/imigro
  4. Scan — collect the current state of every tracked project (or just one):

    lace scan # all projects
    lace scan imigro # one project
  5. Check status.

    lace status # super-view: every active project, ranked
    lace project-status imigro # one project in detail (alias: lace s imigro)
  6. Close an item straight from the CLI — flips its checkbox [ ]→[x] in the source file and re-scans:

    lace close imigro docs/plan.md:42
  7. Run continuously (optional) — watch files and poll on an interval:

    lace daemon

Command reference

CommandDescription
lace configShow resolved mode, DB target (redacted), and enabled collectors
lace db migrateApply pending migrations to the configured database
lace project add <slug> --path <abs> [--github <owner/repo>]Register a project
lace project listList registered projects
lace scan [slug]Force a collect now — all projects, or one
lace close <slug> <path:line>Mark a checkbox item done and re-scan
lace statusSuper-view: all active projects, ranked
lace project-status <slug> (alias s, or lace <slug> status)Single project: repo line, done-this-week, pending
lace daemonWatch projects + poll on an interval, scanning continuously

Run lace config first if a command can't find your database — it prints exactly what Interlace resolved.

Configuration

Configuration is layered (later overrides earlier): built-in defaults → ~/.config/interlace/config.toml.interlace.toml in the repo → environment variables → command flags. The common knobs:

VariablePurpose
DATABASE_URLPostgres connection string (required for local mode)
GITHUB_TOKENEnables the GitHub collector; absent → GitHub collection is silently disabled
defer_tokenMarker that turns a PR review comment into a tracked item (default @lace)

See .env.example for the full set.

Two non-sensitive groups can also be overridden from a TOML config file (~/.config/interlace/config.toml or a project-local .interlace.toml):

[daemon]
pollIntervalMs = 60000# full poll cadence (default 300000)debounceMs = 1000# quiet period after a file change before re-scan (default 2000)
[ranking]
p2PressureCap = 30# saturation cap on low-priority (P2) backlog pressure,# so a big pile of low-priority items can't bury real P0 work

lace config prints the resolved daemon intervals so you can confirm an override took effect.

Architecture

Interlace is a pnpm + Turborepo monorepo:

packages/
├─ core/ Drizzle schema + migrations, config resolution, ranking,
│ idempotent ingest engine, super-view / project-status queries
├─ collectors/ Pure, deterministic collectors: git, code-comment, markdown, github
├─ cli/ The `lace` command (Commander) — runs collectors inline
├─ workers/ Background-job skeleton (reserved for backend mode)
├─ pollers/ Scheduled-poll skeleton (reserved for backend mode)
└─ api/ HTTP API skeleton (reserved for backend mode)
  • core owns the database (Postgres via Drizzle ORM + postgres.js) and the ingest engine, which is transaction-wrapped and idempotent: re-scanning never duplicates work, and items auto-complete when their source disappears.
  • collectors are pure functions over a repo's current state — given a path (and optionally a GitHub token) they return items and activity. They never touch the database directly.
  • Tests run against pglite (in-process Postgres) — no Docker needed in CI — plus real git, rg, and chokidar, and an in-memory fake GitHub client.

Development

pnpm install
pnpm build # turbo build, respects the dependency graph
pnpm test# vitest across all packages
pnpm typecheck # tsc --noEmit across all packages
pnpm lint:deps # dependency-cruiser: enforce package boundaries

@interlace/core must be built before packages that import it; turbo and the lint:deps script handle that ordering for you.

See CONTRIBUTING.md for the contribution workflow, coding conventions, and how to add a new collector; CHANGELOG.md for the release history; and SECURITY.md for how to report a vulnerability.

Status & roadmap

v1 (local mode) is complete: all collectors, idempotent ingest with auto-completion, ranking, and the lace CLI including a continuous daemon.

Designed-for but not yet built: backend mode (the api/workers/pollers packages deployed with a Redis/BullMQ queue), a menu-bar app, an MCP server, and lace brief (on-demand LLM summaries). Contributions toward any of these are welcome.

License

MIT © Raquel Hernandez

About

A cross-project status layer — deterministically index what's pending and what got done across all your repos. CLI: lace.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length \u003e 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Interlace

Website: interlace.fyi

A cross-project status layer. Interlace deterministically indexes what's pending and what got done across all of your repositories, then answers the one question every multi-project developer keeps asking: "where am I across everything?"

The first surface is a CLI called lace. It scans your tracked repos and ranks what needs attention, so you don't have to mentally re-load the state of a dozen projects every morning.

$ lace status
interlace ▸ 2 blocking · 5 done this week
imigro-app ▸ 6 blocking · 51 done this week
neuromint ▸ 0 blocking · 12 done this week
...

Why

Context lives in too many places: open issues on GitHub, TODO/FIXME markers buried in code, unchecked - [ ] boxes in Markdown plans, branches you pushed and forgot. Interlace collects all of it into one Postgres-backed index and gives you a single ranked view.

Core principle: the collector is a dumb, fast, deterministic indexer. No LLM ever sits in the collection or ranking loop — results are reproducible and auditable. (LLM-powered summaries are an opt-in, on-demand layer planned for later.)

What it collects

SourceWhat it picks up
gitrepo state, recent commits, pushed branches
code commentsTODO / FIXME / HACK markers (via ripgrep), with p0/p1/p2 priority
Markdown- [ ] / - [x] checkboxes in *.md, with priority:: or [P0]/[P1] conventions
GitHubopen/closed issues, opened/merged PRs, and deferred @lace / 📌 PR review comments (token-gated)

Items are content-addressed, so editing a line or shifting code around doesn't churn your index — closing a checkbox or deleting a TODO transitions that item to done in place.

Requirements

  • Node.js ≥ 22 and pnpm 10
  • ripgrep (rg) on your PATH — the code-comment collector shells out to it. Install via brew install ripgrep (macOS) or your package manager. Without it, only the code-comment collector is skipped; everything else still runs.
  • A Postgres database reachable via DATABASE_URL (local Postgres, Docker, or Supabase all work).

Install

git clone https://github.com/maggit/interlace.git
cd interlace
pnpm install
pnpm build

The CLI binary is built to packages/cli/dist/index.js and exposed as lace. You can run it via pnpm --filter @interlace/cli exec lace …, or link it onto your PATH:

pnpm --filter @interlace/cli link --global # makes `lace` available globally

Quickstart

  1. Point at a database. Copy .env.example to .env and set your connection string, or export it directly:

    export DATABASE_URL=postgresql://user:pass@host:5432/postgres

    Need a throwaway Postgres? docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=lace postgres:16-alpine

  2. Apply the schema. A one-time step (re-run after upgrades that ship new migrations — it's idempotent):

    lace db migrate
  3. Register a project.

    lace project add imigro --path /abs/path/to/imigro --github sahara/imigro
  4. Scan — collect the current state of every tracked project (or just one):

    lace scan # all projects
    lace scan imigro # one project
  5. Check status.

    lace status # super-view: every active project, ranked
    lace project-status imigro # one project in detail (alias: lace s imigro)
  6. Close an item straight from the CLI — flips its checkbox [ ]→[x] in the source file and re-scans:

    lace close imigro docs/plan.md:42
  7. Run continuously (optional) — watch files and poll on an interval:

    lace daemon

Command reference

CommandDescription
lace configShow resolved mode, DB target (redacted), and enabled collectors
lace db migrateApply pending migrations to the configured database
lace project add <slug> --path <abs> [--github <owner/repo>]Register a project
lace project listList registered projects
lace scan [slug]Force a collect now — all projects, or one
lace close <slug> <path:line>Mark a checkbox item done and re-scan
lace statusSuper-view: all active projects, ranked
lace project-status <slug> (alias s, or lace <slug> status)Single project: repo line, done-this-week, pending
lace daemonWatch projects + poll on an interval, scanning continuously

Run lace config first if a command can't find your database — it prints exactly what Interlace resolved.

Configuration

Configuration is layered (later overrides earlier): built-in defaults → ~/.config/interlace/config.toml.interlace.toml in the repo → environment variables → command flags. The common knobs:

VariablePurpose
DATABASE_URLPostgres connection string (required for local mode)
GITHUB_TOKENEnables the GitHub collector; absent → GitHub collection is silently disabled
defer_tokenMarker that turns a PR review comment into a tracked item (default @lace)

See .env.example for the full set.

Two non-sensitive groups can also be overridden from a TOML config file (~/.config/interlace/config.toml or a project-local .interlace.toml):

[daemon]
pollIntervalMs = 60000# full poll cadence (default 300000)debounceMs = 1000# quiet period after a file change before re-scan (default 2000)
[ranking]
p2PressureCap = 30# saturation cap on low-priority (P2) backlog pressure,# so a big pile of low-priority items can't bury real P0 work

lace config prints the resolved daemon intervals so you can confirm an override took effect.

Architecture

Interlace is a pnpm + Turborepo monorepo:

packages/
├─ core/ Drizzle schema + migrations, config resolution, ranking,
│ idempotent ingest engine, super-view / project-status queries
├─ collectors/ Pure, deterministic collectors: git, code-comment, markdown, github
├─ cli/ The `lace` command (Commander) — runs collectors inline
├─ workers/ Background-job skeleton (reserved for backend mode)
├─ pollers/ Scheduled-poll skeleton (reserved for backend mode)
└─ api/ HTTP API skeleton (reserved for backend mode)
  • core owns the database (Postgres via Drizzle ORM + postgres.js) and the ingest engine, which is transaction-wrapped and idempotent: re-scanning never duplicates work, and items auto-complete when their source disappears.
  • collectors are pure functions over a repo's current state — given a path (and optionally a GitHub token) they return items and activity. They never touch the database directly.
  • Tests run against pglite (in-process Postgres) — no Docker needed in CI — plus real git, rg, and chokidar, and an in-memory fake GitHub client.

Development

pnpm install
pnpm build # turbo build, respects the dependency graph
pnpm test# vitest across all packages
pnpm typecheck # tsc --noEmit across all packages
pnpm lint:deps # dependency-cruiser: enforce package boundaries

@interlace/core must be built before packages that import it; turbo and the lint:deps script handle that ordering for you.

See CONTRIBUTING.md for the contribution workflow, coding conventions, and how to add a new collector; CHANGELOG.md for the release history; and SECURITY.md for how to report a vulnerability.

Status & roadmap

v1 (local mode) is complete: all collectors, idempotent ingest with auto-completion, ranking, and the lace CLI including a continuous daemon.

Designed-for but not yet built: backend mode (the api/workers/pollers packages deployed with a Redis/BullMQ queue), a menu-bar app, an MCP server, and lace brief (on-demand LLM summaries). Contributions toward any of these are welcome.

License

MIT © Raquel Hernandez

About

A cross-project status layer — deterministically index what's pending and what got done across all your repos. CLI: lace.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

Interlace

Website: interlace.fyi

A cross-project status layer. Interlace deterministically indexes what's pending and what got done across all of your repositories, then answers the one question every multi-project developer keeps asking: "where am I across everything?"

The first surface is a CLI called lace. It scans your tracked repos and ranks what needs attention, so you don't have to mentally re-load the state of a dozen projects every morning.

$ lace status
interlace ▸ 2 blocking · 5 done this week
imigro-app ▸ 6 blocking · 51 done this week
neuromint ▸ 0 blocking · 12 done this week
...

Why

Context lives in too many places: open issues on GitHub, TODO/FIXME markers buried in code, unchecked - [ ] boxes in Markdown plans, branches you pushed and forgot. Interlace collects all of it into one Postgres-backed index and gives you a single ranked view.

Core principle: the collector is a dumb, fast, deterministic indexer. No LLM ever sits in the collection or ranking loop — results are reproducible and auditable. (LLM-powered summaries are an opt-in, on-demand layer planned for later.)

What it collects

SourceWhat it picks up
gitrepo state, recent commits, pushed branches
code commentsTODO / FIXME / HACK markers (via ripgrep), with p0/p1/p2 priority
Markdown- [ ] / - [x] checkboxes in *.md, with priority:: or [P0]/[P1] conventions
GitHubopen/closed issues, opened/merged PRs, and deferred @lace / 📌 PR review comments (token-gated)

Items are content-addressed, so editing a line or shifting code around doesn't churn your index — closing a checkbox or deleting a TODO transitions that item to done in place.

Requirements

  • Node.js ≥ 22 and pnpm 10
  • ripgrep (rg) on your PATH — the code-comment collector shells out to it. Install via brew install ripgrep (macOS) or your package manager. Without it, only the code-comment collector is skipped; everything else still runs.
  • A Postgres database reachable via DATABASE_URL (local Postgres, Docker, or Supabase all work).

Install

git clone https://github.com/maggit/interlace.git
cd interlace
pnpm install
pnpm build

The CLI binary is built to packages/cli/dist/index.js and exposed as lace. You can run it via pnpm --filter @interlace/cli exec lace …, or link it onto your PATH:

pnpm --filter @interlace/cli link --global # makes `lace` available globally

Quickstart

  1. Point at a database. Copy .env.example to .env and set your connection string, or export it directly:

    export DATABASE_URL=postgresql://user:pass@host:5432/postgres

    Need a throwaway Postgres? docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=lace postgres:16-alpine

  2. Apply the schema. A one-time step (re-run after upgrades that ship new migrations — it's idempotent):

    lace db migrate
  3. Register a project.

    lace project add imigro --path /abs/path/to/imigro --github sahara/imigro
  4. Scan — collect the current state of every tracked project (or just one):

    lace scan # all projects
    lace scan imigro # one project
  5. Check status.

    lace status # super-view: every active project, ranked
    lace project-status imigro # one project in detail (alias: lace s imigro)
  6. Close an item straight from the CLI — flips its checkbox [ ]→[x] in the source file and re-scans:

    lace close imigro docs/plan.md:42
  7. Run continuously (optional) — watch files and poll on an interval:

    lace daemon

Command reference

CommandDescription
lace configShow resolved mode, DB target (redacted), and enabled collectors
lace db migrateApply pending migrations to the configured database
lace project add <slug> --path <abs> [--github <owner/repo>]Register a project
lace project listList registered projects
lace scan [slug]Force a collect now — all projects, or one
lace close <slug> <path:line>Mark a checkbox item done and re-scan
lace statusSuper-view: all active projects, ranked
lace project-status <slug> (alias s, or lace <slug> status)Single project: repo line, done-this-week, pending
lace daemonWatch projects + poll on an interval, scanning continuously

Run lace config first if a command can't find your database — it prints exactly what Interlace resolved.

Configuration

Configuration is layered (later overrides earlier): built-in defaults → ~/.config/interlace/config.toml.interlace.toml in the repo → environment variables → command flags. The common knobs:

VariablePurpose
DATABASE_URLPostgres connection string (required for local mode)
GITHUB_TOKENEnables the GitHub collector; absent → GitHub collection is silently disabled
defer_tokenMarker that turns a PR review comment into a tracked item (default @lace)

See .env.example for the full set.

Two non-sensitive groups can also be overridden from a TOML config file (~/.config/interlace/config.toml or a project-local .interlace.toml):

[daemon]
pollIntervalMs = 60000# full poll cadence (default 300000)debounceMs = 1000# quiet period after a file change before re-scan (default 2000)
[ranking]
p2PressureCap = 30# saturation cap on low-priority (P2) backlog pressure,# so a big pile of low-priority items can't bury real P0 work

lace config prints the resolved daemon intervals so you can confirm an override took effect.

Architecture

Interlace is a pnpm + Turborepo monorepo:

packages/
├─ core/ Drizzle schema + migrations, config resolution, ranking,
│ idempotent ingest engine, super-view / project-status queries
├─ collectors/ Pure, deterministic collectors: git, code-comment, markdown, github
├─ cli/ The `lace` command (Commander) — runs collectors inline
├─ workers/ Background-job skeleton (reserved for backend mode)
├─ pollers/ Scheduled-poll skeleton (reserved for backend mode)
└─ api/ HTTP API skeleton (reserved for backend mode)
  • core owns the database (Postgres via Drizzle ORM + postgres.js) and the ingest engine, which is transaction-wrapped and idempotent: re-scanning never duplicates work, and items auto-complete when their source disappears.
  • collectors are pure functions over a repo's current state — given a path (and optionally a GitHub token) they return items and activity. They never touch the database directly.
  • Tests run against pglite (in-process Postgres) — no Docker needed in CI — plus real git, rg, and chokidar, and an in-memory fake GitHub client.

Development

pnpm install
pnpm build # turbo build, respects the dependency graph
pnpm test# vitest across all packages
pnpm typecheck # tsc --noEmit across all packages
pnpm lint:deps # dependency-cruiser: enforce package boundaries

@interlace/core must be built before packages that import it; turbo and the lint:deps script handle that ordering for you.

See CONTRIBUTING.md for the contribution workflow, coding conventions, and how to add a new collector; CHANGELOG.md for the release history; and SECURITY.md for how to report a vulnerability.

Status & roadmap

v1 (local mode) is complete: all collectors, idempotent ingest with auto-completion, ranking, and the lace CLI including a continuous daemon.

Designed-for but not yet built: backend mode (the api/workers/pollers packages deployed with a Redis/BullMQ queue), a menu-bar app, an MCP server, and lace brief (on-demand LLM summaries). Contributions toward any of these are welcome.

License

MIT © Raquel Hernandez

About

A cross-project status layer — deterministically index what's pending and what got done across all your repos. CLI: lace.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Interlace

Website: interlace.fyi

A cross-project status layer. Interlace deterministically indexes what's pending and what got done across all of your repositories, then answers the one question every multi-project developer keeps asking: "where am I across everything?"

The first surface is a CLI called lace. It scans your tracked repos and ranks what needs attention, so you don't have to mentally re-load the state of a dozen projects every morning.

$ lace status
interlace ▸ 2 blocking · 5 done this week
imigro-app ▸ 6 blocking · 51 done this week
neuromint ▸ 0 blocking · 12 done this week
...

Why

Context lives in too many places: open issues on GitHub, TODO/FIXME markers buried in code, unchecked - [ ] boxes in Markdown plans, branches you pushed and forgot. Interlace collects all of it into one Postgres-backed index and gives you a single ranked view.

Core principle: the collector is a dumb, fast, deterministic indexer. No LLM ever sits in the collection or ranking loop — results are reproducible and auditable. (LLM-powered summaries are an opt-in, on-demand layer planned for later.)

What it collects

SourceWhat it picks up
gitrepo state, recent commits, pushed branches
code commentsTODO / FIXME / HACK markers (via ripgrep), with p0/p1/p2 priority
Markdown- [ ] / - [x] checkboxes in *.md, with priority:: or [P0]/[P1] conventions
GitHubopen/closed issues, opened/merged PRs, and deferred @lace / 📌 PR review comments (token-gated)

Items are content-addressed, so editing a line or shifting code around doesn't churn your index — closing a checkbox or deleting a TODO transitions that item to done in place.

Requirements

  • Node.js ≥ 22 and pnpm 10
  • ripgrep (rg) on your PATH — the code-comment collector shells out to it. Install via brew install ripgrep (macOS) or your package manager. Without it, only the code-comment collector is skipped; everything else still runs.
  • A Postgres database reachable via DATABASE_URL (local Postgres, Docker, or Supabase all work).

Install

git clone https://github.com/maggit/interlace.git
cd interlace
pnpm install
pnpm build

The CLI binary is built to packages/cli/dist/index.js and exposed as lace. You can run it via pnpm --filter @interlace/cli exec lace …, or link it onto your PATH:

pnpm --filter @interlace/cli link --global # makes `lace` available globally

Quickstart

  1. Point at a database. Copy .env.example to .env and set your connection string, or export it directly:

    export DATABASE_URL=postgresql://user:pass@host:5432/postgres

    Need a throwaway Postgres? docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=lace postgres:16-alpine

  2. Apply the schema. A one-time step (re-run after upgrades that ship new migrations — it's idempotent):

    lace db migrate
  3. Register a project.

    lace project add imigro --path /abs/path/to/imigro --github sahara/imigro
  4. Scan — collect the current state of every tracked project (or just one):

    lace scan # all projects
    lace scan imigro # one project
  5. Check status.

    lace status # super-view: every active project, ranked
    lace project-status imigro # one project in detail (alias: lace s imigro)
  6. Close an item straight from the CLI — flips its checkbox [ ]→[x] in the source file and re-scans:

    lace close imigro docs/plan.md:42
  7. Run continuously (optional) — watch files and poll on an interval:

    lace daemon

Command reference

CommandDescription
lace configShow resolved mode, DB target (redacted), and enabled collectors
lace db migrateApply pending migrations to the configured database
lace project add <slug> --path <abs> [--github <owner/repo>]Register a project
lace project listList registered projects
lace scan [slug]Force a collect now — all projects, or one
lace close <slug> <path:line>Mark a checkbox item done and re-scan
lace statusSuper-view: all active projects, ranked
lace project-status <slug> (alias s, or lace <slug> status)Single project: repo line, done-this-week, pending
lace daemonWatch projects + poll on an interval, scanning continuously

Run lace config first if a command can't find your database — it prints exactly what Interlace resolved.

Configuration

Configuration is layered (later overrides earlier): built-in defaults → ~/.config/interlace/config.toml.interlace.toml in the repo → environment variables → command flags. The common knobs:

VariablePurpose
DATABASE_URLPostgres connection string (required for local mode)
GITHUB_TOKENEnables the GitHub collector; absent → GitHub collection is silently disabled
defer_tokenMarker that turns a PR review comment into a tracked item (default @lace)

See .env.example for the full set.

Two non-sensitive groups can also be overridden from a TOML config file (~/.config/interlace/config.toml or a project-local .interlace.toml):

[daemon]
pollIntervalMs = 60000# full poll cadence (default 300000)debounceMs = 1000# quiet period after a file change before re-scan (default 2000)
[ranking]
p2PressureCap = 30# saturation cap on low-priority (P2) backlog pressure,# so a big pile of low-priority items can't bury real P0 work

lace config prints the resolved daemon intervals so you can confirm an override took effect.

Architecture

Interlace is a pnpm + Turborepo monorepo:

packages/
├─ core/ Drizzle schema + migrations, config resolution, ranking,
│ idempotent ingest engine, super-view / project-status queries
├─ collectors/ Pure, deterministic collectors: git, code-comment, markdown, github
├─ cli/ The `lace` command (Commander) — runs collectors inline
├─ workers/ Background-job skeleton (reserved for backend mode)
├─ pollers/ Scheduled-poll skeleton (reserved for backend mode)
└─ api/ HTTP API skeleton (reserved for backend mode)
  • core owns the database (Postgres via Drizzle ORM + postgres.js) and the ingest engine, which is transaction-wrapped and idempotent: re-scanning never duplicates work, and items auto-complete when their source disappears.
  • collectors are pure functions over a repo's current state — given a path (and optionally a GitHub token) they return items and activity. They never touch the database directly.
  • Tests run against pglite (in-process Postgres) — no Docker needed in CI — plus real git, rg, and chokidar, and an in-memory fake GitHub client.

Development

pnpm install
pnpm build # turbo build, respects the dependency graph
pnpm test# vitest across all packages
pnpm typecheck # tsc --noEmit across all packages
pnpm lint:deps # dependency-cruiser: enforce package boundaries

@interlace/core must be built before packages that import it; turbo and the lint:deps script handle that ordering for you.

See CONTRIBUTING.md for the contribution workflow, coding conventions, and how to add a new collector; CHANGELOG.md for the release history; and SECURITY.md for how to report a vulnerability.

Status & roadmap

v1 (local mode) is complete: all collectors, idempotent ingest with auto-completion, ranking, and the lace CLI including a continuous daemon.

Designed-for but not yet built: backend mode (the api/workers/pollers packages deployed with a Redis/BullMQ queue), a menu-bar app, an MCP server, and lace brief (on-demand LLM summaries). Contributions toward any of these are welcome.

License

MIT © Raquel Hernandez

About

A cross-project status layer — deterministically index what's pending and what got done across all your repos. CLI: lace.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Interlace

Website: interlace.fyi

A cross-project status layer. Interlace deterministically indexes what's pending and what got done across all of your repositories, then answers the one question every multi-project developer keeps asking: "where am I across everything?"

The first surface is a CLI called lace. It scans your tracked repos and ranks what needs attention, so you don't have to mentally re-load the state of a dozen projects every morning.

$ lace status
interlace ▸ 2 blocking · 5 done this week
imigro-app ▸ 6 blocking · 51 done this week
neuromint ▸ 0 blocking · 12 done this week
...

Why

Context lives in too many places: open issues on GitHub, TODO/FIXME markers buried in code, unchecked - [ ] boxes in Markdown plans, branches you pushed and forgot. Interlace collects all of it into one Postgres-backed index and gives you a single ranked view.

Core principle: the collector is a dumb, fast, deterministic indexer. No LLM ever sits in the collection or ranking loop — results are reproducible and auditable. (LLM-powered summaries are an opt-in, on-demand layer planned for later.)

What it collects

SourceWhat it picks up
gitrepo state, recent commits, pushed branches
code commentsTODO / FIXME / HACK markers (via ripgrep), with p0/p1/p2 priority
Markdown- [ ] / - [x] checkboxes in *.md, with priority:: or [P0]/[P1] conventions
GitHubopen/closed issues, opened/merged PRs, and deferred @lace / 📌 PR review comments (token-gated)

Items are content-addressed, so editing a line or shifting code around doesn't churn your index — closing a checkbox or deleting a TODO transitions that item to done in place.

Requirements

  • Node.js ≥ 22 and pnpm 10
  • ripgrep (rg) on your PATH — the code-comment collector shells out to it. Install via brew install ripgrep (macOS) or your package manager. Without it, only the code-comment collector is skipped; everything else still runs.
  • A Postgres database reachable via DATABASE_URL (local Postgres, Docker, or Supabase all work).

Install

git clone https://github.com/maggit/interlace.git
cd interlace
pnpm install
pnpm build

The CLI binary is built to packages/cli/dist/index.js and exposed as lace. You can run it via pnpm --filter @interlace/cli exec lace …, or link it onto your PATH:

pnpm --filter @interlace/cli link --global # makes `lace` available globally

Quickstart

  1. Point at a database. Copy .env.example to .env and set your connection string, or export it directly:

    export DATABASE_URL=postgresql://user:pass@host:5432/postgres

    Need a throwaway Postgres? docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=lace postgres:16-alpine

  2. Apply the schema. A one-time step (re-run after upgrades that ship new migrations — it's idempotent):

    lace db migrate
  3. Register a project.

    lace project add imigro --path /abs/path/to/imigro --github sahara/imigro
  4. Scan — collect the current state of every tracked project (or just one):

    lace scan # all projects
    lace scan imigro # one project
  5. Check status.

    lace status # super-view: every active project, ranked
    lace project-status imigro # one project in detail (alias: lace s imigro)
  6. Close an item straight from the CLI — flips its checkbox [ ]→[x] in the source file and re-scans:

    lace close imigro docs/plan.md:42
  7. Run continuously (optional) — watch files and poll on an interval:

    lace daemon

Command reference

CommandDescription
lace configShow resolved mode, DB target (redacted), and enabled collectors
lace db migrateApply pending migrations to the configured database
lace project add <slug> --path <abs> [--github <owner/repo>]Register a project
lace project listList registered projects
lace scan [slug]Force a collect now — all projects, or one
lace close <slug> <path:line>Mark a checkbox item done and re-scan
lace statusSuper-view: all active projects, ranked
lace project-status <slug> (alias s, or lace <slug> status)Single project: repo line, done-this-week, pending
lace daemonWatch projects + poll on an interval, scanning continuously

Run lace config first if a command can't find your database — it prints exactly what Interlace resolved.

Configuration

Configuration is layered (later overrides earlier): built-in defaults → ~/.config/interlace/config.toml.interlace.toml in the repo → environment variables → command flags. The common knobs:

VariablePurpose
DATABASE_URLPostgres connection string (required for local mode)
GITHUB_TOKENEnables the GitHub collector; absent → GitHub collection is silently disabled
defer_tokenMarker that turns a PR review comment into a tracked item (default @lace)

See .env.example for the full set.

Two non-sensitive groups can also be overridden from a TOML config file (~/.config/interlace/config.toml or a project-local .interlace.toml):

[daemon]
pollIntervalMs = 60000# full poll cadence (default 300000)debounceMs = 1000# quiet period after a file change before re-scan (default 2000)
[ranking]
p2PressureCap = 30# saturation cap on low-priority (P2) backlog pressure,# so a big pile of low-priority items can't bury real P0 work

lace config prints the resolved daemon intervals so you can confirm an override took effect.

Architecture

Interlace is a pnpm + Turborepo monorepo:

packages/
├─ core/ Drizzle schema + migrations, config resolution, ranking,
│ idempotent ingest engine, super-view / project-status queries
├─ collectors/ Pure, deterministic collectors: git, code-comment, markdown, github
├─ cli/ The `lace` command (Commander) — runs collectors inline
├─ workers/ Background-job skeleton (reserved for backend mode)
├─ pollers/ Scheduled-poll skeleton (reserved for backend mode)
└─ api/ HTTP API skeleton (reserved for backend mode)
  • core owns the database (Postgres via Drizzle ORM + postgres.js) and the ingest engine, which is transaction-wrapped and idempotent: re-scanning never duplicates work, and items auto-complete when their source disappears.
  • collectors are pure functions over a repo's current state — given a path (and optionally a GitHub token) they return items and activity. They never touch the database directly.
  • Tests run against pglite (in-process Postgres) — no Docker needed in CI — plus real git, rg, and chokidar, and an in-memory fake GitHub client.

Development

pnpm install
pnpm build # turbo build, respects the dependency graph
pnpm test# vitest across all packages
pnpm typecheck # tsc --noEmit across all packages
pnpm lint:deps # dependency-cruiser: enforce package boundaries

@interlace/core must be built before packages that import it; turbo and the lint:deps script handle that ordering for you.

See CONTRIBUTING.md for the contribution workflow, coding conventions, and how to add a new collector; CHANGELOG.md for the release history; and SECURITY.md for how to report a vulnerability.

Status & roadmap

v1 (local mode) is complete: all collectors, idempotent ingest with auto-completion, ranking, and the lace CLI including a continuous daemon.

Designed-for but not yet built: backend mode (the api/workers/pollers packages deployed with a Redis/BullMQ queue), a menu-bar app, an MCP server, and lace brief (on-demand LLM summaries). Contributions toward any of these are welcome.

License

MIT © Raquel Hernandez

About

A cross-project status layer — deterministically index what's pending and what got done across all your repos. CLI: lace.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

Interlace

Website: interlace.fyi

A cross-project status layer. Interlace deterministically indexes what's pending and what got done across all of your repositories, then answers the one question every multi-project developer keeps asking: "where am I across everything?"

The first surface is a CLI called lace. It scans your tracked repos and ranks what needs attention, so you don't have to mentally re-load the state of a dozen projects every morning.

$ lace status
interlace ▸ 2 blocking · 5 done this week
imigro-app ▸ 6 blocking · 51 done this week
neuromint ▸ 0 blocking · 12 done this week
...

Why

Context lives in too many places: open issues on GitHub, TODO/FIXME markers buried in code, unchecked - [ ] boxes in Markdown plans, branches you pushed and forgot. Interlace collects all of it into one Postgres-backed index and gives you a single ranked view.

Core principle: the collector is a dumb, fast, deterministic indexer. No LLM ever sits in the collection or ranking loop — results are reproducible and auditable. (LLM-powered summaries are an opt-in, on-demand layer planned for later.)

What it collects

SourceWhat it picks up
gitrepo state, recent commits, pushed branches
code commentsTODO / FIXME / HACK markers (via ripgrep), with p0/p1/p2 priority
Markdown- [ ] / - [x] checkboxes in *.md, with priority:: or [P0]/[P1] conventions
GitHubopen/closed issues, opened/merged PRs, and deferred @lace / 📌 PR review comments (token-gated)

Items are content-addressed, so editing a line or shifting code around doesn't churn your index — closing a checkbox or deleting a TODO transitions that item to done in place.

Requirements

  • Node.js ≥ 22 and pnpm 10
  • ripgrep (rg) on your PATH — the code-comment collector shells out to it. Install via brew install ripgrep (macOS) or your package manager. Without it, only the code-comment collector is skipped; everything else still runs.
  • A Postgres database reachable via DATABASE_URL (local Postgres, Docker, or Supabase all work).

Install

git clone https://github.com/maggit/interlace.git
cd interlace
pnpm install
pnpm build

The CLI binary is built to packages/cli/dist/index.js and exposed as lace. You can run it via pnpm --filter @interlace/cli exec lace …, or link it onto your PATH:

pnpm --filter @interlace/cli link --global # makes `lace` available globally

Quickstart

  1. Point at a database. Copy .env.example to .env and set your connection string, or export it directly:

    export DATABASE_URL=postgresql://user:pass@host:5432/postgres

    Need a throwaway Postgres? docker run --rm -p 5432:5432 -e POSTGRES_PASSWORD=lace postgres:16-alpine

  2. Apply the schema. A one-time step (re-run after upgrades that ship new migrations — it's idempotent):

    lace db migrate
  3. Register a project.

    lace project add imigro --path /abs/path/to/imigro --github sahara/imigro
  4. Scan — collect the current state of every tracked project (or just one):

    lace scan # all projects
    lace scan imigro # one project
  5. Check status.

    lace status # super-view: every active project, ranked
    lace project-status imigro # one project in detail (alias: lace s imigro)
  6. Close an item straight from the CLI — flips its checkbox [ ]→[x] in the source file and re-scans:

    lace close imigro docs/plan.md:42
  7. Run continuously (optional) — watch files and poll on an interval:

    lace daemon

Command reference

CommandDescription
lace configShow resolved mode, DB target (redacted), and enabled collectors
lace db migrateApply pending migrations to the configured database
lace project add <slug> --path <abs> [--github <owner/repo>]Register a project
lace project listList registered projects
lace scan [slug]Force a collect now — all projects, or one
lace close <slug> <path:line>Mark a checkbox item done and re-scan
lace statusSuper-view: all active projects, ranked
lace project-status <slug> (alias s, or lace <slug> status)Single project: repo line, done-this-week, pending
lace daemonWatch projects + poll on an interval, scanning continuously

Run lace config first if a command can't find your database — it prints exactly what Interlace resolved.

Configuration

Configuration is layered (later overrides earlier): built-in defaults → ~/.config/interlace/config.toml.interlace.toml in the repo → environment variables → command flags. The common knobs:

VariablePurpose
DATABASE_URLPostgres connection string (required for local mode)
GITHUB_TOKENEnables the GitHub collector; absent → GitHub collection is silently disabled
defer_tokenMarker that turns a PR review comment into a tracked item (default @lace)

See .env.example for the full set.

Two non-sensitive groups can also be overridden from a TOML config file (~/.config/interlace/config.toml or a project-local .interlace.toml):

[daemon]
pollIntervalMs = 60000# full poll cadence (default 300000)debounceMs = 1000# quiet period after a file change before re-scan (default 2000)
[ranking]
p2PressureCap = 30# saturation cap on low-priority (P2) backlog pressure,# so a big pile of low-priority items can't bury real P0 work

lace config prints the resolved daemon intervals so you can confirm an override took effect.

Architecture

Interlace is a pnpm + Turborepo monorepo:

packages/
├─ core/ Drizzle schema + migrations, config resolution, ranking,
│ idempotent ingest engine, super-view / project-status queries
├─ collectors/ Pure, deterministic collectors: git, code-comment, markdown, github
├─ cli/ The `lace` command (Commander) — runs collectors inline
├─ workers/ Background-job skeleton (reserved for backend mode)
├─ pollers/ Scheduled-poll skeleton (reserved for backend mode)
└─ api/ HTTP API skeleton (reserved for backend mode)
  • core owns the database (Postgres via Drizzle ORM + postgres.js) and the ingest engine, which is transaction-wrapped and idempotent: re-scanning never duplicates work, and items auto-complete when their source disappears.
  • collectors are pure functions over a repo's current state — given a path (and optionally a GitHub token) they return items and activity. They never touch the database directly.
  • Tests run against pglite (in-process Postgres) — no Docker needed in CI — plus real git, rg, and chokidar, and an in-memory fake GitHub client.

Development

pnpm install
pnpm build # turbo build, respects the dependency graph
pnpm test# vitest across all packages
pnpm typecheck # tsc --noEmit across all packages
pnpm lint:deps # dependency-cruiser: enforce package boundaries

@interlace/core must be built before packages that import it; turbo and the lint:deps script handle that ordering for you.

See CONTRIBUTING.md for the contribution workflow, coding conventions, and how to add a new collector; CHANGELOG.md for the release history; and SECURITY.md for how to report a vulnerability.

Status & roadmap

v1 (local mode) is complete: all collectors, idempotent ingest with auto-completion, ranking, and the lace CLI including a continuous daemon.

Designed-for but not yet built: backend mode (the api/workers/pollers packages deployed with a Redis/BullMQ queue), a menu-bar app, an MCP server, and lace brief (on-demand LLM summaries). Contributions toward any of these are welcome.

License

MIT © Raquel Hernandez

About

A cross-project status layer — deterministically index what's pending and what got done across all your repos. CLI: lace.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages