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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@3-/qwen

v0.1.5

Published

JavaScript wrapper for Qwen-Code, simplifying the integration of large language models in code generation and application development. Qwen-Code 的 JavaScript 封装,简化大型语言模型在代码生成和应用开发中的集成。

Readme

@3-/_qwen

English | 中文


@3-/qwen: Effortless Qwen-Code Integration

Table of Contents

Features

This project wraps qwen-code, providing a functional interface for JavaScript developers to simplify interactions with the Qwen-Code large language model. It abstracts away complex command-line argument configurations, allowing developers to invoke the model's capabilities directly within their JavaScript code. The project also integrates web search functionality via Tavily, enabling the model to access real-time information for more accurate and timely responses.

Usage

Execute complex tasks like code generation and file manipulation with a simple function call.

import Qwen from '@3-/qwen';

const {
  OPENAI_BASE_URL,
  OPENAI_MODEL,
  OPENAI_API_KEY,
  TAVILY_TOKEN
} = process.env;

const qwen = Qwen(
  OPENAI_BASE_URL,
  OPENAI_MODEL,
  OPENAI_API_KEY,
  TAVILY_TOKEN
);

await qwen('Create a file named news.md with today\'s news, search for it, and format it in Markdown.');

Design

The core logic of @3-/qwen resides in src/lib.js. This module exports a higher-order function that accepts openaiBaseUrl, model, openaiApiKey, and tavilyApiKey as base configurations.

When this function is called, it returns a closure that holds the preset command-line arguments. When a specific task prompt (e.g., 'Create a file named news.md ...') is passed, it is combined with the preset arguments and forwarded to the main function of the @3-/qwen-code package for execution.

This design decouples model configuration from task execution, achieving a separation of concerns and providing developers with a clean and flexible interface.

Tech Stack

  • Core Dependency: @3-/qwen-code - Provides the core functionality for interacting with the Qwen-Code model.
  • Runtime: Bun - A high-performance JavaScript runtime and toolkit.
  • Testing: CoffeeScript - Used for writing concise test cases.

Directory Structure

/
├── src/lib.js       # Core wrapper logic
├── test/main.coffee # Test example
├── readme/          # Project documentation
│   ├── en.md
│   └── zh.md
└── package.json     # Project configuration

Project Background

Qwen (Tongyi Qianwen) is a series of large language models developed by Alibaba Cloud. As a key part of this family, Qwen-Code specializes in code generation, comprehension, and optimization, demonstrating exceptional capabilities in the software development field.

As large models become increasingly integral to software engineering, lowering their barrier to entry is crucial. The @3-/qwen project was created to bridge this gap for the vast JavaScript developer community, offering a more accessible and convenient way to integrate the powerful capabilities of Qwen-Code into their workflows and applications. This project is more than just a simple wrapper; it is an extension of qwen-code's usability, aimed at promoting the adoption of AI-assisted programming in the frontend and Node.js ecosystems.


@3-/qwen: 轻松调用 Qwen-Code

目录

功能介绍

本项旨在封装 qwen-code,为 JavaScript 开发者提供函数式接口,以简化与 Qwen-Code 大型语言模型的交互。通过该封装,开发者可以避免繁琐的命令行参数配置,直接在 JavaScript 代码中调用模型能力。项目还集成了 Tavily 的网络搜索功能,使模型能够获取实时信息,生成内容更具时效性与准确性。

使用演示

通过简单的函数调用,即可执行代码生成、文件操作等复杂任务。

import Qwen from '@3-/qwen';

const {
  OPENAI_BASE_URL,
  OPENAI_MODEL,
  OPENAI_API_KEY,
  TAVILY_TOKEN
} = process.env;

const qwen = Qwen(
  OPENAI_BASE_URL,
  OPENAI_MODEL,
  OPENAI_API_KEY,
  TAVILY_TOKEN
);

await qwen('创建文件 news.md , 内容是今天的新闻,请搜索并创建,用markdown格式');

设计思路

@3-/qwen 的核心逻辑位于 src/lib.js。该模块导出一个高阶函数,接收 openaiBaseUrlmodelopenaiApiKeytavilyApiKey 作为基础配置。

调用该函数后,会返回一个闭包,该闭包持有预设的命令行参数。当传入具体的任务指令(如 '创建文件 news.md ...') 时,该指令会与预设参数合并,共同传递给 @3-/qwen-code 包的 main 函数执行。

这种设计将模型配置与任务执行分离,实现了关注点分离,为开发者提供了简洁、灵活的调用方式。

技术堆栈

  • 核心依赖: @3-/qwen-code - 提供与 Qwen-Code 模型交互的核心功能。
  • 运行时: Bun - 高性能的 JavaScript 运行时与工具包。
  • 测试框架: CoffeeScript - 用于编写简洁的测试用例。

目录结构

/
├── src/lib.js       # 核心封装逻辑
├── test/main.coffee # 测试示例
├── readme/          # 项目文档
│   ├── en.md
│   └── zh.md
└── package.json     # 项目配置

项目背景

Qwen(通义千问)是阿里云自主研发的大型语言模型系列。作为其重要分支,Qwen-Code 专注于代码生成、理解与优化,在软件开发领域展现出卓越的能力。

随着大型模型在软件工程中的应用日益广泛,如何降低其使用门槛成为关键。@3-/qwen 项目应运而生,其目标是为广大的 JavaScript 开发者社区提供一座桥梁,让他们能以更低的成本、更便捷的方式,将 Qwen-Code 的强大能力集成到自己的工作流与应用中。该项目不仅是对 qwen-code 的简单封装,更是对其易用性的扩展,旨在推动 AI 辅助编程在前端与 Node.js 生态中的普及。


About

This project is an open-source component of i18n.site ⋅ Internationalization Solution.

关于

本项目为 i18n.site ⋅ 国际化解决方案 的开源组件。