Meta's official Node.js wrapper for Wit.ai NLP
A thin SDK that turns Wit.ai's speech and text APIs into plain JavaScript promises, with a built-in REPL for quick testing.

What it does
node-wit is the official JavaScript SDK for Wit.ai, Meta’s natural-language platform. It wraps the HTTP API in a Wit class with methods for text analysis (message), speech-to-text (speech, dictation), text-to-speech (synthesize), and conversational state management (runComposer, converse). There’s also an interactive mode for terminal debugging.
The interesting bit
The SDK doesn’t just proxy requests—it runs your local actions functions as instructed by Wit.ai’s Composer engine, merging remote orchestration with local business logic. The runComposerAudio method even emits partial transcription events as audio streams in, so you can build responsive voice interfaces without managing the WebSocket plumbing yourself.
Key highlights
- Covers the full Wit.ai surface: text, speech, dictation, synthesis, and conversational Composer flows
- Promise-based API with event emitters for streaming partial results
- Optional
Loggerclass with configurable log levels interactiveREPL for one-off testing without writing boilerplate- Messenger bot example included (
examples/messenger.js)
Caveats
- Tests require creating a live Wit.ai app and exporting a token; no offline mocking
- The README itself recommends using
runComposer()over the lower-level.event()and.converse()methods, suggesting the API surface is still settling
Verdict
Useful if you’re already committed to Wit.ai and want official, maintained bindings. Skip it if you need provider-agnostic NLP or want to avoid tying your bot logic to a specific platform’s orchestration model.