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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@bylickilabs/cyber-guard

v1.0.3

Published

CyberGuard – AI-driven client-side security, protection, DDoS mitigation, monitoring and defensive hardening.

Readme

🛡 CyberGuard

Version 1.0.1 — Multi-Layer Client-Side Security Protection Suite

  • CyberGuard delivers a modular, multi-layer security system for modern web applications.
  • It consolidates client-side anomaly detection, DDoS-Guard, DOM protection, input shielding, service-worker hardening,
    • and UI blackout controls into a single, cohesive security package.

Designed for seamless integration into any HTML-based project.

  • Performance-optimized. Engineered by BYLICKILABS.

🚀 Included Security Modules

✔ AI Monitoring Layer (ai.js)

  • Performance tracking
  • Error & anomaly logging
  • Network monitoring
  • FPS measurement
  • Behavior scoring
  • Client-side analytics

✔ DDoS-Guard (ddos-guard.js)

  • Event‑flood detection
  • Request throttling
  • Basic bot traffic mitigation
  • Client-side shield activation

✔ DOM Protection (protect.js + protect.css)

  • Blackout screen
  • Anti-manipulation guard
  • Tamper detection
  • UI shielding

➕ Additional Features in v1.0.1 (Upgrade from v1.0.0)

Version v1.0.1 extends the existing feature set with structured telemetry, deeper contextual insight, and professional reporting capabilities. All features from v1.0.0 remain fully intact.


🔹 Session & Event Telemetry

  • Introduction of a global Session ID per page load
  • Sequential Event IDs for unique identification of every log entry
  • Consistent event ordering across the entire session
  • Capture of session start time for time-based analysis

🔹 Breadcrumb Tracking (Context History)

  • Recording of relevant pre-events before failures:
    • User click interactions
    • JavaScript runtime errors
    • Unhandled promise rejections
    • Network & XHR errors
    • Online / Offline state changes
  • Automatic limitation of breadcrumb history
  • Breadcrumbs embedded into every log entry

🔹 Per-Event Snapshot Extensions

Each log entry now includes:

  • Performance snapshot (page load time, average FPS, low-FPS frames)
  • Network snapshot (request counters, error count, offline state)
  • Resource snapshot (failed resource loads)
  • Current breadcrumb context

🔹 Extended Network Error History

  • Persistent tracking of recent network and XHR failures
  • Storage of:
    • URL
    • HTTP status
    • Request method
    • Request duration
  • Integrated into incident and session reports

🔹 Advanced Export & Reporting Capabilities

  • CSV export for structured analysis and BI tooling
  • HTML report for management, audit, and documentation use
  • Session-specific export (logs limited to the active session)
  • Enhanced JSON exports including session and telemetry data

🔹 UI Overlay Enhancements

  • Additional export controls:
    • CSV
    • HTML
    • Session report
  • Improved button grouping for operational workflows
  • Increased information density without breaking existing behavior

🔹 Internal Stability & Governance Improvements

  • Event sequence reconstruction from local storage
  • Clean initialization of session state
  • Consistent log structures across all export formats
  • No breaking changes to the existing public API

v1.0.1 elevates the AI Monitoring Layer from basic client-side monitoring to a fully observability-ready telemetry and incident analysis system, remaining entirely backend-free and privacy-first.


📦 Installation (npm)

npm i @bylickilabs/cyber-guard

🌐 CDN Integration

Insert into <head>:

jsDelivr

<script src="https://cdn.jsdelivr.net/npm/@bylickilabs/cyber-guard/ai.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/@bylickilabs/cyber-guard/ddos-guard.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/@bylickilabs/cyber-guard/protect.min.js" defer></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@bylickilabs/cyber-guard/protect.min.css">

unpkg

<script src="https://unpkg.com/@bylickilabs/cyber-guard/ai.min.js" defer></script>
<script src="https://unpkg.com/@bylickilabs/cyber-guard/ddos-guard.min.js" defer></script>
<script src="https://unpkg.com/@bylickilabs/cyber-guard/protect.min.js" defer></script>
<link rel="stylesheet" href="https://unpkg.com/@bylickilabs/cyber-guard/protect.min.css">

⚫ Blackout Layer & Input Shield

Insert into <body>:

<!-- BLACKOUT LAYER BEGIN -->

<div id="blackout" class="blackout" aria-hidden="true"></div>

<!-- BLACKOUT LAYER END -->

---

<!-- INPUT SHIELD BEGIN -->

<script language="JavaScript1.2">
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>

</head>
<body oncontextmenu="return false">
<script language="JavaScript1.2">
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>

<!-- INPUT SHIELD END -->

Optional Screenshot Support with html2canvas

This project can optionally support in-browser screenshots of sections of your web application by using the html2canvas library.


🔧 1. Integration in the <head> Section

[!TIP] To enable screenshot functionality, add the following script tag inside the <head> section of your HTML document:

    <script src="https://html2canvas.hertzen.com/dist/html2canvas.js"></script>

[!NOTE] This script is optional. If you do not need screenshot or capture functionality, you can omit this dependency and the rest of the framework will continue to work as usual.


✅ Summary

  • Adding html2canvas.js to the <head> section enables optional screenshot features for your web UI.
    • If you do not require this functionality, you can simply leave it out.

🛡 License

MIT © BYLICKILABS LICENSE