{"_id":"@curatedotfun/near-social","name":"@curatedotfun/near-social","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@curatedotfun/near-social","version":"0.0.1","description":"NEAR Social plugin for curatedotfun","main":"./dist/index.js","types":"./dist/index.d.ts","type":"module","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/index.js","default":"./dist/index.js"}},"license":"MIT","publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/potlock/curatedotfun-plugins.git","directory":"packages/near-social"},"keywords":["curatedotfun","near-social","near","distribute","plugin"],"scripts":{"build":"rspack build && tsc -p tsconfig.build.json","dev":"rspack serve","lint":"tsc --noEmit","test":"vitest"},"devDependencies":{"@curatedotfun/types":"workspace:*","@curatedotfun/utils":"workspace:*","@rspack/cli":"latest","@types/jest":"^29.5.14","typescript":"^5.0.0","vitest":"^3.0.7"},"dependencies":{"@near-js/crypto":"^1.4.1","@near-js/providers":"^1.0.1","@near-js/transactions":"^1.3.1","@near-js/utils":"^1.0.1","@near-js/wallet-account":"^1.3.1","bignumber.js":"^9.1.2","near-api-js":"^5.0.1"},"_id":"@curatedotfun/near-social@0.0.1","gitHead":"7dddfb9cf90c827f18830d4c4e5e68e7b7e36add","bugs":{"url":"https://github.com/potlock/curatedotfun-plugins/issues"},"homepage":"https://github.com/potlock/curatedotfun-plugins#readme","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-hWVnR+cYhctOu/Yyez6wlVGJfzqb6kaAGr9kyTQQGSf2vHhugd3E2BZ53rEXJiAS4N1U5R/SOmYV9Wu9AfZ4wg==","shasum":"63e632847c5ea793b63b5a747cb2d283d4cfefcf","tarball":"https://registry.npmjs.org/@curatedotfun/near-social/-/near-social-0.0.1.tgz","fileCount":15,"unpackedSize":5996205,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQD6nXlVOND5MY20tLiXo+LlNz4CC+znmifj7WQ2usQ0WgIhAPsTICNyanr8cXnSBMMhxXGvFz6P+Rd4xauzo1HEFZjc"}]},"_npmUser":{"name":"ejlbraem","email":"elliot@nearbuilders.org"},"directories":{},"maintainers":[{"name":"ejlbraem","email":"elliot@nearbuilders.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/near-social_0.0.1_1740975620733_0.3076534602849801"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-03T04:20:20.605Z","0.0.1":"2025-03-03T04:20:20.993Z","modified":"2025-03-03T04:20:21.392Z"},"maintainers":[{"name":"ejlbraem","email":"elliot@nearbuilders.org"}],"description":"NEAR Social plugin for curatedotfun","homepage":"https://github.com/potlock/curatedotfun-plugins#readme","keywords":["curatedotfun","near-social","near","distribute","plugin"],"repository":{"type":"git","url":"git+https://github.com/potlock/curatedotfun-plugins.git","directory":"packages/near-social"},"bugs":{"url":"https://github.com/potlock/curatedotfun-plugins/issues"},"license":"MIT","readme":"# NEAR Social Plugin for Curated.fun\n\nA distribution plugin for posting content to NEAR Social.\n\n## Installation\n\n```bash\nnpm install @curatedotfun/near-social\n```\n\n## Usage\n\n```typescript\nimport NearSocialPlugin from \"@curatedotfun/near-social\";\n\n// Create an instance of the plugin\nconst nearSocialPlugin = new NearSocialPlugin();\n\n// Initialize the plugin with your NEAR account credentials\nawait nearSocialPlugin.initialize({\n  accountId: \"your-account.near\",\n  privateKey: \"your-private-key\",\n  networkId: \"mainnet\" // or \"testnet\"\n});\n\n// Distribute content to NEAR Social\nawait nearSocialPlugin.distribute({\n  input: \"Hello, NEAR Social! This is a post from Curated.fun.\"\n});\n```\n\n## Configuration\n\nThe plugin requires the following configuration:\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| accountId | string | Yes | Your NEAR account ID (e.g., \"example.near\") |\n| privateKey | string | Yes | Your NEAR account private key |\n| networkId | \"mainnet\" \\| \"testnet\" | No | The NEAR network to use (defaults to \"mainnet\") |\n\n## Security Considerations\n\n- **NEVER** hardcode your private key in your application code.\n- Use environment variables or a secure secret management system to store sensitive credentials.\n- Consider using a dedicated NEAR account for posting to NEAR Social rather than your main account.\n\n## Features\n\n- Post text content to NEAR Social\n- Automatically formats and indexes posts for proper display on NEAR Social\n- Supports both mainnet and testnet\n\n## Development\n\n```bash\n# Install dependencies\nnpm install\n\n# Build the plugin\nnpm run build\n\n# Run tests\nnpm test\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}