Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@editora/ai-review

Latest version: v0.3.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: ajaykr089
3 Stars
0 Forks
4 Versions
699 Downloads
TypeScript Repo language

Scan summary

@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.

  • Releases: 4 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 0.3.1.
  • Downloads: 699 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
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

No rules fired in 0.3.1

Findings

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.

README

The publisher’s own README, as collected from the registry.

@editora/ai-review

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.

  • Works in any contenteditable: Editora, or your own editor. A headless core works on plain text, in the browser or on a server.
  • Keeps formatting. Only the changed words are touched; bold, links and mentions around them stay as they were.
  • Streams. Suggestions appear while the model writes; the user can stop it at any time.
  • Safe to review late. If someone edits a suggestion before deciding, it can only be dismissed, never applied over their edit.
  • Online, local or bring your own key. Ollama Cloud (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.
  • No runtime dependencies. About 16 kB gzipped.

Editora

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.

Any contenteditable

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).

Choosing a model

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.

Claude
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).

Your server

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'] }],
    },
  },
});

Headless

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.

Details

  • The model is asked to keep the paragraph count. If it does not, the whole selection is offered as one replacement.
  • While the model writes, typing in the editor is paused; Esc or Stop cancels and restores the text.
  • Keyboard: Alt+Enter accepts and Alt+Backspace rejects the current suggestion, Alt+] / Alt+[ move between suggestions.
  • Colours follow Editora's dark theme (theme="dark", .dark, [data-theme="dark"]) and can be changed with the --air-* CSS variables.
  • The selected text and nearby paragraphs (up to contextChars, default 1200) are sent to the provider you choose.

Demo

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.

License

MIT

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @editora/ai-review

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229