MalVis is primarily a portfolio project, but issues and pull requests are welcome — bug reports, security findings, additional sample binaries, documentation fixes, and accessibility improvements especially.
- For security issues: please email security@devrakib.com instead of filing a public issue. See
SECURITY.mdfor the full policy and the threat model the project commits to. - For bugs: include the failing input (or a minimal repro), the expected behavior, the actual behavior, and the relevant log output. Never include a binary you're not authorized to share — a SHA-256 plus a short description is enough.
- For features: open an issue first to discuss fit. The roadmap in
TODO.mdis the source of truth for what's planned; thelessons.mdfile records the why behind decisions already made.
The full local-dev story lives in the root README.md. Short version:
# Backend
cd backend
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
uvicorn app.main:app --reload
# Frontend
cd frontend
cp .env.local.example .env.local
npm install
npm run devOr, end-to-end with Docker:
cp .env.example .env
docker compose up --build- Python —
ruff(lint) andblack(format). Both read config from the rootpyproject.toml. Run before pushing:ruff check . black .
- TypeScript / TSX — Next.js + ESLint with
next/core-web-vitals. Strict TypeScript is enforced (tsconfig.json):cd frontend npm run typecheck npm run lint - No prettier yet — Tailwind class ordering follows the convention in existing components.
- Backend —
pytestfrom the repo root or frombackend/. Tests must pass before opening a PR:CI runs the same suite withpytest -ra
EXTRACTOR_STRATEGY=inprocess(per-test forking would slow it without changing coverage). The subprocess path has its own dedicated tests inbackend/tests/test_extractor.py. - Frontend —
npm run typecheck && npm run lint && npm run buildis the current CI gate. Component-level tests would be welcome (see TODO).
- Branch from
main. Keep PRs focused — one logical change per PR. - Match the commit-message style in
git log(short imperative subject + a body explaining why, mirroring thelessons.mdentries). - Update
TODO.mdandlessons.mdif your change affects either: TODO for what landed, lessons for the why and any pitfalls. - CI must be green before merge:
.github/workflows/ci.ymlruns ruff/black/pytest and frontend typecheck/lint/build.
- No binary fixtures in git. PE samples are built programmatically via
app/utils/pe_builder.py(used by tests and the gallery). If you need a new sample, extend the builder or add a definition inapp/services/samples.py. - The feature schema is a contract.
FEATURE_VECTOR_ORDERandFEATURE_SCHEMA_VERSION(inapp/services/pe_features.py) are pinned to model artifacts via the manifest. Seedocs/ADR-001-feature-set.mdbefore modifying either. - Uploads aren't retained. The cache is in-memory, bounded, TTL'd; the PE bytes never touch disk. Any change that adds disk I/O on the upload path needs a security review.
This project follows the Contributor Covenant. By participating you agree to abide by it.
By contributing you agree your changes are licensed under the MIT License.