Tern is an analyzer with no releases and two homepages
A JavaScript code analyzer for deep, cross-editor language support
At a glance
- What is it?
- Tern is a stand-alone, editor-independent JavaScript analyzer that editors integrate as a plugin, and it is deliberately small: seven runtime dependencies, one package script, and a tree whose defs and plugin directories are the extension points. The parts worth knowing are the ones the page does not emphasise, including version 0.24.3 in a manifest with no tagged releases, dependencies pinned several majors back, and an Emacs integration kept in the repository while every other editor binding lives elsewhere.
- Who is it for?
- Tern fits someone building an editor integration, or maintaining one, who wants the JavaScript analysis to live outside the editor so it can be shared across several of them. It does not fit someone looking for a batteries-included language server, because what the project distributes is an analyzer plus a protocol, with each editor's binding written separately.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Activity is slowing. The repository last received commits 6 months ago.
- What is it written in?
- Mainly JavaScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- ternjs/tern4,245 ★ · +7
| Repository | 2026-09-23 | 2026-11-25 |
|---|---|---|
| ternjs/tern | 4.2k | 4.2k |
7 Stars in the last 63 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The analyzer and the editor bindings are separate projects
The pitch is one sentence: a stand-alone, editor-independent JavaScript analyzer that can be used to improve the JavaScript integration of existing editors.
The plugin list then does the real work. There are plugins for Emacs and for its company mode, for Vim, for Sublime Text, for Eclipse through a general Java API, for Light Table, for Atom, for TextMate and for gedit. Separately, five editors are listed as having built-in support: Brackets, Edge Code, CodeLite, vy and SourceLair.
Two categories, two maintenance models. A plugin is a repository somebody maintains on their own schedule, while built-in support ships inside the editor and dies with it.
That split is the reason the analyzer can still be the same piece of code across editors with completely different architectures and lifecycles, and it is also why the repository itself contains almost no editor code.
Crowdfunded, MIT licensed, and reachable at two domains
The licensing sentence comes with a footnote and a link: thanks to a group of generous crowd funders, Tern is open-source software under an MIT licence.
That is a small and useful thing to know about a project whose manifest also says MIT. The licence was paid for.
The domain story is less tidy. The repository's homepage field points at one address on the net domain, while the project page and the manual linked from the readme sit under a GitHub Pages address, with the manual one directory deeper. So a visitor arriving from the repository metadata and a visitor arriving from the readme end up at different places, one of which is the manual and one of which is a front page.
Neither address is presented as canonical and neither is marked out of date, which is the honest description of a project that has outlived several hosting arrangements.
Six dependencies, and they are the architecture
The runtime dependency list is short enough to read as a design document.
Three of the seven are the same parser at different levels: one to parse JavaScript, one to walk the resulting tree, and one loose variant that keeps going when the input is not valid JavaScript. That trio is the analysis layer.
One dependency is a module resolver taken from the webpack ecosystem, which is how the analyzer follows imports in a project rather than guessing at paths. Two more are a file glob and a pattern matcher (minimatch), which is how it finds candidate files. The last resolves a module from a given directory, which is how a plugin asks where something is.
Every one of those is pinned to an older major line than current releases: the parser family at 6, the glob at 7, the pattern matcher at 3, and the resolver resolved exactly rather than by range.
Nothing here is a framework, a bundler or a test library, and that restraint is the reason the analyzer is small enough to embed in an editor.
defs is the extension point and .tern-project is the config
The tree explains how the design extends, and the directory names are the documentation.
There is a library directory, which is what the manifest points at as the main entry. There is a bin directory, which holds both the command line entry point and the test runner. There is a defs directory.
There is a plugin directory and a documentation directory.
Then the inconsistency. An Emacs integration sits in the tree, while every other editor binding listed in the readme lives in its own repository with its own issue tracker.
A configuration file for the analyzer's own project settings is committed too, along with a JSHint configuration and a Travis configuration.
One package script, and it runs the tests
The manifest has exactly one script, and it runs the test runner in the bin directory with node.
There is no build script. There is no lint script, even though a JSHint configuration file is committed at the root, which means the linting configuration belongs to a tool that is no longer wired into the package.
What survives from that era is a lint configuration block listing the globals the code is allowed to assume: the analyzer's own namespace, the parser, an AMD-style define, the timer functions, and the Node globals for the directory name, the global object and the process.
Listing allowed globals is a small confession. It says the code runs in more than one environment, which is the point of an editor-independent analyzer: the same library is loaded into an editor process, a browser page and a command line, and each has a different set of ambient globals.
Version 0.24.3 in the manifest and nothing to diff
The manifest says 0.24.3. The repository has no GitHub releases at all.
So versioning happens in two places that a visitor can see, the manifest and the npm package the readme links to, and nowhere else. There is no tag to check out, no release notes to skim and no changelog in the tree.
For a library distributed mainly through a package registry, that is workable. For anyone who wants to know what changed between two versions, it is not, because the only evidence is the commit history and the diff between published packages.
The rest of the manifest is careful in a way that suggests long maintenance rather than recent activity. The author is named with an email address, the repository URL is the git protocol form, and the only development dependency is an editor library pulled straight from its own repository rather than from a registry, so that dependency tracks the tip of another project.
The last push on the default branch is dated 2026-05-14.
Documentation is split the same way the code is
The readme hands off to two places in one sentence: the project page and the manual, with the issue tracker for problems.
The manual link carries an anchor for one editor, Emacs, which tells you the manual is organised per editor. That matters because the integrations differ: one is a mode inside an existing completion system, another is a package for an editor with its own plugin API, another goes through a Java API, and another is a bundle for a macOS editor.
Those editor-specific instructions live with the editor-specific code, in the eight plugin repositories the footnote list links to, one per editor.
So the documentation has the same shape as the code: a small amount of shared documentation about the analyzer and its protocol, and per-editor documentation maintained alongside each binding.
For a new user, that means the readme is a map rather than a manual, and the manual link is where the actual work starts.
Editorial conclusion
Tern fits someone building an editor integration, or maintaining one, who wants the JavaScript analysis to live outside the editor so it can be shared across several of them. It does not fit someone looking for a batteries-included language server, because what the project distributes is an analyzer plus a protocol, with each editor's binding written separately. Before depending on it, check four things. Which definition files you need, since the defs directory holds the definition files. Which editor binding you will use, since plugins live in separate repositories with their own maintenance histories. Which dependency versions you can live with, because the parser and file-globbing packages are pinned to older major lines than current releases. And how you will track updates, because there are no releases to diff against: the manifest says 0.24.3, the package is on npm, and the last push to the branch is dated 2026-05-14.
Frequently asked questions
What is Tern used for?
It is a stand-alone, editor-independent JavaScript analyzer, used to improve the JavaScript integration of existing editors. Plugins exist for Emacs and its company mode, Vim, Sublime Text, Eclipse through a Java API, Light Table, Atom, TextMate and gedit, and several editors are listed as having built-in support.
How do I install Tern?
The package is published on npm as tern, with a library entry point and a command line entry point declared in its manifest. The page itself gives no install command and refers readers to the manual on the project site instead.
What is in the Tern repository?
A library directory, a bin directory holding the command line entry point and the test runner, a defs directory for language definitions, a plugin directory, documentation, tests, and an Emacs integration kept in the tree. Editor bindings for the other editors live in their own repositories.
How do I run Tern's tests?
The manifest defines a single script that runs the test runner in the bin directory with node. There is no build step and no lint script, although a JSHint configuration file and a list of allowed globals are committed at the root.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/ternjs-tern)Star history chart for your README
[](https://hysenlabs.com/projects/ternjs-tern)Was this useful?