gitwtfhub

wtf is node-haste?

skevy/node-haste — explained in plain English

Analysis updated 2026-07-17 · repo last pushed 2016-03-22

JavaScriptAudience · developerComplexity · 3/5DormantSetup · hard

TL;DR

Facebook's internal JavaScript dependency-resolution tool that traces which files import which, used under the hood by Jest and React Native.

Mindmap

mindmap
  root((repo))
    What it does
      Trace file dependencies
      Build dependency map
      Watch files for changes
    Tech stack
      JavaScript
      Node.js
      Haste module system
    Use cases
      Bundling code
      Powering Jest
      Powering React Native
    Audience
      Tooling developers
      Facebook projects
    Caveat
      Not polished for general use
      No native module support

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Build a bundler or build tool that needs to resolve which files depend on which others.

REASON 2

Understand how Jest and React Native resolve modules internally, since they use this indirectly.

REASON 3

Trace a project's full dependency chain when optimizing app load performance.

REASON 4

Watch a codebase for file changes and keep a dependency map continuously up to date.

What's in the stack?

JavaScriptNode.js

How it stacks up

skevy/node-hastea15n/a15na15n/checkout-validation
LanguageJavaScriptJavaScriptJavaScript
Last pushed2016-03-222019-04-072014-09-04
MaintenanceDormantDormantDormant
Setup difficultyhardeasyeasy
Complexity3/52/52/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1day+

Built for Facebook's internal use, not polished or maintained for general open-source use.

Yoink these prompts

Prompt 1
Explain how node-haste resolves dependencies differently from standard Node.js require().
Prompt 2
Show me how node-haste's file-watching feature keeps a dependency map up to date.
Prompt 3
Help me understand what Facebook's haste module system is and how it differs from normal imports.
Prompt 4
Walk me through the tradeoffs of using node-haste outside of a Jest or React Native project.

Frequently asked questions

wtf is node-haste?

Facebook's internal JavaScript dependency-resolution tool that traces which files import which, used under the hood by Jest and React Native.

What language is node-haste written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js.

Is node-haste actively maintained?

Dormant — no commits in 2+ years (last push 2016-03-22).

How hard is node-haste to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is node-haste for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.