CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-portfinder

A simple tool to find an open port on the current machine

82

1.64x
Overview
Eval results
Files

Evaluation results

82%

12%

Bounded Port Allocator

Port search bounds validation with clear exhaustion errors

Criteria
Without context
With context

Range options

100%

100%

Upper bound

100%

100%

Invalid bounds

0%

60%

Exhaustion signal

50%

50%

Promise usage

100%

100%

95%

-2%

Ephemeral Port Allocator

Single free TCP port lookup (callback or promise)

Criteria
Without context
With context

Promise API

100%

83%

Callback API

100%

100%

Range handling

100%

100%

Host targeting

100%

100%

Default configuration

70%

100%

90%

9%

Deterministic Port and Socket Planner

Deterministic next candidate helpers for ports and sockets

Criteria
Without context
With context

Port discovery

100%

100%

Default tuning

100%

100%

Deterministic stepping

25%

50%

Socket sequence

90%

100%

Option forwarding

80%

100%

100%

80%

IPC Socket Path Allocator

Free Unix socket or Windows pipe path discovery

Criteria
Without context
With context

Socket lookup API

0%

100%

Base path config

100%

100%

Collision search

0%

100%

Windows pipes

0%

100%

Parent directories

0%

100%

70%

45%

Host-Aware Port Selection

Custom host scanning with default host detection and invalid-host pruning

Criteria
Without context
With context

Default hosts

100%

0%

Promise search

0%

100%

Host option

0%

100%

Prunes invalid

0%

75%

Bounded range

0%

100%

40%

-10%

Port Search Defaults

Global configuration of base/highest ports and base socket path

Criteria
Without context
With context

Global port defaults

66%

50%

Invalid range

0%

25%

Multi-port allocation

25%

25%

Exhaustion signaling

66%

33%

Socket base path

100%

66%

100%

90%

Sequential Port Allocator

Multiple sequential free ports retrieval

Criteria
Without context
With context

Portfinder API

0%

100%

Count handling

0%

100%

Range options

33%

100%

Host forwarding

33%

100%

Error propagation

0%

100%

Install with Tessl CLI

npx tessl i tessl/npm-portfinder
Evaluated
Agent
Claude Code

Table of Contents