path-browserify

Node.js path module implementation for browser environments

Library
npm
v1.0.1
192stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
39/100Needs Attention
Development Activity0
Maintenance20
Community56
Maturity60
Momentum20

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
69/100Good
Architecture65
Code Quality78
Innovation40
Learning Curve92

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

TypeScript
94%
MIT

Actual

Invoicing Finance

28,224

Local-first personal finance with envelope budgeting, end-to-end encryption, and multi-device sync — no subscription required.

View details
93
Repo Health
85
Technical
77
Dependency
Built with
TypeScript94%
Updated yesterday
TypeScript
72%
AGPL 3.0

APITable

Low Code Platforms · Databases

15,526

API-first collaborative spreadsheet-database platform that auto-generates REST APIs and lets teams build internal tools, CRMs, and dashboards without code.

View details
53
Repo Health
77
Technical
60
Dependency
Built with
TypeScript72%
Java22%
Updated 9 months ago
TypeScript
96%
Other

Amplication

Developer Tools · AI Code Assistants · Automation

16,010

Create production-ready backend services with your organization's standards baked in — generating NestJS, Prisma, and GraphQL code that you own and control.

View details
61
Repo Health
84
Technical
60
Dependency
Built with
TypeScript96%
Updated 1 months ago
TypeScript
97%
AGPL 3.0

Bigcapital

Invoicing Finance

3,846

Self-hostable double-entry accounting platform with invoicing, inventory, multi-currency, and real-time financial reporting for small and medium businesses.

View details
91
Repo Health
77
Technical
64
Dependency
Built with
TypeScript97%
Updated yesterday
Rust
67%
MIT

Bun

Developer Tools

95,452

An all-in-one JavaScript and TypeScript toolkit — one Rust-and-JavaScriptCore binary that replaces Node.js, npm, a bundler, and a test runner with faster equivalents.

View details
92
Repo Health
91
Technical
66
Dependency
Built with
Rust67%
C++19%
Updated today
TypeScript
53%
Other

Chaskiq

CRM · Customer Support

3,560

Self-hosted live chat, video calls, help center, and marketing automation — a full-stack Intercom alternative you run on your own infrastructure.

View details
60
Repo Health
66
Technical
68
Dependency
Built with
TypeScript53%
Ruby36%
Updated 1 months ago
TypeScript
72%
MIT

Claude Context

AI Code Assistants

12,417

An MCP server and VS Code extension by Zilliz that turns your entire codebase into semantically searchable context for Claude Code, Cursor, and Gemini CLI, using vector embeddings and Merkle-tree change detection.

View details
55
Repo Health
71
Technical
72
Dependency
Built with
TypeScript72%
Python13%
JavaScript11%
Updated 1 months ago
JavaScript
90%
Other

CodeSandbox

Code Editors · Developer Tools

13,633

Instantly ready browser-based IDE that runs full npm dependency resolution and transpilation entirely client-side, with no server needed.

View details
65
Repo Health
76
Technical
63
Dependency
Built with
JavaScript90%
Updated 1 months ago
Ruby
62%
GPL 2.0

Discourse

Community

47,672

Open-source community platform with dynamic trust levels, real-time chat, and a powerful plugin architecture for self-hosted forums.

View details
89
Repo Health
89
Technical
67
Dependency
Built with
Ruby62%
JavaScript31%
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

Search