
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@rightnow/sdk
Advanced tools
TypeScript / JavaScript SDK for RightNow AI — Arabic-first AI inference API.
npm install @rightnow/sdk
Requires Node.js 18+ (uses native fetch).
import RightNow from '@rightnow/sdk';
const client = new RightNow({ apiKey: 'rn-...' });
// Chat
const response = await client.chat.completions.create({
model: 'falcon-h1-arabic-7b',
messages: [{ role: 'user', content: 'مرحبا' }],
});
console.log(response.choices[0].message.content);
const stream = await client.chat.completions.create({
model: 'falcon-h1-arabic-7b',
messages: [{ role: 'user', content: 'اكتب قصة قصيرة' }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content ?? '');
}
const result = await client.embeddings.create({
model: 'bge-m3-arabic',
input: 'مرحبا بالعالم',
});
console.log(result.data[0].embedding.length); // 1024
import fs from 'fs';
// Speech-to-text
const transcription = await client.audio.transcriptions.create({
file: fs.readFileSync('audio.wav'),
model: 'whisper-v3-arabic',
});
console.log(transcription.text);
// Text-to-speech
const audio = await client.audio.speech.create({
input: 'مرحبا بك',
model: 'chatterbox-arabic',
});
fs.writeFileSync('output.mp3', Buffer.from(audio));
// Summarize
const summary = await client.documents.summarize({ text: '...' });
// Translate
const translated = await client.documents.translate({
text: 'مرحبا',
target_language: 'en',
});
// Extract entities
const entities = await client.documents.extract({
text: 'أحمد يعمل في شركة أبل في الرياض',
entities: ['person', 'organization', 'location'],
});
// Diacritize
const diacritized = await client.documents.diacritize({ text: 'كتب' });
const result = await client.dialects.detect({
text: 'السلام عليكم ورحمة الله',
});
console.log(result.primary_dialect); // "MSA"
const models = await client.models.list();
for (const model of models.data) {
console.log(model.id);
}
const client = new RightNow({
apiKey: 'rn-...', // or set RIGHTNOW_API_KEY env var
baseURL: 'https://...', // optional, defaults to production
timeout: 300_000, // optional, 5 min default
maxRetries: 2, // optional
});
import { RightNowError, AuthenticationError, RateLimitError } from '@rightnow/sdk';
try {
await client.chat.completions.create({ ... });
} catch (err) {
if (err instanceof AuthenticationError) {
console.error('Invalid API key');
} else if (err instanceof RateLimitError) {
console.error('Rate limited, retry later');
} else if (err instanceof RightNowError) {
console.error(err.status, err.message);
}
}
| Model ID | Type | Description |
|---|---|---|
falcon-h1-arabic-7b | Chat | Best price/quality (default) |
falcon-h1-arabic-34b | Chat | Complex reasoning |
jais-2-8b | Chat | Strong dialect understanding |
allam-7b | Chat | Saudi Arabic, MSA |
bge-m3-arabic | Embeddings | 1024-dim, 8192 context |
whisper-v3-arabic | STT | Arabic speech recognition |
chatterbox-arabic | TTS | Arabic text-to-speech |
MIT
FAQs
TypeScript SDK for RightNow AI — Arabic-first AI inference API
We found that @rightnow/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.