Divodude / Divodude/watchman

Multi Language Support

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## 🚀 Feature Request

Currently, **AI Watchman** (`ai-watchman`) provides native threat detection, jailbreak guards, and security monitoring integrations primarily for Python backends (FastAPI, Django, Flask).

To expand the tool's adoption and protect modern web stacks, we should build a JavaScript / Node.js SDK and dedicated middleware for popular Node.js frameworks.

---

## 🎯 Proposed Solution

Create a Node.js companion client / middleware suite (`@ai-watchman/express`, `ai-watchman-node`, or REST API wrapper) that allows Node.js applications to inspect incoming HTTP requests, detect threats/jailbreaks in real time, and report security events to the AI Watchman engine.

---

## 📦 Targeted Node.js Frameworks

1. **Express.js** (`watchmanExpressMiddleware`)
2. **Fastify** (`watchmanFastifyPlugin`)
3. **Next.js** (API route handler & Server Action wrapper)
4. **NestJS** (`@UseGuards(WatchmanGuard)`)
5. **Koa** (`watchmanKoaMiddleware`)

---

## 🛠️ Key Components & Implementation Ideas

### 1. Middleware Interface
Expose an intuitive API similar to our Python integrations:

```javascript
// Express example
import { watchman } from '@ai-watchman/express';

const app = express();

app.use(watchman({
apiKey: process.env.WATCHMAN_API_KEY,
enableJailbreakGuard: true,
actionOnThreat: 'block', // 'block' | 'log' | 'sanitize'
}));

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files, tests, or concrete entry points are named. Start by reviewing the existing Python integrations and narrowing the proposal to a defined Node.js package and framework scope; done should include the selected middleware or client working for that scope and its threat-reporting behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, express, fastapi, flask, javascript, next.js, node.js, python
Domain
api, backend, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.