Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@duoquote/polytini

Latest version: v0.1.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: duoquote
0 Stars
0 Forks
3 Versions
JavaScript Repo language

Scan summary

@duoquote/polytini was last scanned on 27 Nov 2026 at version 0.1.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published on 27 Nov 2026.
  • Findings: 1 rule fired in version 0.1.1 (1 low). The score describes this version only.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1 LATEST 27 Nov 2026 1 rule fired
0.1.0 27 Nov 2026 1 rule fired
0.0.0-stage 27 Nov 2026 Not shown

Rules fired in 0.1.1: 1

Findings

1 Low

Findings for v0.1.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

WebAssembly module included

The package includes a WebAssembly (.wasm) module. It cannot be reviewed as source, but it runs sandboxed inside the JavaScript runtime and can access only what the host code gives it. WebAssembly is common in parsers, codecs and cryptography libraries. Shown for awareness.

LOW
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.1.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

polytini

polytini encodes and decodes Google encoded polylines, the strings Google Maps, OSRM, Valhalla, GraphHopper and Mapbox return for route geometry. It's strict by default, so a cut-off or corrupted string throws instead of drawing a wrong line. Node, Bun, Deno and browsers each get the code path that measured fastest there, and it has no dependencies. I wrote it while rebuilding polyline-benchmark, where it's compared with every other JavaScript polyline library.

Install

npm install @duoquote/polytini      # or pnpm add, yarn add, bun add
deno add jsr:@duoquote/polytini

ESM and CommonJS, with TypeScript types. Node 22 or newer. Not on npm or JSR yet; RELEASING.md covers the first publish.

Usage

import { encode, decode } from '@duoquote/polytini';

encode([[38.5, -120.2], [40.7, -120.95], [43.252, -126.453]]); // '_p~iF~ps|U_ulLnnqC_mqNvxq`@'
decode('_p~iF~ps|U_ulLnnqC_mqNvxq`@');                         // [[38.5, -120.2], [40.7, -120.95], [43.252, -126.453]]
decode(osrmGeometry, { precision: 6, order: 'lnglat' });        // OSRM polyline6, as [lng, lat]

Best at what

From the benchmark's 27 November 2026 run, across Bun, Node 22 to 26, Deno and Chrome. Leads under 1.3x are marked, because cells moved about 30% between rounds.

Situation Best Runner-up Margin
Decode short lines (10 and 100 points) @googlemaps/polyline-codec @mapbox/polyline 1.05x faster, within the noise
Decode long lines (10,000 and 100,000 points) @duoquote/polytini @googlemaps/polyline-codec 1.14x faster, within the noise
Decode real-world lines (median 82 points) @duoquote/polytini @googlemaps/polyline-codec 1.22x faster, within the noise
Encode, any length @duoquote/polytini google-polyline 2.05x faster
Decode to typed arrays @duoquote/polytini (wasm, Float64Array) @duoquote/polytini (Float64Array) 1.08x faster, within the noise
Encode from typed arrays @duoquote/polytini (wasm, Float64Array) @duoquote/polytini (Float64Array) 1.05x faster, within the noise
Decode 1000 lines in one call @duoquote/polytini (wasm decodeMany/encodeMany) @duoquote/polytini (wasm, Float64Array) 1.61x faster
Least memory per decode (10,000 points, [lat, lng] arrays) @duoquote/polytini (765.4 KB) @googlemaps/polyline-codec (766.2 KB) 0.1% less
Smallest bundle (gzipped) google-polyline (551 B) @googlemaps/polyline-codec (568 B) 17 B smaller
Strict validation (throws on bad input) @duoquote/polytini @lp-labs/polyline-codec 15x faster
HERE Flexible Polyline (encode and decode) @duoquote/polytini (flexible) @here/flexpolyline 24x faster

API

Function Does
decode(str, options?) String to [[lat, lng], ...]
encode(points, options?) [lat, lng] tuples or { lat, lng } objects to a string
decodeFlat / encodeFlat The same with one Float64Array: [lat0, lng0, lat1, lng1, ...]
decodeLatLng(str) String to [{ lat, lng }, ...]
toGeoJSON(str) / fromGeoJSON(geo) GeoJSON LineString in and out
PolylineError What strict mode throws, with a code and an index

Options are a precision number or { precision, factor, order, strict, dimensions, zFactor }. Details, errors and rounding: docs/api.md.

Integrations

Import For
@duoquote/polytini/presets Options for OSRM, Valhalla, GraphHopper, Mapbox, Strava and others
@duoquote/polytini/leaflet L.Polyline.fromEncoded, toEncoded, factories; Leaflet 1.9 and 2
@duoquote/polytini/turf Turf Features and FeatureCollections, any GeoJSON line encoded
@duoquote/polytini/google Drop-in decodePath and encodePath for the Maps JavaScript API
@duoquote/polytini/openlayers Drop-in ol/format/Polyline that doesn't overwrite your geometry
@duoquote/polytini/maplibre, /mapbox GeoJSON sources, add a line layer, update it
@duoquote/polytini/deckgl deck.gl binary paths and polygons, no array per point
@duoquote/polytini/flexible HERE's Flexible Polyline, a drop-in for @here/flexpolyline
@duoquote/polytini/wasm Opt-in WebAssembly build, with batch calls

None of them import their map library; you pass it in or use what they return. Examples for each: docs/integrations.md.

Notes

  • The precision isn't stored in the string. A polyline6 string decoded at 5 gives coordinates ten times too big, with no error.
  • Strict mode throws on invalid characters, cut-off strings and NaN coordinates. Pass strict: false to never throw.
  • /wasm only pays off for typed arrays on long lines and for many lines in one call (decodeMany). For [lat, lng] arrays the default entry is as fast or faster. Numbers: docs/platforms.md.
  • Each runtime gets its own entry through package.json conditions (node, bun, deno, browser). Why each one exists: docs/platforms.md.

CLI

npx @duoquote/polytini decode '_p~iF~ps|U_ulLnnqC_mqNvxq`@'
echo '[[38.5,-120.2],[40.7,-120.95]]' | npx @duoquote/polytini encode

JSON, GeoJSON, CSV and plain lines; works with bunx, pnpm dlx, yarn dlx and deno run jsr:@duoquote/polytini/cli. All options: docs/cli.md.

More

Tests and coverage, releasing, and the benchmark with every table and chart.

License

MIT, see LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @duoquote/polytini

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229