npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@zhivex-ai/qwen

v0.7.5

Published

Qwen adapter for Zhivex AI SDK.

Readme

@zhivex-ai/qwen

Qwen adapter for Zhivex AI SDK.

Install

bun add @zhivex-ai/qwen

Hosted tools

Qwen uses the DashScope-compatible Responses API by default. The adapter exposes helpers for Qwen built-in hosted tools and remote MCP:

import { generateText } from "@zhivex-ai/sdk";
import {
  createQwen,
  qwenCodeInterpreterTool,
  qwenFileSearchTool,
  qwenMcpTool,
  qwenWebExtractorTool,
  qwenWebSearchTool
} from "@zhivex-ai/qwen";

const qwen = createQwen({
  apiKey: process.env.DASHSCOPE_API_KEY
});

const result = await generateText({
  model: qwen("qwen-plus"),
  prompt: "Search current docs, extract the relevant page, and validate a calculation.",
  tools: {
    search: qwenWebSearchTool(),
    extract: qwenWebExtractorTool(),
    code: qwenCodeInterpreterTool(),
    files: qwenFileSearchTool({ vector_store_ids: ["store_1"] }),
    maps: qwenMcpTool({
      server_label: "amap-maps",
      server_protocol: "sse",
      server_url: "https://dashscope-intl.aliyuncs.com/api/v1/mcps/amap-maps/sse",
      headers: { Authorization: `Bearer ${process.env.DASHSCOPE_API_KEY}` }
    })
  }
});

console.log(result.text);

Use providerOptions: { apiMode: "chat" } only for legacy Chat Completions compatibility. Hosted Qwen tools are Responses-only.

Qwen Cloud clients

The package also exposes broader Qwen Cloud surfaces through the shared SDK helpers:

import {
  createBatch,
  generateImage,
  generateSpeech,
  transcribeAudio,
  uploadFile
} from "@zhivex-ai/sdk";
import { createQwen } from "@zhivex-ai/qwen";

const qwen = createQwen({
  apiKey: process.env.DASHSCOPE_API_KEY
});

const file = await uploadFile({
  provider: qwen,
  data: new Uint8Array([1, 2, 3]),
  mediaType: "text/plain",
  filename: "notes.txt"
});

await createBatch({
  provider: qwen,
  modelId: "qwen-plus",
  fileName: file.name
});

await transcribeAudio({
  model: qwen.transcriptionModel("qwen-audio-asr"),
  audio: { data: new Uint8Array([1, 2, 3]), mediaType: "audio/wav" }
});

await generateSpeech({
  model: qwen.speechModel("qwen-tts"),
  input: "Hello from Qwen."
});

await generateImage({
  model: qwen.imageGenerationModel("wanx2.1-t2i-turbo"),
  prompt: "A clean product icon"
});

For provider-specific surfaces without a shared cross-provider contract, use qwen.rerankModel(), qwen.multimodalEmbeddingModel(), and qwen.tasks.

Repository and full documentation: