Harp is a static web server that also serves Jade, Markdown, EJS, Less, Stylus, Sass, and CoffeeScript as HTML, CSS, and JavaScript without any configuration. It supports the beloved layout/partial paradigm and it has flexible metadata and global objects for traversing the file system and injecting custom data into templates. Optionally, Harp can also compile your project down to static assets for hosting behind any valid HTTP server. Pre-compilers are becoming extremely powerful and shipping front-ends as static assets has many upsides. It's simple, it's easy to maintain, it's low risk, easy to scale, and requires low cognitive overhead. I wanted a lightweight web server that was powerful enough for me to abandon web frameworks for dead simple front-end publishing. Harp can be used as a library or as a command line utility. You may also use harp as a node library for compiling or running as a server.

Features

  • Easy installation, easy to use
  • Fast and lightweight
  • Robust (clean urls, intelligent path redirects)
  • Built in pre-processing
  • First-class layout and partial support
  • Built in LRU caching in production mode

Project Samples

Project Activity

See All Activity >

Follow Harp

Harp Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Harp!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Realtime Processing Software, JavaScript Application Servers

Registered

2021-10-29