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

openclaw-homework-grader

v0.3.0

Published

OpenClaw 作业批改接口插件模板(AK/CK 签名占位版)

Readme

OpenClaw Homework Grader Plugin

这是一个给 OpenClaw 使用的“作业批改接口”插件模板,已经打包成可以直接落地调试的工程。

这个版本包含什么

  • 只预留 两个环境变量
    • HOMEWORK_GRADER_AK
    • HOMEWORK_GRADER_CK
  • 已经带好 OpenClaw 所需的 openclaw.plugin.json
  • 已经注册 5 个工具:
    • homework_grading_auth_status
    • homework_grading_healthcheck
    • homework_grading_submit
    • homework_grading_query
    • homework_grading_request
  • 支持:
    • dryRun
    • 超时设置
    • 重试
    • 调试日志
    • 插件配置 + 工具入参双模式
  • lib/auth.js 中保留 AK/CK 签名占位函数

目录结构

openclaw-homework-grader/
├── openclaw.plugin.json
├── package.json
├── .npmignore
├── index.js
├── .env.example
├── README.md
├── lib/
│   ├── auth.js
│   ├── config.js
│   ├── http.js
│   ├── schemas.js
│   └── utils.js
├── docs/
│   ├── INSTALL.md
│   ├── USAGE.md
│   └── DEVELOPMENT.md
├── examples/
│   ├── openclaw.json5.snippet
│   ├── tool-auth-status.json
│   ├── tool-healthcheck.json
│   ├── tool-submit-dryrun.json
│   ├── tool-query-dryrun.json
│   └── tool-custom-request.json
└── skills/
    └── homework-grader/
        └── SKILL.md

安装

通过 npm

npm install openclaw-homework-grader

安装后将目录注册到 OpenClaw:

openclaw plugins install ./node_modules/openclaw-homework-grader

通过本地目录

openclaw plugins install /你的目录/openclaw-homework-grader

详细步骤见 docs/INSTALL.md


你最需要改的文件

1. 环境变量

复制一份:

cp .env.example .env

填写:

HOMEWORK_GRADER_AK=你的AK
HOMEWORK_GRADER_CK=你的CK

2. 签名函数

文件:

lib/auth.js

buildSignedHeaders(context) 替换成你供应商要求的真实签名逻辑。

最常用联调路径

  1. 先调 homework_grading_auth_status
  2. 再调 homework_grading_healthcheck
  3. 再用 homework_grading_submit / homework_grading_query
  4. 真实接口不确定时,先打开 dryRun: true

文档入口

  • 安装说明:docs/INSTALL.md
  • 使用说明:docs/USAGE.md
  • 二次开发说明:docs/DEVELOPMENT.md

注意

当前模板 没有实现真实 AK/CK 签名。 如果你直接发真实请求,服务端大概率会因为签名不正确而拒绝;这是预期行为。