Skip to content

πŸš€ Getting Started ​

Welcome to bezpieczenstwoPwr β€” an open-source project aimed at detecting anomalous or bot-like behavior on websites in real time.

This monorepo is structured into reusable packages and example applications. It’s designed to be modular and developer-friendly.

🧱 Project structure ​

Here's a high-level overview of the repository:

bash
bezpieczenstwoPwr/
β”œβ”€β”€ docs/                        # VitePress-powered documentation
β”‚   β”œβ”€β”€ .vitepress/              # VitePress config files
β”‚   β”‚   └── config.ts
β”‚   β”œβ”€β”€ index.md                 # Home page
β”‚   β”œβ”€β”€ guide/                   # Guide section
β”‚   β”‚   β”œβ”€β”€ index.md
β”‚   β”‚   └── installation.md
β”‚   └── assets/                  # Static assets like images
β”‚       └── logo.svg
β”œβ”€β”€ examples/                    # Example applications (React, etc.)
β”‚   └── react-example/
β”œβ”€β”€ packages/                    # Core packages like bbotd (published to npm)
β”‚   β”œβ”€β”€ bbotd/
β”‚   └── model/
β”œβ”€β”€ .github/                     # GitHub-specific configuration
β”‚   └── workflows/
β”‚       └── deploy.yml
└── README.md

πŸ§ͺ Running locally ​

  1. Serve Static Files (for ML model access) Some features (like model loading) require serving the packages/model/public/ directory locally:

    bash
    npx serve public

    This will make assets like models accessible at localhost:3000/models/model.json

  2. Run a demo project

    We recommend starting with the React TypeScript example:

    bash
    cd examples/react-ts
    npm install
    npm run dev

    You can now view the app in your browser at localhost:5173

  3. Try the package directly (Optional)

    To test bbotd standalone:

    bash
    cd packages/bbotd
    npm install
    npm run test

πŸ” Where to go next? ​