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

hostweb

v2.0.0

Published

Simple localhost server with presets

Downloads

48

Readme

About

HostWeb was created to serve .html, .md, .png and other files you can imagine! It also has a lightweight bundle system! Pack system is a set of bundles that you can use in your project (.hw files). It means that you can make whole website in just one file!

Why HostWeb?

  • Easy to use - hostweb has been designed to be easy to use.
  • Fast - HostWeb use express to serve files fast as possible, just like it's name!
  • Pre-configured - HostWeb is a pre-configured server, it means you don't have to set up anything.
  • Front-back integration - HostWeb comes with HWAPI - connection with frontend and backend.
  • Irreplaceable in education - HostWeb an is easy-to-use tool to learn how frameworks work and how to manage front-end and back-end, what is important in other technologies like electron.

Installation

npm i -g hostweb

Usage

serve

The base command is hostweb serve examples:

1. Serve a .md

hostweb serve example.md

It converts markdown to html and serves it.

2. Serve a .html

hostweb serve example.html

It serves html.

create

hostweb create command is used to create new preset.

1. Create new project

hostweb create example

It creates new project folder in current directory.

2. Create new project in current directory

hostweb create .

It creates new project in current directory.

build

hostweb build command is used to build your project.

hostweb build -o dist --debug

.hw file lands in dist directory, and enables debug mode to show additional info while compiling

.hostwebrc

It looks like this

file=hostwebrc ; I DARE YOU DO NOT TOUCH IT

[config]
name=my-project ; name of project (used by hw compiler)
usehwapi=true ; enable/disable hwapi (check next article to learn more)
ignore[]=README.md ; ignore files in ./src

[config.build]
type=classic ; type of build (now only classic)
usegzip=true ; enable/disable gzipping file (disable for debugging)
minify=true ; minify files like html, js, css etc.
parsemd=true ; parse md files (when you have md files it will parse it to html to view it in browser)

Learn more at docs.