
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@restackio/integrations-cartesia
Advanced tools
This package provides integration with Cartesia AI services for Restack applications.
This package provides integration with Cartesia AI services for Restack applications.
To install the package, use npm or yarn:
npm install @restackio/integrations-cartesia
Before using the Cartesia integration, make sure to set up your Cartesia API key. You can do this by setting the CARTESIA_API_KEY
environment variable or by passing it directly to the functions.
To start the Cartesia service, use the cartesiaService
function:
// services.ts
import Restack from "@restackio/ai";
import { cartesiaService } from "@restackio/integrations-cartesia";
export async function services() {
const client = new Restack();
cartesiaService({ client }).catch((err) => {
console.error("Error starting Cartesia service:", err);
});
}
services().catch((err) => {
console.error("Error running services:", err);
});
The package provides a Text-to-Speech function that converts text to audio bytes: Here's how to use it inside a workflow as part of one of its steps:
// cartesiaSpeechToWorflow.ts
import { log, step } from "@restackio/ai/workflow";
import * as cartesiaFunctions from "@restackio/integrations-cartesia/functions";
import { cartesiaTaskQueue } from "@restackio/integrations-cartesia/taskQueue";
export async function cartesiaSpeechToTextWorkflow() {
const result = await step<typeof cartesiaFunctions>({
taskQueue: cartesiaTaskQueue,
}).cartesiaTtsBytes({
text: "Hello, world!",
apiKey: "your-api-key", // Optional if CARTESIA_API_KEY is set in environment
});
log.info("result", { result: result.media.payload }); // Base64 encoded audio data
return result;
}
FAQs
This package provides integration with Cartesia AI services for Restack applications.
The npm package @restackio/integrations-cartesia receives a total of 0 weekly downloads. As such, @restackio/integrations-cartesia popularity was classified as not popular.
We found that @restackio/integrations-cartesia 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.