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

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

Build gen AI apps with an all-in-one modern database: MongoDB Atlas

MongoDB Atlas provides built-in vector search and a flexible document model so developers can build, scale, and run gen AI apps without stitching together multiple databases. From LLM integration to semantic search, Atlas simplifies your AI architecture—and it’s free to get started.
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