JSPM

  • Created
  • Published
  • Downloads 1052
  • Score
    100M100P100Q93231F
  • License CC-BY-4.0 OR GPL-3.0-or-later

Locking Down Networks, Unlocking Confidence | Security, Networking, Privacy β€” Network Pro Strategies

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@networkpro/web) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    🌐 Network Pro β€” Web Presence

    Locking Down Networks, Unlocking Confidenceβ„’
    Security, Networking, Privacy β€” Network Proβ„’

     

    πŸš€ Project Overview

    This is the official web presence for Network Pro Strategies, a privacy-forward consultancy specializing in network engineering, information security, and public advocacy focused on cybersecurity and digital privacy.

    Built with SvelteKit and deployed via Netlify.
    Blog and documentation subsites built with Material for MkDocs and deployed via GitHub Pages.
    All infrastructure and data flows are designed with maximum transparency, self-hosting, and user privacy in mind.

    πŸ“ Repository Structure

    .
    β”œβ”€β”€ src/
    β”‚   β”œβ”€β”€ lib/             # Reusable components, styles, utilities
    β”‚   β”œβ”€β”€ routes/          # SvelteKit routes (+page.svelte, +page.server.js)
    β”‚   β”œβ”€β”€ hooks.client.ts  # Client-only lifecycle hooks (e.g., SW control)
    β”‚   └── app.html         # SvelteKit entry HTML with CSP/meta/bootstrap
    β”œβ”€β”€ tests/               # Vitest test suites
    β”œβ”€β”€ public/              # Static assets served at root
    β”œβ”€β”€ netlify.toml         # Netlify configuration
    β”œβ”€β”€ .github/             # CI workflows and automation
    └── ...

     

    πŸ›  Getting Started

    πŸ“¦ Environment Setup

    git clone https://github.com/netwk-pro/netwk-pro.github.io.git
    cd netwk-pro.github.io
    cp .env.template .env
    npm install

    Edit .env to configure your environment mode:

    ENV_MODE=dev  # Options: dev, test, ci, preview, prod

    ENVMODE is used for tooling and workflows β€” not by SvelteKit itself.
    Use VITE
    -prefixed env variables for runtime values.

     

    πŸ“ Node.js Version Management

    This repo uses .nvmrc and .node-version for version consistency with tools like:

    • nvm
    • asdf
    • Volta
    • GitHub Actions
    node -v     # Should match "engines" in package.json
    npm -v

     


     

    πŸ“œ Available Scripts

    The following CLI commands are available via npm run <script> or pnpm run <script>.

    πŸ”„ Development

    Script Description
    dev Start development server with Vite
    preview Preview production build locally
    build Build the project with Vite
    build:netlify Build using Netlify CLI
    css:bundle Bundle and minify CSS

    βœ… Pre-check / Sync

    Script Description
    prepare Run SvelteKit sync
    check Run SvelteKit sync and type check with svelte-check
    check:watch Watch mode for type checks
    check:node Validate Node & NPM versions match package.json engines
    checkout Full local validation: check versions, test, lint, typecheck
    verify Alias for checkout

    🧹 Cleanup & Maintenance

    Script Description
    delete Remove build artifacts and node_modules
    clean Fully reset environment and reinstall
    upgrade Update all dependencies via npm-check-updates

    πŸ§ͺ Testing

    Script Description
    test Alias for test:all
    test:all Run both client and server test suites
    test:client Run client tests with Vitest
    test:server Run server-side tests with Vitest
    test:watch Watch mode for client tests
    test:coverage Collect coverage from both client and server

    🧼 Linting & Formatting

    Script Description
    lint Run ESLint on JS, MJS, and Svelte files
    lint:fix Auto-fix ESLint issues
    lint:jsdoc Check JSDoc annotations
    lint:css Run Stylelint on CSS and Svelte styles
    lint:md Lint Markdown content
    lint:all Run all linters and formatting checks
    format Run Prettier formatting check
    format:fix Auto-format code using Prettier

    πŸ’‘ Lighthouse / Performance

    Script Description
    lhci Alias for Lighthouse CI
    lighthouse Run local Lighthouse test and launch viewer
    lighthouse:local Build site, preview, and run Lighthouse locally
    lhci:run Run Lighthouse CI autorun

    πŸ“‹ Audits / Validation

    Script Description
    audit:scripts Check for untested utility scripts
    head:flatten Flatten headers for Netlify
    head:validate Validate headers file against project config

    πŸ”„ Lifecycle Hooks

    Script Description
    postinstall Ensures version check after install

     


     

    🧾 License

    This project is licensed under:

    Source code, branding, and visual assets are subject to reuse and distribution terms specified on our Legal, Copyright, and Licensing page.

     

    πŸ™‹β€β™‚οΈ Questions?

    Reach out via netwk.pro/contact, open an issue on this repo, or email us directly at contact (at) s.neteng.pro.

     

    Designed for professionals. Hardened for privacy. Built with intent.
    β€” Network Pro Strategies


    Copyright © 2025
    Network Pro Strategies (Network Pro™)

    Network Pro™, the shield logo, and the "Locking Down Networks™" slogan are trademarks of Network Pro Strategies.

    Licensed under CC BY 4.0 and the GNU GPL, as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.