Scan your whole stack
From OX Research Newsroom
Are you using @editora/ai-review?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.1
@editora/ai-review was last scanned on 29 Nov 2026 at version 0.3.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.1 LATEST | 29 Nov 2026 | No rules fired |
| 0.3.0 | 7 Nov 2026 | No rules fired |
| 0.2.1 | 4 Nov 2026 | No rules fired |
| 0.2.0 | 29 Oct 2026 | Not shown |
Findings for v0.3.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.3.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Let an AI rewrite text in your editor without taking the pen away from the user. The model's answer streams in as word-level suggestions (struck-out old text, highlighted new text) that the user accepts or rejects one by one, like tracked changes. Nothing changes until they say so.
contenteditable: Editora, or your own editor. A headless core works on plain text, in the browser
or on a server.https://ollama.com) through a small endpoint on your
server; Ollama on the user's computer (http://localhost:11434); any OpenAI-compatible API (OpenAI, OpenRouter, Groq,
Mistral, DeepSeek, LM Studio...); or Claude.import '@editora/core/webcomponent';
import '@editora/core/webcomponent.css';
import { AIReviewPlugin } from '@editora/ai-review/editora';
const editor = document.querySelector('editora-editor');
editor.setConfig({
plugins: ['bold', 'italic', 'list', 'history', AIReviewPlugin()],
toolbar: 'undo redo | bold italic | bullist | openAIReview',
});
The AI button (or Ctrl/⌘ J) opens a menu: Improve writing, Fix spelling & grammar, Make shorter, Make longer, More formal, More friendly, Simplify, or anything typed in. It rewrites the selection, or the paragraph the cursor is in. Accepting and rejecting is one undo step.
Commands: openAIReview, aiRewrite (value: a preset id or an instruction), aiReviewAcceptAll,
aiReviewRejectAll, aiReviewSettings.
import { attachAIReview } from '@editora/ai-review';
const ai = attachAIReview(document.querySelector('#editor'), {
onEnd: ({ beforeHTML, afterHTML }) => save(afterHTML),
});
button.addEventListener('click', () => ai.openMenu(button));
// or directly:
await ai.rewrite('Make it friendlier');
ai.current is the open review (acceptAll(), rejectAll(), discard(), focusNext()). While a review is open the
editor's HTML contains <ins>/<del> marks; to save at that moment use htmlWithoutSuggestions(element).
Users pick the model in a Model settings dialog (or you fix it in code, below). Three ways to run it:
| Option | URL | What the user needs |
|---|---|---|
| Ollama Cloud (online, nothing to install) | https://ollama.com |
An Ollama account and an API key from ollama.com/settings/keys, or none if your server has its own. Requires your server endpoint: ollama.com does not accept requests straight from web pages. |
| Ollama on their computer | http://localhost:11434 (or another machine running Ollama) |
Ollama installed and running. After ollama signin, its cloud models are free to try locally: gemma4:31b-cloud, gpt-oss:120b-cloud, gpt-oss:20b-cloud, nemotron-3-nano:30b-cloud, nemotron-3-super:cloud, nemotron-3-ultra:cloud. |
| OpenAI-compatible API | the service's URL (OpenAI, OpenRouter, Groq, Mistral, DeepSeek, LM Studio...) | Their own key, sent from the browser straight to the service; kept in sessionStorage, or localStorage if they tick Remember. |
The online option appears as soon as you pass your endpoint:
AIReviewPlugin({ userSettings: { proxy: { url: '/api/ai-review' } } }); // adds "Ollama Cloud (ollama.com)"
Without an endpoint, users get the local and OpenAI-compatible options. The dialog checks whether Ollama is running at the local URL and, if not, links to the download and points to the online option. If a rewrite fails because Ollama is not running, the error has a Model settings button.
If your server has its own Ollama key, users need none and Ollama Cloud becomes the default:
import { OLLAMA_CLOUD_CHOICE } from '@editora/ai-review';
AIReviewPlugin({ userSettings: { proxy: { url: '/api/ai-review', providers: [{ ...OLLAMA_CLOUD_CHOICE, keyOptional: true }] } } });
Fix the provider in code instead:
import { createOllamaProvider, createOpenAICompatibleProvider, createProxyProvider } from '@editora/ai-review';
AIReviewPlugin({ provider: createProxyProvider({ url: '/api/ai-review', provider: 'ollama-cloud' }) }); // online
AIReviewPlugin({ provider: createOllamaProvider({ model: 'gpt-oss:20b-cloud' }) }); // local Ollama
AIReviewPlugin({ provider: createOpenAICompatibleProvider({ preset: 'openrouter', apiKey, model: 'your-model' }) });
A provider is anything with stream({ system, prompt, signal }) returning an async iterable of text, so you can wrap
any SDK.
import Anthropic from '@anthropic-ai/sdk';
import { createAnthropicProvider } from '@editora/ai-review/anthropic';
const provider = createAnthropicProvider({ client: new Anthropic() }); // claude-opus-5-5, effort "low"
Use it on your server behind createAIReviewHandler. In the browser, only with a key the user typed in:
new Anthropic({ apiKey, dangerouslyAllowBrowser: true }). Declined requests are retried on Anthropic's recommended
fallback model (fallbacks: false turns that off).
ollama.com and most providers do not accept requests from web pages, and you may not want keys in the page at all.
@editora/ai-review/server is a small streaming proxy built on the standard Request/Response. The smallest
online setup, where each user brings an Ollama key:
// app/api/ai-review/route.js (Next.js)
import { createAIReviewHandler, ollamaCloudProvider } from '@editora/ai-review/server';
export const POST = createAIReviewHandler({
providers: { 'ollama-cloud': ollamaCloudProvider(process.env.OLLAMA_API_KEY) }, // key optional: users can send theirs
allowClientKeys: true,
allowedModels: ['gemma4:31b', 'gpt-oss:120b', 'gpt-oss:20b'],
});
More providers, and checks before each request:
// app/api/ai-review/route.js (Next.js); also Hono, Bun, Deno, Cloudflare Workers
import { createAIReviewHandler, createOllamaProvider, ollamaCloudProvider } from '@editora/ai-review/server';
export const POST = createAIReviewHandler({
providers: {
ollama: ({ model }) => createOllamaProvider({ model }), // the server's own Ollama
'ollama-cloud': ollamaCloudProvider(process.env.OLLAMA_API_KEY), // https://ollama.com/settings/keys
},
allowedModels: ['gemma4:31b', 'gpt-oss:120b'], // which models a client may ask for
allowClientKeys: true, // let users bring their own key (sent per request, never stored)
authorize: (request) => isSignedIn(request),
});
Express / node:http: app.post('/api/ai-review', toNodeHandler(handler)).
Point the editor at it, and list what it offers in the settings dialog:
AIReviewPlugin({
userSettings: {
proxy: {
url: '/api/ai-review',
providers: [{ id: 'ollama-cloud', label: 'Ollama Cloud (your key)', needsKey: true, models: ['gemma4:31b', 'gpt-oss:120b'] }],
},
},
});
import { AIReview, runRewrite, createOllamaProvider } from '@editora/ai-review';
const review = new AIReview(['Me and him goes to school.']);
review.subscribe((snapshot) => render(snapshot.hunks)); // { id, block, start, end, deleted, inserted, status, provisional }
await runRewrite({ provider: createOllamaProvider(), review, instruction: 'Fix grammar' });
review.accept(review.hunks[0].id);
review.resolve(); // ['He and I go to school.']
diffText(a, b) gives the word-level changes on their own.
theme="dark", .dark, [data-theme="dark"]) and can be changed with the
--air-* CSS variables.contextChars, default 1200) are sent to the provider you choose.npm run build -w @editora/core && npm run build -w @editora/ai-review
node packages/ai-review/demo/server.mjs
Then open http://localhost:5192.
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.