npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@arach/lattices

v0.2.1

Published

macOS workspace manager with window tiling, OCR, and a 30-method daemon API for AI agents

Readme

lattices

macOS workspace manager. Menu bar app, CLI, and a WebSocket API so your AI agents can control the desktop.

Window tiling, project discovery, workspace layers, on-screen OCR, and optionally tmux-powered persistent sessions. 30 RPC methods over WebSocket. One JSON config file.

Install

npm install -g @arach/lattices

Quick start

# Launch the menu bar app
lattices app

# Open the command palette from anywhere
# Cmd+Shift+M

The app scans your projects, tiles windows, and gives you a command palette for everything. Add tmux if you want persistent terminal sessions:

brew install tmux
cd my-project && lattices

That creates a tmux session with Claude Code on the left and your dev server on the right. Detach, close your laptop, come back later, reattach. Everything is where you left it.

What it does

Menu bar app sits in your menu bar. Command palette, window tiling, project discovery, workspace layers, OCR, and the daemon API. Works with or without tmux.

CLI for tiling, session management, OCR queries, and tab groups.

Daemon API on ws://127.0.0.1:9399. 30 RPC methods and 5 real-time events. Agents can discover projects, tile windows, launch sessions, switch layers, and read on-screen text.

import { daemonCall } from '@arach/lattices/daemon-client'

const windows = await daemonCall('windows.list')
await daemonCall('session.launch', { path: '/Users/you/dev/frontend' })
await daemonCall('window.tile', { session: 'frontend-a1b2c3', position: 'left' })

Configuration

Drop a .lattices.json in your project root:

{
  "ensure": true,
  "panes": [
    { "name": "claude", "cmd": "claude", "size": 60 },
    { "name": "server", "cmd": "pnpm dev" },
    { "name": "tests",  "cmd": "pnpm test --watch" }
  ]
}

Or skip it. Without a config, lattices reads your package.json and picks the right dev command automatically.

Layouts

2 panes              3+ panes

┌──────────┬───────┐ ┌──────────┬───────┐
│  claude  │server │ │  claude  │server │
│  (60%)   │(40%)  │ │  (60%)   ├───────┤
└──────────┴───────┘ │          │tests  │
                     └──────────┴───────┘

Workspace layers

Group projects into switchable contexts. Cmd+Option+1 tiles your frontend and API side by side. Cmd+Option+2 switches to the mobile stack. All sessions stay alive across switches.

Configure in ~/.lattices/workspace.json:

{
  "layers": [
    {
      "id": "web", "label": "Web",
      "projects": [
        { "path": "/Users/you/dev/frontend", "tile": "left" },
        { "path": "/Users/you/dev/api", "tile": "right" }
      ]
    }
  ]
}

Tab groups

Bundle related repos as tabs in one session. Each tab gets its own pane layout from its .lattices.json.

lattices group talkie      # Launch iOS, macOS, Web, API as tabs
lattices tab talkie iOS    # Switch to the iOS tab

Screen OCR

The app reads text from visible windows using Apple Vision and indexes it with FTS5 full-text search. Agents can search for error messages, read terminal output, or find content across all your windows.

await daemonCall('ocr.scan')
const errors = await daemonCall('ocr.search', { query: 'error OR failed' })

CLI

lattices                    Create or reattach to session
lattices init               Generate .lattices.json
lattices ls                 List active sessions
lattices kill [name]        Kill a session
lattices tile <position>    Tile frontmost window
lattices group [id]         Launch or attach a tab group
lattices tab <group> [tab]  Switch tab within a group
lattices ocr                View current OCR snapshot
lattices ocr search <query> Search OCR history
lattices app                Launch the menu bar app
lattices help               Show help

Requirements

  • macOS 13.0+
  • Node.js 18+

Optional

  • tmux for persistent terminal sessions (brew install tmux)
  • Swift 5.9+ to build the menu bar app from source

Docs

Full documentation at lattices.dev/docs.

License

MIT