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

csc-canoe-sdk

v0.0.2-beta.5

Published

轻舟运营SDK

Readme

@csc/canoe-sdk 轻舟运营SDK

主要封装轻舟「界面管理」和「运营位管理」两个模块,为 c 端提供界面和运营位获取数据接口、运营位投放弹窗 UI、nps 问卷弹窗 UI 等能力

1、安装方式

// pnpm
pnpm i @csc/canoe-sdk

// or yarn
yarn add @csc/canoe-sdk

2、使用方式

界面管理

  • 方式一:调用 Api 获取完整数据

import CanoeSdk from '@csc/canoe-sdk/lib';
import { request } from '@/services'; // 业务请求模块

const canoeSdk = new CanoeSdk({ request }); // 初始化

// 接口调用
canoeSdk.Api.getResourcesByExhibitionCode({
    position: 'framework', // 界面标识
    pit_mark: 'framework--beginner_guide', // 位置标识(非必传)
})
  • 方式二:通过内置 api 获取指定数据(简化返回数据)

import CanoeSdk from '@csc/canoe-sdk/lib';
import { request } from '@/services'; // 业务请求模块

const canoeSdk = new CanoeSdk({ request }); // 初始化

// 首页界面配置数据
const home = canoeSdk.newExhibition('home')

await home.getExhibition()                          // 获取界面信息
await home.getPits()                                // 获取位置信息
await home.getPitMaterials('home--scene_entry')     // 根据位置标识获取位置物料
await home.getAllMaterials()                        // 获取所有位置物料

运营位管理

3、SDK 初始化

new CanoeSdk({ request })

request 参数 headers 请求携带参数: |Parameters |type |required |description | ---- | ---- | ---- | ---- |x-business-id |Number |true |业务线id |x-channel-id |Number |true |渠道id |x-device-id |String|true |用户设备id

4、API定义

详见 界面接口文档

sdk response:

|Parameters |type |description | ---- | ---- | ---- |Api |{getResourcesByExhibitionCode: Function} |界面接口 |newExhibition |(position: string): ExhibitionInfo) |创建一个界面 |destroy |Function |销毁实例

ExhibitionInfo:

|Parameters |type |description | ---- | ---- | ---- |getExhibition | () => Promise |获取界面信息 |getPits |(): => Promise |获取界面位置列表 |getPitMaterials |(pit: string) => Promise |获取单个位置物料 |getAllMaterials |() => Promise |获取所有位置物料

5、业务概述

稿定套版解决方案

  • 页面级位置组数据配置支撑 —— 界面管理

  • 在业务侧关键主路径上,添加弹窗、顶部 banner 等广告位 —— 运营位管理

  • 在核心常用页面上,添加 NPS 问卷收集能力 —— NPS 问卷投放

6、相关文档

套版运营能力接入前端技术方案