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

base-token-toolkit-wh

v0.1.0

Published

Base链代币生成、校验、部署与运维工具集,包含MCP Server、Skill和可升级合约模板。

Readme

Base Token Toolkit

一套面向 Base 链的合规代币创建工具集,包含:

  • 可升级的 ERC20 / ERC721 / ERC1155 合约模板
  • Base 主网 / Base Sepolia 自动网络配置
  • MCP Server:配置读取、合规审计、生成部署工件、运维监控
  • Skill 模块:参数向导、部署前检查、上线后监控提示
  • 文档与测试矩阵:快速校验不同标准的可用性

项目结构

  • contracts/core/: Base 可升级代币模板
  • src/mcp/server.ts: MCP Server 入口
  • src/templates/: 配置 schema 与项目生成逻辑
  • src/security/: 基础安全审计规则
  • src/deploy/: 部署计划与部署脚本渲染
  • src/monitoring/: 上线后监控画像
  • .trae/skills/base-token-launcher/: Skill 文档
  • examples/configs/: ERC20 / ERC721 / ERC1155 示例配置
  • docs/base-knowledge-map.md: Base 开发与部署知识梳理

快速开始

  1. 安装依赖
npm install
  1. 复制环境变量模板
cp .env.example .env
  1. 编译合约
npm run compile
  1. 校验配置
npm run validate
  1. 生成部署工件
npm run generate
  1. 运行 MCP Server
npm run mcp
  1. 执行测试矩阵
npm run test:matrix

MCP 能力

  • base_network_catalog: 返回 Base 网络配置与 gas 优化建议
  • base_token_security_audit: 对代币参数进行合规检查
  • base_token_generate: 生成部署脚本、清单与 README
  • base_deployment_plan: 输出上线步骤与检查清单
  • base_monitoring_profile: 输出上线后监控要点

默认安全基线

  • UUPS 升级代理
  • AccessControlDefaultAdminRulesUpgradeable
  • PAUSER_ROLE / MINTER_ROLE / UPGRADER_ROLE / METADATA_ROLE
  • ERC20 上限控制
  • ERC721 / ERC1155 版税与元数据支持
  • 部署前审计与上线后监控建议

测试说明

  • npm test: 运行 Hardhat 单元测试
  • npm run test:matrix: 校验三类示例配置的生成成功率、编译可用性与核心功能测试结果

使用建议

  • Base Sepolia 先完成配置验证、部署演练与 Basescan 验证,再切换 Base 主网。
  • 主网请将管理员与升级角色迁移到多签或带延迟治理的控制账户。
  • Sponsor gas、Spend Permissions、Sub Accounts 属于更高权限的账户体验增强项,应结合风控策略使用。