path-browserify

Node.js path module implementation for browser environments

Library
npm
v1.0.1
192 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
39 /100 Needs Attention
Development Activity 0
Maintenance 20
Community 56
Maturity 60
Momentum 20

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
69 /100 Good
Architecture 65
Code Quality 78
Innovation 40
Learning Curve 92

path-browserify is a browser-compatible reimplementation of Node.js’s built-in path module, providing the same join, resolve, relative, dirname, basename, extname, and parse/format functions for environments — namely web browsers — that don’t have Node’s module available natively. It matches the Node.js 10.3 path API and implements only the POSIX-style functions, not the Windows (win32) variants.

The package exists almost entirely as bundler infrastructure: Browserify and webpack automatically substitute path-browserify whenever bundled code calls require('path') in a browser target, so most consumers never install or import it directly — it’s a dependency of the bundling pipeline rather than application code.

What You Get

  • Browser-safe implementations of path.join, path.resolve, path.relative, path.normalize
  • path.dirname, path.basename, and path.extname matching Node.js semantics
  • path.parse and path.format for splitting and reassembling path components
  • POSIX-only path handling (no win32 path separator support)
  • Automatic use as the default path polyfill in Browserify and webpack bundler configurations

Common Use Cases

  • Running Node.js-authored libraries that call require('path') inside a webpack or Browserify browser bundle
  • Building isomorphic JavaScript utilities that need consistent path-joining behavior in both Node and browser environments
  • Polyfilling path for code shared between a Node backend and a bundled frontend without maintaining two implementations
  • Satisfying transitive dependencies of npm packages that assume a Node-like path module is always available

Under The Hood

Architecture The entire implementation lives in a single 529-line index.js file structured around internal POSIX path-parsing helpers (segment normalization, ../. resolution) that back the public join, resolve, normalize, relative, dirname, basename, extname, parse, and format exports — mirroring the internal structure of Node.js’s own path.js source closely enough to track upstream Node behavior function-for-function. Tech Stack Zero runtime dependencies; it is deliberately dependency-free vanilla JavaScript so it can be safely bundled into any browser build without pulling in further transitive code. Code Quality The test/ directory is comprehensive and mirrors Node.js’s own path test suite naming convention (test-path-join.js, test-path-resolve.js, test-path-relative.js, test-path-parse-format.js, test-path-zero-length-strings.js, etc.), covering each exported function plus edge cases like zero-length string arguments — a pattern consistent with the package being adapted directly from Node.js’s own internal path tests. API Design The API is an intentional 1:1 mirror of Node’s built-in path module, so there is effectively no learning curve for anyone already familiar with Node — the tradeoff is that the package has been stable at the Node 10.3 API surface with no further updates, so newer path additions in later Node versions are not reflected.

Used by 23 apps in this directory

Python
66%
MIT

Flowfile

Data Engineering

398

Visual ETL that compiles to Polars — build pipelines on a canvas, export as standalone Python, and run anywhere without platform lock-in.

View details
83
Repo Health
81
Technical
66
Dependency
Built with
Python 66%
TypeScript 17%
Vue 16%
Updated yesterday
TypeScript
92%
MIT

GB Studio

Design Tools · Developer Tools · Game Development

9,434

Drag-and-drop retro Game Boy game creator that compiles real ROMs — no coding required.

View details
88
Repo Health
83
Technical
72
Dependency
Built with
TypeScript 92%
Updated 3 days ago
JavaScript
65%
Other

GDevelop

Design Tools · Developer Tools · Game Development

27,961

No-code, open-source game engine for building 2D, 3D and multiplayer games — publish to iOS, Android, Steam and the web.

View details
93
Repo Health
82
Technical
61
Dependency
Built with
JavaScript 65%
C++ 22%
TypeScript 11%
Updated yesterday
TypeScript
63%
MIT

Ghost

Blogging · CMS

55,598

Open source headless Node.js CMS for professional publishing, paid memberships, and newsletters with a fully owned audience.

View details
96
Repo Health
85
Technical
64
Dependency
Built with
TypeScript 63%
JavaScript 35%
Updated yesterday
TypeScript
77%
Other

Joplin

Note Taking

56,853

The privacy-first, open-source note-taking app with end-to-end encrypted sync, AI assistance, and a powerful plugin ecosystem across every platform.

View details
93
Repo Health
87
Technical
60
Dependency
Built with
TypeScript 77%
JavaScript 14%
Updated yesterday
Java
56%
Apache 2.0

Kestra

Automation · Data Engineering · Devops

29,967

Event-driven orchestration platform for data, AI, and infrastructure workflows — define everything in YAML, run anywhere at scale.

View details
94
Repo Health
81
Technical
69
Dependency
Built with
Java 56%
TypeScript 29%
Vue 14%
Updated yesterday
TypeScript
95%
MIT

melty

AI Code Assistants · Code Editors · Developer Tools

5,462

The AI code editor where every chat message is a git commit you can revert, branch, or squash

View details
35
Repo Health
75
Technical
67
Dependency
Built with
TypeScript 95%
Updated 1 years ago
JavaScript
64%
AGPL 3.0

overleaf

Collaboration · Productivity

18,266

Open-source, real-time collaborative LaTeX editor with sandboxed compilation and full TeXLive support for self-hosted academic and research teams.

View details
84
Repo Health
80
Technical
59
Dependency
Built with
JavaScript 64%
TypeScript 30%
Updated 1 months ago
TypeScript
97%
Other

Rocket.Chat

Team Chat

46,304

The secure, self-hosted team communications platform for organizations that cannot compromise on data sovereignty.

View details
96
Repo Health
79
Technical
63
Dependency
Built with
TypeScript 97%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers