JSCause is built to be both easy to use, and powerful with a rich set of features:
- It runs on Node.js. Even better, it doesn’t need npm. That’s right, no external dependencies whatsoever! (There is an npm version; but again, this is not needed.)
- It’s easy to install. Just unpack (unzip), run
node jscause.js
on the terminal and you’re good to go.- Or if you use npm, run
npm install -g jscause
, and then runjscause
on your website’s directory.
- Or if you use npm, run
- It’s easy to maintain. Your site’s configuration is in the
configuration
folder, and your content is in thewebsite
folder. That’s it. - Simple site architecture. Do you need to serve
/myfolder/myfile
? Put your content inwebsite/myfolder/myfile.jscp
. - Serve static assets with no fuss. Do you need to serve
/myimages/image1.jpg
? Put your image inwebsite/myimages/image1.jpg
. - Custom error messages. Create your cool “404, Not Found” page and place it in
/website/error4xx.jscp
. - Easy query string handling. Access
name
in/myfile?name=Jane
by usingrt.getParams['name']
. - Easy content upload handling. Handle form and JSON submissions, as well as file uploads, with simple commands (e.g.
rt.postParams['first_name']
.) - Multiple sites. You can have, for example, “mysite1.com” in
sites/mysite1/website
and “mysite2.com” insites/mysite2/website
. - Server logs. Check out
/website/localLogs
to see how your site is being accessed. - HTTPS-ready. Provide JSCause with your SSL certificates and serve HTTPS content in no time.
- Built with security in mind. Escape content for output and set upload limits and request timeouts.
- Released under the MIT License. JSCause is free for both non-commercial and commercial puposes.
Learn more
- Check out the tutorial.
- Read the full documentation.