npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

harland

v0.20.0

Published

The simple and complete web framework

Downloads

81

Readme

Harland is a small, fast and complete web framework for NodeJS.

It differentiates from the other unopinionated tools by following its own well defined path. Meaning that you don't have to think about the structure of your project, leave the hard decisions to Harland.

It comes bundled with multiple useful modules ready to be used, working as an powerful abstraction layer builded on top of Node JS without sacrificing performance.

Note: The core code of the framework is available at Harland-framework.

Features

  • Clean: There's always a clean and good way to do web development, Harland follows that way while being easy and simple.

  • Complete: The framework covers almost everything necessary to build a complete web app in a short amount of time.

  • Fast: The Harland modules are fast and they only get loaded if it's neccesary.

  • Small: The codebase is small in size and dependencies (only 4 including the framework itself).

Modules

These are some of the utilities available at Harland:

  • Route: Powerful system for making clean routes, it includes multiple features.

  • Language: For managing multi-language sites.

  • DI Container: For doing IoC in the simplest way.

  • Middleware: For taking care of your request cycle.

  • Cookies and Sessions: Manage cookies and sessions as you want.

  • Standard library: With a lot of useful functions that can be called natively.

And much more...

Example

system/web.js

const Harland = require('harland-framework');
const Route = Harland.get('route');

Route.get('/home', (req, res) => {
    res.end('hello world');
});

Or use a controller:

app/controllers/home.js

const Harland = require('harland-framework');
const Controller = Harland.get('controller');

Controller.valid([
    'home'
]);

module.exports = class Home {
    index(req, res) {
        res.end('hello world');
    }
}

Then running Harland is as simple as: node index.js.

Those pages will be accessible at localhost:8080/home (if your port is set to 8080).

Testing

Assuming you have installed Harland, open your favorite terminal, move to your Harland project folder and run:

npm test

Make sure you temporarily remove or rename your system/web.js file and app folder, so they don't interfere with the test.

Documentation

First time using it? Read the Wiki.

Want to create your first page? Read the Starting - wiki.

Contributing

Any contribution or support to this project in the form of a pull request or message will be highly appreciated. :heart:

Don't be shy :)

License

Harland is open-source software licensed under the MIT license.