Thanks to visit codestin.com
Credit goes to github.com

Skip to content

haKC-ai/stopslop

Repository files navigation

STOP THE SLOP

sts

Install

bash installer.sh
cp .env.example .env  # optional for CLI
source .venv-cyberslop-py3*/bin/activate

Run

streamlit run app_streamlit.py
# or
python cli.py --help

Mermaid workflow

flowchart TD
A[Input URL or File or Text] --> B[Ingestors: newspaper3k and optional Selenium and file parsers]
B --> C[Text normalization]
C --> D[Rules Engine JSON rules]
D --> E[CTI Audit Persona Prompt]
E --> F[Provider Adapters: OpenAI Anthropic Gemini]
F --> G[Structured JSON verdicts]
D --> H[Scoring Aggregator]
G --> H
H --> I[Decision and reasons]
I --> K[Friction Generator]
K --> J[Report JSON and Markdown]
Loading

Secrets configuration

For Streamlit runs, put secrets in .streamlit/secrets.toml.

OPENAI_API_KEY = "sk-..."
ANTHROPIC_API_KEY = "..."
GOOGLE_API_KEY = "..."
SLOPWATCH_MAX_CHARS = 200000
SLOPWATCH_TIMEOUT_SEC = 20

The code reads secrets in this order: st.secrets then .streamlit/secrets.toml then environment variables. The CLI still supports .env via python-dotenv. You can also place a .streamlit/secrets.toml in the project and the CLI will read it.

Threat model

SSRF guard, timeouts, JSON only outputs, and no code execution.

License

Apache 2.0

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages