Gathering detailed insights and metrics for hostr
Gathering detailed insights and metrics for hostr
Gathering detailed insights and metrics for hostr
Gathering detailed insights and metrics for hostr
npm install hostr
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
76 Commits
4 Forks
1 Watchers
2 Branches
2 Contributors
Updated on Mar 12, 2025
Latest Version
3.1.0
Package Id
hostr@3.1.0
Unpacked Size
20.90 kB
Size
7.71 kB
File Count
19
NPM Version
10.9.0
Node Version
22.12.0
Published on
Dec 19, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Great for testing quick HTML code.
A simple web server for the current working directory. Used for hello world style web sites hosting only files in current directory structure.
Serves up files and caches files for quick responses.
Watches directory structure and refreshes on file changes through LiveReload.
Run the following
npm install hostr -g
Run the following command to host the current working directory
cd project/my_development_project
hostr
A simple web server will be hosted at
http://localhost:3000
To host at a different port, set the PORT environment variable (For example, host on port 8080).
1hostr --port 8080
To disable watching (debugging only)
1hostr --watch off
To ignore files create a .hostrignore
file in the current working directory using minimatch notation
file
directory/all/files/**/*
directory/*
For more information check out minimatch
LiveReload is used for development. hostr monitors your files. When a file save occurs LiveReload communicates with your site and pushes a refresh to your browser (e.g. - iPhone/Android/Blackberry, Desktop-Chrome/IE/Safari) so that your changes are immediately visible.
Communication between hostr and LiveReload occur through WebSockets. You must use a WebSocket enabled browser.
To use LiveReload (additional instructions):
Add the following code to your HTML:
<script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
Then run hostr and when file changes are detected your browser will refresh.
cd project/my_development_project
hostr
LiveReload port can be changed (default: 35729), to use port 32021
1hostr --livereload-port 32021
To disable LiveReload
1hostr --livereload off
To change cache expiration time (seconds, default: 60)
1host --cache-expiration 5
To run quietly use
1hostr --quiet
And output will be suppressed
If you've got ideas on how to make hostr better create an issue and mark an enhancement in Github.
Copyright (c) 2014 Henry Tseng
Released under the MIT license. See LICENSE for details.
7.5/10
Summary
Directory Traversal in hostr
Affected Versions
<= 2.3.5
Patched Versions
2.3.6
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
8 existing vulnerabilities detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/28 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn Morehostr-cli
Command-line client for hostr.co
hostrc
> An alternate host-switch minimal solution of [SwitchHosts](https://github.com/oldj/SwitchHosts) && [multiple-host](https://github.com/liyangready/multiple-host)
stencil-hostref-bug
Stencil Component Starter
kak-v-binanse-naiti-p2p-koshelek-6hostrouv
kak-v-binanse-naiti-p2p-koshelek-6hostrouv