![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
web-ai-toolkit
Advanced tools
The Web AI Toolkit simplifies the integration of AI features, such as OCR, speech-to-text, text summarization and more into your application. It ensures data privacy and offline capability by running all AI workloads locally, leveraging WebNN when available, with a fallback to WebGPU.
To install the Web AI Toolkit, run:
npm install web-ai-toolkit
Function Name | Parameter | Type | Default Value | Supported Hardware |
---|---|---|---|---|
transcribeAudioFile | audioFile | Blob | - | NPU |
model | string | "Xenova/whisper-tiny" | ||
timestamps | boolean | false | ||
language | string | "en-US" | ||
textToSpeech | text | string | - | GPU |
model | string | "Xenova/mms-tts-eng" | ||
summarize | text | string | - | GPU |
model | string | "Xenova/distilbart-cnn-6-6" | ||
ocr | image | Blob | - | GPU |
model | string | "Xenova/trocr-small-printed" |
The Web AI Toolkit utilizes the transformers.js project to run AI workloads. All AI processing is performed locally on the device, ensuring data privacy and reducing latency. AI workloads are run using the WebNN API when available, otherwise falling back to the WebGPU API. Both of these APIs are used to "hardware accelerate" the AI inferences, with WebNN targeting NPUs and GPUs, and WebGPU strictly targeting GPUs.
Here are examples of how to use each function:
import { transcribeAudioFile } from 'web-ai-toolkit';
const audioFile = ...; // Your audio file Blob
const transcription = await transcribeAudioFile(audioFile, "Xenova/whisper-tiny", true, "en-US");
console.log(transcription);
import { textToSpeech } from 'web-ai-toolkit';
const text = "Hello, world!";
const audio = await textToSpeech(text);
console.log(audio);
import { summarize } from 'web-ai-toolkit';
const text = "Long text to be summarized...";
const summary = await summarize(text);
console.log(summary);
import { ocr } from 'web-ai-toolkit';
const image = ...; // Your image Blob
const text = await ocr(image);
console.log(text);
We welcome contributions to the Web AI Toolkit. Please fork the repository and submit a pull request with your changes. For major changes, please open an issue first to discuss what you would like to change.
The Web AI Toolkit is licensed under the MIT License. See the LICENSE file for more details.
For questions or support, please open an issue here on GitHub
Thank you for using the Web AI Toolkit! We hope it makes integrating AI into your applications easier and more efficient.
FAQs
AI powered features on the web made easy
The npm package web-ai-toolkit receives a total of 14 weekly downloads. As such, web-ai-toolkit popularity was classified as not popular.
We found that web-ai-toolkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.