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

@lukstei/dsh-client-split-view

v0.2.2-rc.5.20

Published

Concurrent multi-session split view and overlay layout plugin for DeepSeek Harness

Readme

@lukstei/dsh-client-split-view

Summary

Replaces the single-session chat view with side-by-side session panes. Each pane can show a file, a plugin view, or a related session in an overlay. Open panes persist across reloads. Used directly by people running several sessions at once, and by the Kanban and Git review plugins through the splitView service.

Table of Contents

End user guide

Shows several sessions as side-by-side columns, with files, images, related sessions or reviews opened as overlays inside a pane. Open panes persist across reloads. Full guide with demo and controls.

Install: dsh plugin --profile <web|desktop> add @lukstei/dsh-client-split-view

  1. Add a second session to the split (for example from the Kanban sidebar).
  2. Click a file or session link inside a pane to open it as an overlay there.
  3. Double click a pane header to maximize it; double click again to restore.

Use this package

Install with dsh plugin --profile <profile> add @lukstei/dsh-client-split-view. The shipped cordis.patch.yml mounts:

- insert:
    - id: split-view
      name: '@lukstei/dsh-client-split-view'

No config. Client plugin (platform: web, immediately: true). Required services: slots, sessions, uiWorkspace, uiSession, layout, remote, sidebarRight, remote.workspaceFiles. The host entry is a no-op.

Plugin dependencies

Client-side only. Client inject: slots, sessions, uiWorkspace, uiSession, layout, remote, sidebarRight, remote.workspaceFiles.

| Plugin / service | Required? | Provided by | Effect without it | |---|---|---|---| | slots | Required | @deepseek-ai/dsh-client-ui-slots | Plugin stays pending; never applies. | | sessions | Required | @deepseek-ai/dsh-api-session-controller | Plugin stays pending; never applies. | | uiWorkspace, uiSession, layout | Required | @deepseek-ai/dsh-client-ui-workspace, @deepseek-ai/dsh-client-ui-session, @deepseek-ai/dsh-client-ui-layout | Plugin stays pending; never applies. | | remote, remote.workspaceFiles | Required | @deepseek-ai/dsh-api-gateway, @deepseek-ai/dsh-api-workspace-files | Plugin stays pending; never applies. | | sidebarRight | Required | @deepseek-ai/dsh-client-ui-sidebar-right | Plugin stays pending; never applies. |

Code import (no mount): @lukstei/util-review-ui (quote, useSelectionQuote).

Provides the client service splitView.

Used by: dsh-client-kanban (optional), dsh-client-review-git (optional), dsh-session-handoff (required, client side).

Behavior

  • Open sessions are equal-width columns. Gestures (focus, maximize, close, reorder, overlays) are listed in the end user guide.
  • Viewports under 768 px show one pane. Selecting a session replaces the current one, and maximize is disabled.
  • State (open sessions, focus, overlays) is stored in localStorage under dsh-client-split-view:state:v1 and restored once the session list is ready.
  • A header control in conversation.session.header.utilities (split-view-restore) restores the split from the native view.
  • While a pane is the pointer origin, uiWorkspace.openSession opens the target in that pane as a session overlay. sidebarRight.openResource opens a file overlay for file addresses; uiWorkspace.startSession creates a session and adds it as a pane. Other cases fall through to the originals. The overrides are restored on dispose.
  • File overlays preview Markdown (rendered), images (png, jpg, gif, webp, avif, bmp, svg) or plain text. Clicking a local file link inside a Markdown overlay or a session overlay pushes onto that pane's overlay stack, resolving relative paths against the open document's directory and auto-paging/scrolling code previews to #L... or :line targets. Closing with × or Esc pops back one level; submitting a prompt clears the file/review overlay stack.
  • Quotes use the file path and selected text and target the host pane's draft. Code previews also include the selected source line range when available.

Service: splitView

ISplitView (from @lukstei/dsh-client-split-view/client-contract), provided on the Cordis client context:

| Member | Purpose | |---|---| | getSnapshot, subscribe | Observe SplitState (sessionIds, focusedSessionId, maximizedSessionId, hoveredSessionId, suspended, overlays) | | openSession, toggleSession, removeSession, replaceSession, resetToSingle | Pane membership | | setFocus, toggleMaximize, setHoveredSession, reorderSession | Pane state | | suspend, resume, isSuspended, isSplitActive | Switch between split and native view | | openSlotOverlay(hostId, slotName, title, props), closeOverlay(hostId) | Factory overlays | | setFallbackPanelId(id) | Panel selected when the last pane closes; default null (native conversation). Integrations must restore null on disposal |

openSlotOverlay props must be JSON objects (pass {} for factories without input). Functions, cycles, class instances and non-finite numbers are rejected before the current overlay is replaced. Props persist and are restored on reload. The overlay tab stays closable if its factory provider unloads.

Slots

| Slot | Kind | Purpose | |---|---|---| | split.pane | single, session | Conversation viewport per column | | split.overlay | single, session | File, factory and child-session overlays | | split.pane.status | single, session | Pane indicator | | split.subagent.status | single, session | Subagent indicator (owner state active or review) | | split.pane.header.actions | list, session | Plugin header actions; register through ctx.slots.inject |

CSS classes use dsh-split-*; pane roots carry data-split-pane.


Understand the implementation

| File | Role | |---|---| | src/index.ts | Host no-op | | src/client/index.tsx | Client entry: provides splitView, registers main / slots, hydration, navigation overrides, restore control. Re-exports SplitStore, splitStore, ISplitView, SplitOverlay, SplitState | | src/client/contract.ts | Public types and Cordis/slot augmentations | | src/client/split-store.ts | SplitStore: membership, overlays, persistence, mobile rules | | src/client/SplitLayout.tsx, SplitPane.tsx, SplitPaneHeader.tsx | UI | | src/client/file-preview.ts | Path to preview kind (markdown, image, text) | | src/client/styles.ts | Stylesheet registration |

Each pane holds a SessionReference (source splitView) released on removal. The main view registers with key split-view; the registration precedes hydration because a re-applied fiber can restore a ready list synchronously. A pointer or focus interaction outside every pane (menus and dialogs excepted) clears the pointer origin.

Persisted: localStorage only. File overlays store address, owner session, path, title, and optional fullPath / line; loaded contents are not stored. Session overlays store target and title. Stacked entries persist under overlayHistory when present.

Tests: tests/ (store, layout, overlays, header, hydration, styles).


Further Exploration

Model Experience

No model-visible surface. This package adds no tools, prompt text, or context to the model.

Known Limitations and Deferred Work

  • The mobile threshold (768 px) is fixed.
  • Split state is per browser (localStorage), not per user or host.
  • No Review or Kanban dependency exists in this package; those plugins plug in through the service and slots.

Dev Note

pnpm run verify runs Biome, build, typecheck and tests.