{"id":34865870,"url":"https://github.com/blackcatacademy/blackcat-core","last_synced_at":"2026-05-06T00:02:25.368Z","repository":{"id":319059803,"uuid":"1073008371","full_name":"blackcatacademy/blackcat-core","owner":"blackcatacademy","description":"BlackCat Core — Web3-backed TrustKernel security: HTTPS-only request hardening, fail-closed runtime config, and guarded DB/crypto entrypoints.","archived":false,"fork":false,"pushed_at":"2026-01-04T15:09:13.000Z","size":1084,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-04T17:36:24.343Z","etag":null,"topics":["blackcat","blockchain","evm","fail-closed","hardening","https","integrity","php","runtime-config","security","sql-injection","ssrf","supply-chain-security","tls","trust-kernel","web3","zero-trust"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blackcatacademy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":"docs/ROADMAP.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-09T13:55:17.000Z","updated_at":"2026-01-02T12:56:31.000Z","dependencies_parsed_at":"2025-10-17T23:40:31.292Z","dependency_job_id":null,"html_url":"https://github.com/blackcatacademy/blackcat-core","commit_stats":null,"previous_names":["blackcatacademy/blackcat-core"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blackcatacademy/blackcat-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackcatacademy%2Fblackcat-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackcatacademy%2Fblackcat-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackcatacademy%2Fblackcat-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackcatacademy%2Fblackcat-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackcatacademy","download_url":"https://codeload.github.com/blackcatacademy/blackcat-core/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackcatacademy%2Fblackcat-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32672682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blackcat","blockchain","evm","fail-closed","hardening","https","integrity","php","runtime-config","security","sql-injection","ssrf","supply-chain-security","tls","trust-kernel","web3","zero-trust"],"created_at":"2025-12-25T22:23:28.769Z","updated_at":"2026-05-06T00:02:25.362Z","avatar_url":"https://github.com/blackcatacademy.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![BlackCat Core](.github/blackcat-core-banner.png)\n\n# BlackCat Core (Kernel)\n\n[![CI](https://github.com/blackcatacademy/blackcat-core/actions/workflows/ci.yml/badge.svg)](https://github.com/blackcatacademy/blackcat-core/actions/workflows/ci.yml)\n\n`blackcat-core` is the **minimal kernel** of the BlackCat ecosystem: a small, auditable set of primitives and utilities that other modules build on.\n\nIt is designed for two modes:\n- **Kernel-only deployments** (extreme minimalism / custom systems)\n- **Modular deployments** (recommended): `blackcat-core` + purpose-built modules (`blackcat-database`, `blackcat-auth`, `blackcat-messaging`, …)\n\n## What lives here\n\n- `BlackCat\\Core\\Database` — hardened PDO wrapper (prepared statements, retries, observability helpers, safety guards).\n- `BlackCat\\Database\\SqlDialect` + `BlackCat\\Database\\Support\\Observability` / `QueryObserver` — shared DB primitives used by the kernel DB wrapper and generated repositories.\n- `BlackCat\\Core\\Security\\KeyManager` / `Crypto` / `CSRF` / `FileVault` — low-level security primitives (versioned keys, AEAD, CSRF binding, file-at-rest encryption).\n- `BlackCat\\Core\\Cache\\*` — PSR-16 caches (memory/file/null) and locking support.\n- `BlackCat\\Core\\Log\\Logger` / `AuditLogger` — lightweight logging helpers for kernel-only stacks.\n- `BlackCat\\Core\\Migrations\\MigrationRunner` — tiny migration runner (no schema source of truth inside core).\n- `BlackCat\\Core\\Templates\\Templates` + `BlackCat\\Core\\Validation\\Validator` — small DX helpers.\n\n## What does NOT live here\n\nTo keep a single source of truth and avoid duplicated business logic, these belong to dedicated modules:\n\n- **DB schema, views, joins, generated repositories** → `blackcatacademy/blackcat-database`\n- **DB encryption ingress (automatic field encryption/hmac)** → `blackcatacademy/blackcat-database-crypto` (+ `blackcat/crypto`)\n- **Auth flows (register/login/verify/reset/magic-link/webauthn)** → `blackcatacademy/blackcat-auth`\n- **Sessions** → `blackcatacademy/blackcat-sessions`\n- **Outbox/inbox workers + transports** → `blackcatacademy/blackcat-messaging`\n- **Notifications + mailing worker** → `blackcatacademy/blackcat-mailing`\n- **Job queue** → `blackcatacademy/blackcat-jobs`\n- **JWT** → `blackcatacademy/blackcat-jwt`\n- **RBAC** → `blackcatacademy/blackcat-rbac`\n- **GoPay** → `blackcatacademy/blackcat-gopay`\n\n## No legacy facades\n\nFor a fail-closed kernel and a clean single-source-of-truth model, `blackcat-core` intentionally does **not** ship `class_alias` compatibility facades for other modules.\n\nIf you need auth/sessions/jobs/jwt/rbac/messaging/payments, depend on the dedicated module directly (see list above).\n\n## Install\n\n```bash\ncomposer require blackcatacademy/blackcat-core\n```\n\n## Kernel bootstrap (Trust Kernel)\n\nFor kernel-only deployments where Web3 integrity enforcement is mandatory, use:\n\n```php\nuse BlackCat\\Core\\Kernel\\KernelBootstrap;\n\nKernelBootstrap::bootOrFail(); // fail-closed\n```\n\nThis requires `blackcatacademy/blackcat-config` + a runtime config that includes `trust.web3` + `trust.integrity`.\n\nNote:\n- As a safety net, kernel primitives (`KeyManager`, `Database`) attempt a **one-time** Trust Kernel auto-bootstrap when a guard is missing.\n- When `blackcatacademy/blackcat-config` is installed, auto-bootstrap is **trust-required** (missing runtime config / missing `trust.web3` fails closed).\n- Production should still call `KernelBootstrap::bootOrFail()` as early as possible (before any app logic runs).\n\n## Quick start (Database)\n\n```php\nuse BlackCat\\Core\\Database;\n\nDatabase::init([\n  'dsn'  =\u003e 'mysql:host=127.0.0.1;dbname=app;charset=utf8mb4',\n  'user' =\u003e 'app',\n  'pass' =\u003e 'secret',\n  'appName' =\u003e 'my-service',\n]);\n\n$db = Database::getInstance();\n$row = $db-\u003efetch('SELECT 1 AS ok');\n```\n\n## Documentation\n\n- [Docs index](docs/README.md)\n- [Bootstrap examples](docs/BOOTSTRAP_EXAMPLES.md)\n- [Database](docs/DATABASE.md)\n- [Security](docs/SECURITY.md)\n- [Troubleshooting](docs/TROUBLESHOOTING.md)\n- [Roadmap](docs/ROADMAP.md)\n\n## Project meta\n\n- Contributing: `.github/CONTRIBUTING.md`\n- Security: `.github/SECURITY.md`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackcatacademy%2Fblackcat-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackcatacademy%2Fblackcat-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackcatacademy%2Fblackcat-core/lists"}