
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
harp-from-the-future
Advanced tools
Zeke's fork of harp with support for browserify and github-based project templates
zero-configuration web server with built in pre-processing
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.
| Language Superset | Whitespace Sensitive | |
|---|---|---|
| HTML | EJS | Jade, Markdown |
| CSS | LESS, Sass (SCSS) | Stylus |
| JavaScript | (TBD) | CoffeeScript |
Authored and maintained by @sintaxi. Made for the @HarpPlatform.
sudo npm install -g harp
Creating a new harp application is a breeze...
harp init myproj
harp server myproj
Your Harp application is now running at http://localhost:9000
Harp can be used as a library or as a command line utility.
Usage: harp [command] [options]
Commands:
init [path] initalize new harp application (defaults to current directory)
server [path] [options] start harp server
compile [path] [options] compile project to static assets
multihost [path] [options] start harp server to host directory of harp apps
Options:
-h, --help output usage information
-V, --version output the version number
Start the server in root of your application by running...
harp server
You may optionally supply a port to listen on...
harp server --port 8002
Compile an application from the root of your application by running...
harp compile
You may optionally pass in a path to where you want the compiled assets to go...
harp compile --output /path/to/cordova/project/www
You may also use harp as a node library for compiling or running as a server.
Serve up a harp application...
var harp = require("harp")
harp.server(projectPath [,args] [,callback])
Or compile harp application
var harp = require("harp")
harp.compile(projectPath [,outputPath] [, callback])
Or use as Connect/ExpressJS middleware
var express = require("express");
var harp = require("harp");
var app = express();
app.configure(function(){
app.use(express.static(__dirname + "/public"));
app.use(harp.mount(__dirname + "/public"));
});
If you find a bug you would like fixed. Open up a ticket with a detailed description of the bug and the expected behaviour. If you would like to fix the problem yourself please do the following steps.
git checkout -b fix-for-that-thing)git commit -am "adds a failing test to demonstrate that thing")git commit -am "fixes that thing")git push origin fix-for-that-thing)Please keep your branch up to date by rebasing upstream changes from master.
If you wish to add new functionality to harp, please provide @sintaxi a harp application that demonstrates deficiency in current design or desired additional behaviour. You may also submit a pull request with the steps above.
Copyright 2012–2014 Chloi Inc. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
Zeke's fork of harp with support for browserify and github-based project templates
We found that harp-from-the-future demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.