Smashing Magazine - we smash you with the information that will make your life easier. really.
50 Useful JavaScript Tools
By Jacob Gube
JavaScript is a powerful client-side scripting language used in many modern websites and Web applications. In the hands of a skilled Web developer, JavaScript can enhance the user’s experience of the website and provide rich interactive components and features. But even though syntactically simple in nature, JavaScript is often difficult to author because of the environment it runs in: the Web browser. JavaScript’s popularity is evident in emerging technologies, such as Adobe AIR, which use it as a supported language for creating desktop-based applications.
Below, you’ll find 50 excellent tools to help you achieve various tasks involved in authoring JavaScript code. You’ll find useful tools to speed up your coding processes, including debugging tools to hunt down places where your scripts break, unit testing and validation tools to test your scripts in various situations, security vulnerability scanners and code optimization tools to make sure your scripts are light as a feather.
You’ll also find a few new and alternative JavaScript and AJAX frameworks to help you explore options beyond the big names (i.e. MooTools, jQuery, YUI, Dojo, Prototype), in addition to useful scripts to help you accomplish a host of design and development tasks related to JavaScript.
Also, be sure to check out the following related posts:
- 75 (Really) Useful JavaScript Techniques
- 60 AJAX- and Javascript Solutions For Professional Coding
- jQuery and JavaScript Coding: Examples and Best Practices
- 50 Extremely Useful And Powerful CSS Tools
JavaScript/AJAX Authoring Tools
- jQuery UI
The jQuery UI allows you to design custom user interfaces for Web applications using the jQuery library. With jQuery UI, you can reduce the amount of code you write for common rich interactive features and website widgets. Be sure to check out the jQuery UI Demo page, which showcases some of the things you can accomplish using jQuery UI. - Google Web Toolkit
The Google Web Toolkit (commonly referred to as GWT) is a framework for developing complex and fully featured AJAX-based Web applications. You write front-end code in Java that is later compiled into optimized and cross-browser-friendly JavaScript. GWT puts the focus on Web application development by reducing the need for testing and debugging JavaScript for browser quirks. - Jx
Jx is a JavaScript library for creating graphical user interfaces written on top of the MooTools framework. Jx is distributed with an MIT license and is well documented. Numerous examples as well as thorough and well-organized API documentation is available on the website. - Freestyle Webtop Toolkit
Freestyle aims to reduce the complexity and time involved in deploying Web-based user interfaces by eliminating the separation of client-side and server-side development. With Freestyle, you focus on programming logic and UI design, and it handles the rest (i.e. cross-browser compatibility and DHTML and AJAX development). - Script#
Script# is an AJAX and JavaScript authoring tool that allows developers to write in C#. It also allows .NET developers to leverage their existing knowledge and provides powerful tools associated with the .NET framework. - Aptana Jaxer
Aptana Jaxer is the first “AJAX server” that allows developers to use their AJAX, HTML, JavaScript and DOM knowledge to create fully featured server-side-powered Web applications. With Jaxer, you can even write database queries in JavaScript syntax. Jaxer integrates very well with popular JavaScript libraries such as jQuery, Dojo and Ext JS. - JS Regex Generator
JS Regex Generator helps JavaScript developers write Regular Expressions for matching strings of text. This is commonly done for text-format validation, such as when checking if inputted text has the correct date and email format. - WaveMaker
WaveMaker is open-source software for complete Web application development and deployment. You can find a host of demo applications built and deployed using WaveMaker on the Demo Applications page.
Documentation Tools
- JSDoc Toolkit
JSDoc Toolkit makes code documentation a breeze. Written in JavaScript, it helps developers automatically generate templates for JavaScript comments. It’s a great tool for managing large-scale applications developed by teams of developers who have different coding styles. - jGrouseDoc
jGrouseDoc is an open-source project distributed through Google Code under a modified BSD license. It lets developers document and manage their code comments using a format similar to Javadoc’s.
JavaScript Debugging Tools
- Firebug
Firebug is an extremely popular and well-regarded front-end debugging tool. It has all the features you’d expect from a JavaScript debugging tool, such as the ability to set breakpoints in your code so that you can step through your script. For people developing outside of Mozilla-based browsers, check out Firebug Lite, which is a JavaScript library you can include in your Web pages to access some of the features of Firebug. - Venkman JavaScript Debugger
Venkman is Mozilla’s JavaScript debugger and an add-on for Gecko-based browsers. Venkman is a robust and fully featured JavaScript debugging environment, with a host of useful features and options, such as code profiling to inspect your script’s performance. - Drosera
Drosera is an excellent debugging tool for Safari and WebKit-based browsers. - Opera Dragonfly
Opera Dragonfly is a robust debugging environment for the Opera browser. Dragonfly allows you to view and inspect errors, debug your scripts and inspect and edit the DOM and CSS on the fly. - NitobiBug
NitobiBug is a browser-based JavaScript object logger and inspector. It runs on numerous browsers, including IE, Safari, Opera and Firefox. It is a powerful tool in helping developers build rich interactive AJAX applications. - DebugBar
DebugBar is an in-browser front-end debugger for Internet Explorer. Much like its Firefox counterparts, it has a robust set of features, such as DOM, JavaScript and cookie inspection. Be sure to check out Companion JS, which is a JavaScript debugging library to be used alongside DebugBar. - Internet Explorer Developer Toolbar
Similar to Firebug, IE Developer Toolbar is an in-browser tool to help you debug front-end code in Internet Explorer. It’s especially handy as a debugging and inspection alternative to Firefox when you’re developing and testing in IE.
JavaScript Testing and Validation Tools
- Test – JavaScriptMVC
Test is a JavaScriptMVC component for easily setting up automated unit testing for JavaScript code. It lets you effectively test for DOM events (such as a key press or form submission), thereby lessening development time, oversight and errors associated with manual testing. - JsUnit
JsUnit is a popular unit testing framework for JavaScript code. It’s a JavaScript port from another unit testing framework for Java called JUnit. JsUnit allows you to write test cases and provides tools for automated code execution. - JSLint
JSLint is a Web-based tool for verifying your JavaScript code for errors. It has a ton of features and settings that you can use to customize verification algorithms to suit your needs. - Crosscheck
Crosscheck is an open-source testing framework for JavaScript. Crosscheck is unique because it works independent of environment: you can run tests outside of a Web browser, which avoids discrepancies that occur when testing in various browsers. - YUI Test
YUI Test is a suite of testing utilities that’s part of the YUI library developed by Yahoo!. It has numerous features, such as easy creation of test cases through an intuitive syntax, advanced failure detection and the ability to organize test cases by grouping them into test suites. - J3Unit
J3Unit is an excellent object-oriented unit-testing framework for JavaScript. It gives you a host of options for writing automated test cases and has three modes: Static Mode, Local Browser Mode and Remote Browser Mode. - Regular Expression Tool
The Regular Expression Tool is an online utility that allows you to test your RegEx code against a sample test. It’s a handy tool to have around when you want to quickly test the efficacy of your regular expressions in a variety of example texts. - JavaScript Regular Expression Tester
This is another handy tool for testing regular expressions within the Web browser. - JSLitmus
JSLitmus is a lightweight tool for creating JavaScript benchmarks and performance tests, using an intuitive API.
Security Tools
- AttackAPI
AttackAPI is a framework for writing test cases of potential JavaScript exploits and vulnerabilities. - jsfuzzer
jsfuzzer is a fuzzing tool to help you write (and test for) attack vectors in JavaScript.
New and Alternative JavaScript and Ajax Development Frameworks
- Clean AJAX
Clean AJAX is an open-source framework for creating AJAX-based applications. Check out the demo page to see it in action. - SAJAX
SAJAX is an excellent toolkit for developing AJAX-based applications. It supports PHP, Perl and Python. - JavaScriptMVC
JavaScriptMVC is a Web application framework based on the MVC software architectural pattern. It speeds up Web development processes and lays down best practices, maintainability and standards as principles in a project’s development. - qooxdoo
qooxdoo is a simple and intuitive AJAX application framework. Be sure to check out the Demo Browser, a Web-based application that allows you to view demos of qooxdoo at work. - SimpleJS
SimpleJS is a small and lightweight JavaScript library that provides developers with useful JavaScript functions for working with AJAX.
Image Manipulation and Graphing
- Reflection.js
Reflection.js automatically adds reflections to your images unobtrusively. Also check out instant.js, a similar script that adds an image border and tilts images on a Web page. - typeface.js
typeface.js allows you to embed custom fonts on Web pages, freeing you from having to create images for HTML text. - CanvasGraph.js
CanvasGraph.js is a simple JavaScript library that lets you construct bar, line and pie charts using HTML’s canvas element. - flot
flot is a JavaScript library for plotting data and has been tested to work in most modern Web browsers. - JavaScript Diagram Builder
The JavaScript Diagram Builder is a JavaScript library that consists of a variety of objects and functions for constructing diagrams. - The Dojo Charting Engine
The Dojo Charting Engine is a robust utility for creating components for data visualization, written on top of the Dojo Toolkit.
Useful Utilities and JavaScript Scripts
- Processing.js
Processing.js is a JavaScript port of Processing, the open-source data-visualization programming language. Check out examples that use Processing.js. - AJAX Libraries API
Google’s AJAX Libraries API allows you to serve popular JavaScript libraries using its CDN, which reduces the server load on your website. - DamnIT
DamnIT is an error-reporting service that allows you to gather feedback from beta testers after they’ve encountered a JavaScript error. This is perfect for live production testing and as a monitoring tool that helps you track errors and weak spots in your Web applications. - ie7-js
ie7-js is a JavaScript library that forces Internet Explorer to behave like a standards-based browser (like Firefox or Opera). It automatically fixes IE browser quirks and deviations from Web standards, as in the case of its box model. - Lazy loader
Lazy loader is a jQuery plug-in that delays the loading of images so that text content can load first, thereby making image-heavy pages load faster.
JavaScript Code Optimization and Minification Tools
- JS Minifier
JS Minifier is a Web-based tool for shrinking your JavaScript code to make it as lightweight as possible. - JSMIN
JSMIN is a popular JavaScript minifier that removes unneeded characters (like spaces and tabs) and comments, thus reducing your script’s file size. - YUI Compressor
The YUI Compressor is another well-regarded JavaScript code-optimization tool developed by Yahoo!. - Scriptalizer
Scriptalizer is a helpful online tool for combining JavaScript files to reduce HTTP requests. - ShrinkSafe
ShrinkSafe is a compression tool that reduces JavaScript file sizes. - SlickSpeed Selectors Test
SlickSpeed is a Web page for comparing the performance of the DOM object selection of various popular frameworks like MooTools and jQuery.
(al)
Jacob Gube is a bilingual web developer (JavaScript and PHP), web designer, author, and the Founder/Chief Editor of Six Revisions: an online publication that shares useful development and design resources and tutorials for web professionals.
- 87 Comments
- 1
- 2February 8th, 2009 6:53 pm
Javascript! Run for the hills! That’s the way I’ve always felt about javascript. I just thankful that the syntax is nearly identical to PHP.
- 3February 8th, 2009 7:17 pm
Javascript is great. It’d also be real cool to see some Adobe Flex stuff on SmashMag one day :)
- 4February 8th, 2009 8:53 pm
This is awesome! Tnx :)
- 5February 8th, 2009 10:11 pm
Nice round up Jacob !!
There are definitely useful items, I very much rely on Web Developer extension for Firefox & Firebug and would happily recommend it to any other web developer and designer.
Although You missed many other great tools in this list like… Roar, Growl, Got API, SproutCore, The Regulator, Snippely, Google Mashup Editor, Beautify Javascript, ThemeRoller etc. etc..
And finally… The one which i missing a most is “Greasemonkey”.
Thanks anyway for your nice effort.
DKumar M.
- 6February 8th, 2009 10:17 pm
Thanks for this great list.
- 7
- 8February 9th, 2009 12:38 am
Nice list, how no-one minds, I’ll pimp my own mocking framework on Google code: http://code.google.com/p/qmock (library agnostic but works best with Qunit). Just in case there’s any hardcore TDDers out there!
- 9February 9th, 2009 12:54 am
Thnaks for this list.
Maybe we can add LivePipe UI.
LivePipe UI is a suite of high quality widgets and controls for web 2.0 applications built using the Prototype JavaScript Framework. Each control is well tested, highly extensible, fully documented and degrades gracefully for non JavaScript enabled browsers where possible. MIT licensed and actively maintained. - 10
- 11February 9th, 2009 4:00 am
Great roundup – javascript is a great language that allows you to add “something special” to a site. However, the important thing to remember is to keep the site functional before the addition of any scripts – they are mostly there for the visual impact.
- 12February 9th, 2009 4:05 am
Awesome. So awesome!
- 13February 9th, 2009 6:07 am
Marvelous post :)
I didn’t know Jx but I think it’s very useful. I found another Jx version for jQuery here.
- 14February 9th, 2009 6:15 am
Great reference list. In time for me. Thanks
- 15February 9th, 2009 6:24 am
Also check out the Event Spy, Chickenfoot, iMacros, and Greasemonkey Firefox add-ons. There is an awesome script for Greasemonkey called XmlHttpRequestDebugging as well.
Another lint program I found was JSON Lint.
Other tools such as Sahi, Selenium (including the Firefox add-on IDE version), RBNarcissus, Watir / Watij / WatiN, and firewatir are great functional testing tools. Crawljax and CSpider.js are also worth a look for implemented crawling engines.
JSSh, jasildbg, and JS Commander (jscmd) are additional debuggers.
For security tools, you may want to list BeEF in addition to AttackAPI. The Technika project has some interesting features on top of Firebug. Other security-focused tools include ratproxy (from Google), and two tools from OWASP: Sprajax and Interceptor. There are also a few XML fuzzers such as untidy which may prove useful for security testing Ajax. A lot of potential comes way via the w3af attack tool, which currently supports DOM-based XSS testing, but will have even more future JS/Ajax/Flash/RIA security testing support.
There are some nice Actionscript projects such as flash-thunderbolt which integrates with Firebug for when you’re debugging Flash applications and want to use something besides trace(). Web proxies such as Charles are also useful for Actionscript / AMF troubleshooting.
Finally, in the commercial space I am aware of a few good tools. softwareverify.com has a Javascript Coverage Verifier. HP makes a tool called WebInspect (and QAInspect) which includes Ajax/Flash security scanning – as does IBM with their AppScan product. Fortify Software has Javascript security and lint-like features in their static-analysis tool. I’d avoid Fortify if you’re only going to use it for this purpose because it’s really only going to tell you to avoid eval(), setInterval() and setTimeout() or equivalents.
- 16February 9th, 2009 6:24 am
Btw. Drosera has been dead for more than a year now. It has been replaced, even in release versions of Safari, with the much more powerful Web Inspector. For more information, read the blog post: Web Inspector Redesign.
Otherwise, a great list!
- 17February 9th, 2009 6:48 am
Great list. Thanks!
- 18February 9th, 2009 7:18 am
I also forgot to mention some trial tools such as Syhunt Sandcat Scanner Free edition and Acunetix WVS. AppScan and WebInspect are much better, but Syhunt and Acunetix have working trial downloads.
Be sure to check out the Blueinfy tools – http://blueinfy.com/tools
especially AppPrint and the scanweb2.0 tools! There are tools for Ajax/Flash fingerprinting, all written in Ruby, serving as great examples for testing purposes. - 19February 9th, 2009 8:26 am
That’s a very nice list! Thanks.
As an addition to JavaScript authoring tools I’d mention DHX Toolkit (dhtmlx.com), they provide a set of nice-looking dhtml components, quite fast and easy to implement. - 20February 9th, 2009 8:57 am
Thank you very much!
- 21February 9th, 2009 12:23 pm
I use Regex Buddy for building complex expressions, it is a great time saver
- 22February 9th, 2009 12:29 pm
Another great resource, time to group all my [SM] bookmarks into a group. Hey .. when is there an article about that coming up ;)
- 23February 9th, 2009 3:47 pm
Good list – there’s a few in there I hadn’t heard about before.
For documentation tools, I’d also add in Code Illuminated. Also written in JavaScript, it generates documentation on-the-fly – so no build step is required. It has an emphasis on typography, readability, and ease of use.
- 24
- 25February 9th, 2009 11:19 pm
great post
companion js and the ie7-js
seems so interesting to me - 26February 10th, 2009 5:10 am
Great Tips. Some well known others really cool to find out about
- 27February 10th, 2009 5:54 am
Thanks for this useful tips!
- 28February 10th, 2009 11:26 am
#2 > “I just thankful that the syntax is nearly identical to PHP.”
$tmp = strpos($txt, ’search’);
looks like
tmp = txt.indexOf(’search’);
???
Seriously, these two languages are completely different.I like that SM list, and use some of the tools listed above. Flot for instance, is really perfect and replaced my older Flash graphics for monthes, now.
I still don’t get why a java programmer would use GWT : it seems much more complicated than any JS framework. Maybe because many Java programmers are scared of JS and refuse to learn how JS/HTML really work ? - 29February 10th, 2009 12:46 pm
Javascript is pain in ass. Use Flex or Silverlight. Yes, there is possible to do all cool and rich interface application in javascript, but the effort is not worth it.
- 30February 10th, 2009 1:15 pm
Hey, great post thanks!
- 31February 11th, 2009 2:48 am
the IE developer toolbar should be included in that list
- 32February 11th, 2009 4:22 am
Thanks for the helpful feedback everyone.
@Brian Gottier I wouldn’t say JS and PHP are identical, but they share a lot of similarities. The reason is they’ve both been influenced in some way by C.
@Sven Eller While I agree with you in that JS can be a pain when it comes to cross-browser supported complex animations and effects, it’s got a few advantages over using Flex/Silverlight for web apps. I’m not disparaging those technologies you mentioned, they’re great, especially Flex, but I think there’s room for all and you’ve got to use what’s best for you and what’s best for what you’re doing.
- 33February 11th, 2009 5:16 am
Javascript is garbage. It’s a huge kludge to help with the fiasco that modern web browsers have become. Stoooopid people have forced web browser (designed for document browsing) to be a place for running applications. Javascript running inside a browser is the the horrible bastard offspring of that movement.
- 34February 13th, 2009 1:09 am
@Jack, almost all of the most recent important apps use JavaScript. Somehow the browser is doing enough right.
@Jacob, thanks for the shotout. However, a big chunk of JavaScriptMVC’s awesomeness is how easily you can compress apps with it. Btw, It also includes a documentation engine now: http://javascriptmvc.com/wiki/index.php?title=Documentation_Overview.
Oh, and your tests can run on the server in env. We are trying to release 1.5 tonight!
- 35
- 36February 25th, 2009 1:18 pm
Nice
- 37April 4th, 2009 4:04 pm
here’s a tool for javascript code metrics like cyclomatic complexity and maintainability index:
http://boyopeg.googlepages.com/jsmeter.html
full disclosure: early release, written by me
- 38April 29th, 2009 6:12 pm
HELP needed for one who just fell in love with javascript within html web pages utilized offline!!!
I am sure everyone on this thread can answer my question!Calling OFFLINE files on local drive using window.setTimeOut to delay some calls. ISSUE: When I call a file w/o empty space in name, this function calls w/o errors on page, but I do not know how to do it when file has in its name.
function runXZNNespritsPMz() {
File=”E:\\XZNNesprits\\ZZ XZNNesprits PMz.session”;
WSH=new ActiveXObject(”WScript.Shell”);
WSH.run(File);
}Carl
XZNN - 39June 23rd, 2009 7:59 am
I suspect your personal favourite is jQuery but it does seem odd to omit YUI from the “JavaScript/AJAX Authoring Tools” section. It is certainly capable of anything that jQuery is and probably has the richest set of features among all comparable offerings.
- 00
There are no trackbacks at this time. If you are interested in leaving a trackback, please use this URL.
Leave a Comment
Make sure you enter the * required information where indicated. Please also rate the article as it will help us decide future content and posts. Comments are moderated – and rel="nofollow" is in use. Please no link dropping, no keywords or domains as names; do not spam, and do not advertise!
Interact
Popular
- 100 Wordpress Themes
- Photoshop Tutorials
- Fantastic Wallpapers
- 40+ Excellent Freefonts
- Dual-Screen Wallpapers
- Wordpress Themes for 2009
- Illustrator Tutorials
- Incredible Free Icon Sets
- High-Quality Free Fonts
- 30 Scripts For Galleries
- Photoshop Text Effects
- Useful Icon Sets
- Web Design Trends
- iPhone Wallpapers
- Before Launching a Website
- CSS Layouts And Templates
- Photoshop Actions
- Stunning Pictures and Photos
- Fantastic HDR Pictures
- Logo Design Tutorials
- Free Design Templates
- 10 Mistakes In Logo Design
- Photoshop Custom Shapes
- 40 Creative Design Layouts
- 8 Layout Solutions
- 53 CSS Techniques
- Photography Techniques
- Black & White Photography
- Styling Design Elements
- CSS-Based Forms
- 50 jQuery Techniques
- 50 Portfolio Websites
- 50 CSS Techniques
- Creative Logo Designs
- Desktop Wallpapers
- 25 Open Source Mac Apps
- 50 Free Icon Sets
- The Big Showcase Of Online T-Shirt Stores - http://bit.ly/5Tq8uA
- @ilmv oh ok then ;)
- @ilmv no, the SM Book will not be out of date :) We made sure it contains universal design, usability and marketing principles.
- Apple ad bombing Windows 7 on Google - http://bit.ly/28ctPq
- Atatonic - a fresh CSS framework - http://bit.ly/4oOV2w (via @umutm)
- @HrvojeKC yes, that's an interesting idea. Maybe when the waiting is over, we'll write a detailed post about it.





























Great compilation, thanks! The new IE8 Developer Toolbar is much better now, and finally includes JavaScript debugging.