whatisgithub

What 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

In one sentence

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

What do people build with it?

USE CASE 1

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

USE CASE 2

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

USE CASE 3

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

USE CASE 4

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

What is it built with?

JavaScriptNode.js

How does it compare?

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 get it running?

Difficulty · hard Time to first run · 1day+

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

Copy-paste 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

What 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.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.