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

sdk-coral-enterprise-next

v0.0.3

Published

企业服务组件,包括

Readme

SDK-Coral-Enterprise-Next

企业服务组件,包括

  • showServiceLogin 用户登录、用户注册
  • showServiceOrgCreate 团队 (机构、企业) 创建
  • showServiceOrgInvitePage 加入团队
  • showServiceOrgInviteLink 邀请加入
  • showServiceOrgDetail 团队详情
  • showServiceOrgList 团队列表
  • showServiceOrgMembers 团队成员管理
  • showServiceAccountSettingGuide 账号/昵称设置指引
  • showServiceOrgRemove 解散团队
  • showServiceOrgTransfer 移交团队

使用介绍

用户登录、用户注册

import { showServiceLogin } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceLogin({
    // 业务 ID
    appid: "",
    // 登录成功回调,此时业务域的用户 cookie 已种下
    onSuccess() {

    }
  });
};

团队 (机构、企业) 创建

import { showServiceOrgCreate } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceOrgCreate({
    width: 800,
    // 业务 ID
    appid: "",
    // 点击取消按钮
    onCancel() {},
    // 保存失败回调: msg 错误信息
    onError() {},
    // 保存成功回调: orgInfo 为团队相关信息 addMemberMethod: 已选择的添加成员的方式
    onSuccess(orgInfo, addMemberMethod) {
      // 保存成功回调: orgInfo 为团队相关信息 addMemberMethod: 已选择的添加成员的方式
    }
  })
};

加入团队

import { showServiceOrgInvitePage } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceOrgInvitePage({
    inviteToken: "",
    appid: "",
    onSuccess() {}
  })
};

邀请加入(添加人员)

import { showServiceOrgInviteLink } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceOrgInviteLink({
    appid: "",
    teamId: ""
  })
};

团队成员管理

import { showServiceOrgMembers } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceOrgMembers({
    appid: "",
    teamId: ""
  })
};

查看团队详情

import { showServiceOrgDetail } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceOrgMembers({
    appid: "",
    teamId: "",
    width: 980
  })
};

查看团队列表

import { showServiceOrgList } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceOrgList({
    appid: "",
    // 返回当前选中团队ID
    onEnter(teamId) {}
  })
};

账号设置指引

import { showServiceAccountSettingGuide } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceAccountSettingGuide({
    appid: "",
    // 点击「立即设置」
    onConfirm() {},
    // 点击「稍后设置」
    onCancel() {},
    // 点击关闭弹窗按钮
    onClose() {},
     // 「不再提醒」复选框 onChange 事件回调
    onChangeRemind(checked) {}
  })
};

解散团队

import { showServiceOrgRemove } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceOrgRemove({
    appid: "",
    teamId: "",
    // 解散成功
    onSuccess() {},
    // 解散失败
    onError() {},
  })
};

移交团队

import { showServiceOrgTransfer } from "sdk-coral-enterprise-next";

const handleClick = () => {
  showServiceOrgTransfer({
    appid: "",
    teamId: "",
    // 移交成功
    onSuccess() {},
     // 移交失败
    onError() {},
  })
};