A look at caolan/jam: 1.5k stars on GitHub, written primarily in JavaScript. JavaScript package manager - using a browser-focused and RequireJS compatible repository
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
****NOTE: this project is no longer active and not recommended for use. It is left here for reference. ****
Jam was created at a time before Bower and provided a (still to this day) very nice installation workflow which meant you could 'jam install jquery', then immediately 'require("jquery")' in your application. No manual bundling or build step (e.g. browserify, webpack) required. This was thanks in large part to the power and flexibility of the AMD format.
Since it's creation, NPM has set it's sights more firmly on the browser space, and the popularity of the AMD module format is waning. Jam never really got enough traction to compete. Thanks to everone that helped out and gave it a try.
If you want to try hosting your own Jam repository, see the repositories section below. The public Jam repository is now retired.
Jam
For front-end developers who crave maintainable assets,
Jam is a package manager for JavaScript.
Unlike other repositories, we put the browser first.
Manage dependencies - Using a stack of script tags isn't the most maintainable way of managing dependencies, with Jam packages and loaders like RequireJS you get automatic dependency resolution.
Fast and modular - Achieve faster load times with asynchronous loading and the ability to optimize downloads. JavaScript modules and packages provide properly namespaced and more modular code.
Use with existing stack - Jam manages only your front-end assets, the rest of your app can be written in your favourite language or framework. Node.js tools can use the repository directly with the Jam API.
Custom builds - No more configuring custom builds of popular libraries. Now, every build can be optimized automatically depending on the parts you use, and additional components can always be loaded later.
Focus on size - Installing multiple versions works great on the server, but client-side we don't want five versions of jQuery! Jam can use powerful dependency resolution to find a working set of packages using only a single version of each.
100% browser - Every package you see here will work in the browser and play nicely with module loaders like RequireJS. We're not hijacking an existing repository, we're creating a 100% browser-focused community!
Visit the Jam website
Example usage
$ jam install jquery
<script src="jam/require.js"></script>
<script>
require(['jquery'], function ($) {
...
});
</script>
Learn more...
Browser packages in package.json
You can also define your browser dependencies in a project-level package.json
file. If you use Node.js, this format will already familiar to you, and the
Jam dependencies can live alongside your NPM dependencies. It's also possible
to define custom install paths and baseUrls, as well as hand in any requirejs
configuration here:
Repositories are in preference-order, so packages from repositories earlier
in the list will be preferred over packages in repositories later in the
list. However, when no package version is specified, the highest version
number will be installed (even if that's not from the earliest repository).
You can add custom search URLs to repositories too:
If your local repository doesn't implement full text search (e.g. you don't want
to install couchdb lucene), you can disable searching functionality for that repository, otherwise
jam search would report an error:
See the section below on running your own repository.
package_dir
Sets the default package installation directory (normally uses ./jam). This
is best customized in your project-level package.json file, to ensure other
developers also install to the correct location.
exports.package_dir = 'libs';
Running the tests
Jam includes two test suites, unit tests (in test/unit) and integration
tests (in test/integration). The unit tests are easy to run by running the
test/unit.sh script, or test\unit.bat on Windows. The integration tests
first require you to set up a CouchDB instance to test against (you can get
a free account at IrisCouch if you don't want to install
CouchDB). You then need to set the JAM_TEST_DB environment variable to
point to a CouchDB database URL for testing:
set JAM_TEST_DB=http://user:password@localhost:5984/jamtest
Warning: All data in the test database will be deleted!
You can then run the integration tests using test/integration.sh or
test\integration.bat. To run BOTH the unit and integration tests use
test/all.sh or test\all.bat.
The most recent commit recorded on caolan/jam was 10.1 years ago, based on the GitHub push timestamp. The repository has 101 forks — one of the better signals of community interest.
How many stars does caolan/jam have?
caolan/jam has 1.5k GitHub stars — refresh the page for the live number, or check github.com/caolan/jam. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is caolan/jam open source?
Yes — caolan/jam ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/caolan/jam.
What is caolan/jam?
caolan/jam (caolan/jam) is a JavaScript project on GitHub. From the project's own README: JavaScript package manager - using a browser-focused and RequireJS compatible repository
What language is caolan/jam written in?
caolan/jam is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
What license does caolan/jam use?
caolan/jam is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about caolan/jam?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/caolan/jam is the definitive source.
Read full README in the tab above.
Still deciding about jam?
One click hands the question to an AI along with this page — see what it says about jam.