Publish a Plugin

Learn how to publish your IrisOS plugin to npm and share it with the community.

Prerequisites

Before publishing your plugin:

Publishing Checklist

1. Prepare Your Plugin

Ensure your package.json is properly configured:

{
  "name": "@irisos/plugin-weather",
  "version": "1.0.0",
  "description": "Weather data plugin for IrisOS agents",
  "main": "dist/index.js",
  "types": "dist/index.d.ts",
  "files": [
    "dist/",
    "README.md",
    "LICENSE"
  ],
  "scripts": {
    "build": "tsc",
    "test": "jest",
    "prepublishOnly": "npm run build && npm test"
  },
  "keywords": [
    "irisos",
    "plugin",
    "weather",
    "ai-agent",
    "ai",
    "agent"
  ],
  "author": "Your Name <[email protected]>",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/yourusername/irisos-plugin-weather"
  },
  "bugs": {
    "url": "https://github.com/yourusername/irisos-plugin-weather/issues"
  },
  "homepage": "https://github.com/yourusername/irisos-plugin-weather#readme",
  "peerDependencies": {
    "@irisos/core": "^1.0.0"
  },
  "dependencies": {
    "axios": "^1.6.0"
  },
  "devDependencies": {
    "@types/node": "^20.0.0",
    "jest": "^29.0.0",
    "typescript": "^5.0.0"
  }
}

2. Create a Comprehensive README

Your README.md should include:

Last updated