Graph Squeeze

by renwujun
5
4
3
2
1
Score: 50/100

Description

Spread your Obsidian graph sideways with soft top and bottom force barriers.

Reviews

No reviews yet.

Stats

0
stars
29
downloads
0
forks
5
days
5
days
5
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
3
commits

Latest Version

6 days ago

Changelog

Fixes review findings and adds settings search support on Obsidian 1.13 and later, while keeping the existing settings interface compatible with older supported versions.

  • Bind native worker methods explicitly and validate incoming worker message types.
  • Use the graph window's timers, including in popouts, and clear them on startup or cleanup.
  • Create the force overlay with Obsidian's element helpers.
  • Add searchable definitions for all four settings and remove the deprecated slider tooltip.
  • Add the official Obsidian lint configuration and regression tests.

Validation: build passes; 37 tests pass, including native worker integration, startup timeout cleanup, malformed messages, and both settings rendering paths.

One lint warning remains intentionally visible: fetch reads only Obsidian's bundled local app:// worker. The suggested requestUrl API uses Electron's HTTP/HTTPS client and is not a replacement for that local resource read. No lint rules are suppressed.

README file from

Github

Graph Squeeze

Give your Obsidian graph more room to spread sideways. Two invisible horizontal force areas gently push nodes inward from above and below.

Obsidian graph with Graph Squeeze enabled

Install

Desktop only.

Community plugins

Open the Community Directory listing and select Add to Obsidian. If it is not available in your app yet, use manual installation below.

Manual installation

  1. Download main.js and manifest.json from the latest release and place them in your vault’s .obsidian/plugins/graph-squeeze/ folder.
  2. Reload Obsidian and enable Graph Squeeze in Settings → Community plugins.
  3. Open a global or local graph. Adjust the squeeze in Settings → Graph Squeeze.

Settings

Setting Default Range / behavior
Barrier distance 80,000 Gap between barriers; 0–80,000 graph units
Edge softness 10,000 Distance from zero to full force; 0–40,000 graph units, limited to half the gap
Maximum barrier force 10 Push strength; 0–1,000. Zero disables the push
Barrier force visualizer Off Shows force areas; weaker force is more transparent

Reduce the barrier distance for a narrower band. Increase softness for a gentler transition. Nodes can move beyond the soft boundaries.

Compatibility

Uses private Obsidian graph internals, so Obsidian updates may require a plugin update. Patches an in-memory copy of the local graph worker; no application files are modified.

Privacy

The plugin reads Obsidian’s bundled sim.js outside your vault through the local app:// protocol to add the barrier forces. The scanner counts this fetch call as a network request, but it contacts no remote service and sends no notes or other data over the internet. No telemetry is collected.

Build

npm ci
npm run lint
npm run package

Output: dist/graph-squeeze/.

MIT License