Self-hosted multi-tenant CRM with enterprise IAM; RBAC, field-level PII, MFA, audit trail, and AI-assisted platform engineering.
Author: Joseph Edwards (@RawPowered)
StrikeScope is a self-maintainable, self-hosted business platform: one Express server, SQLite tenancy, multiple client apps, optional Activepieces orchestration, and a Dev Studio AI that observes schema and code structure. Built to demonstrate IAM depth (entity + column-level permissions, MFA, audit) and a credible path toward local AI SIEM/SOAR: documented honestly as roadmap, not shipped.
| Shipped today | Evidence |
|---|---|
| Entity RBAC | CRUD matrix per role across leads, customers, users, audit, … |
| Field-level PII | Independent view/edit on ssn_last_four, date_of_birth, co-signer fields |
| MFA (TOTP) | Optional second factor on login |
| Multi-tenant isolation | Companies, memberships, domain routing, workspace tests |
| Audit trail | activities table + gated audit permissions |
| Automation keys | Scoped ssap_* service keys for orchestration |
| App hardening | Helmet, rate limits, prod JWT secret enforcement |
| AI schema observer | Dev Studio RAG + SQL console over platform knowledge |
| Orchestration layer | Activepieces events + custom StrikeScope piece |
In progress: Sentinel; local AI SIEM/SOAR with company-maintained playbooks.
Full IAM model: docs/SECURITY-IAM.md
flowchart TB
subgraph clients [Client apps]
Admin[Admin CRM + Server Admin]
Field[Field PWA]
Installer[Installer PWA]
Monitor[Monitor feed]
end
subgraph server [packages/server :3001]
API[Express REST + JWT RBAC]
WS[WebSockets]
DB[(SQLite strikescope.db)]
end
subgraph optional [Optional sidecars]
AP[Activepieces :8080]
Ollama[Ollama Dev Studio]
end
Admin --> API
Field --> API
Installer --> API
Monitor --> WS
API --> DB
API --> AP
Admin --> Ollama
Monorepo layout: packages/admin · packages/server · packages/field · packages/installer · packages/monitor · shared · EnVars/
Details: docs/ARCHITECTURE.md
| Entity | View | Create | Edit | Delete |
|---|---|---|---|---|
| Leads | ✓ | |||
| Customers, Projects, Contacts | ✓ | ✓ | ✓ | ✓ |
| Submissions | ✓ | |||
| Settings, Users | ||||
| Audit | ✓ |
| Entity | Field | Purpose |
|---|---|---|
| Contacts | ssn_last_four |
SSN last four; credit/identity |
| Contacts | date_of_birth |
DOB verification |
| Leads | co_signer_* |
Co-signer contact info |
Configured in Admin → Roles & Permissions: enforced in packages/server/src/auth.ts and field-permissions.ts.
- Server Admin: companies, users, domains, project types, Dev Studio
- CRM: leads pipeline, customers, contacts, agreements, projects, forms builder
- Field ops: geofenced clock-in, photo submissions, foreman workflows
- Finance: commission formulas, payout evaluation
- Territory / geo: jurisdiction tracking, maps integration
- Automations: Activepieces embed + CRM event emitter
- Dev Studio: local AI agent: migrations, code patches, ship/rollback (dev mode)
- Distribution: Windows launcher,
npm run dev, production build serves admin from server
Requirements: Node.js 20+, npm 9+
git clone https://github.com/RawPowered/StrikeScope.git
cd StrikeScope
npm install
cp .env.example .env
npm run seed # optional legacy installer seed
npm run dev # server + all Vite appsOr on Windows: Launcher.bat / npm run launcher
Dev login (local only):
| Password | Role | |
|---|---|---|
admin@strikescope.local |
admin |
server_admin |
Change immediately outside localhost. See SECURITY.md.
URLs (dev):
| App | URL |
|---|---|
| Server + Admin (prod build) | http://localhost:3001 |
| Admin (Vite dev) | http://localhost:5173 |
| Server Admin dashboard | http://localhost:3001/server/dashboard |
StrikeScope is evolving toward a local AI security sentinel:
- Structured security events from audit + auth + automations
- Company-authored response playbooks
- Correlation without third-party cloud SIEM
- Ollama-assisted incident summaries
See docs/ROADMAP-SENTINEL.md: no fake SIEM UI in this repo.
npm run lint
npm run typecheck
npm run build
npm run testOptional automations sidecar:
npm run automations:up| Doc | Contents |
|---|---|
| docs/ARCHITECTURE.md | Apps, tables, API map |
| docs/SECURITY-IAM.md | RBAC, MFA, PII, audit, threat model |
| docs/ROADMAP-SENTINEL.md | SIEM/SOAR vision (WIP) |
| SECURITY.md | Vulnerability reporting, prod checklist |
| CHANGELOG.md | Version history |
MIT; see LICENSE.
Related: RawPowered profile · OrphanHunter · CollectorBuyerPsych