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

baudai

v1.0.1

Published

Generic MCU development helper skills for PlatformIO projects

Readme

BaudAI

面向 PlatformIO 项目的 MCU 开发辅助工具集。

English README

简介

BaudAI 提供一组面向嵌入式开发工作流的脚本,用于把常见任务标准化:

  • 初始化项目级 Copilot 指令和记忆文件
  • 编译 PlatformIO 固件
  • 以 Mock 模式或真实硬件模式烧录固件
  • 模拟启动串口日志,便于流程演练和 AI 分析
  • 调整目标项目里的导师人格配置
  • 通过交互式 CLI 统一入口执行这些操作

工具本身不写死具体板卡型号,默认读取目标项目自己的 platformio.ini

环境要求

  • Node.js
  • npm
  • PlatformIO Core
  • 一个可以正常构建的 PlatformIO 项目

快速开始

请将 ../your-platformio-project 替换为你自己的 PlatformIO 项目路径。

cd BaudAI
npm install
npx tsx skills/build.ts ../your-platformio-project
npx tsx skills/flash.ts ../your-platformio-project
npx tsx skills/flash.ts ../your-platformio-project --real --port COM5

从 npm 安装

在包发布到 npm 之后,可以全局安装,然后在目标 PlatformIO 项目根目录中使用:

npm install -g baudai
cd ../your-platformio-project
baudai
baudai build
baudai flash --real --port COM5

如果不想全局安装,也可以直接使用:

npx baudai

常用命令

npx tsx skills/init.ts ../your-platformio-project
npx tsx skills/build.ts ../your-platformio-project [environment]
npx tsx skills/flash.ts ../your-platformio-project [environment] [--mock|--real] [--port COM5] [--baud 921600]
npx tsx skills/monitor.ts
npx tsx skills/config.ts ../your-platformio-project

如果想使用交互式 CLI,请在目标 PlatformIO 项目目录中运行:

cd ../your-platformio-project
npx tsx ../BaudAI/skills/cli.ts

说明

  • flash.ts 默认是 Mock 模式,只有传入 --real 才会尝试真实烧录。
  • monitor.ts 当前输出的是 Mock 启动日志,不会直接连接物理串口。
  • build.tsflash.tsmonitor.tsinit.ts 会输出带边界标记的 JSON,便于自动化工具解析。

发布到 npm

发布前建议先确认:

  • npm 上的包名是否可用
  • package.json 里的版本号是否已经更新
  • 先用 npm run pack:check 检查最终会被发布的文件

发布流程:

npm login
npm run pack:check
npm publish

公开仓库建议

如果这个仓库会长期公开,建议保持这些习惯:

  • 不要把本机绝对路径写进 README 或示例命令
  • 不要把私有项目名、内部板卡代号或真实设备清单写进文档
  • 不要把密钥、令牌、串口清单或带敏感信息的截图提交到仓库