🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@curatedotfun/near-social

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@curatedotfun/near-social

NEAR Social plugin for curatedotfun

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
0
Created
Source

NEAR Social Plugin for Curated.fun

A distribution plugin for posting content to NEAR Social.

Installation

npm install @curatedotfun/near-social

Usage

import NearSocialPlugin from "@curatedotfun/near-social";

// Create an instance of the plugin
const nearSocialPlugin = new NearSocialPlugin();

// Initialize the plugin with your NEAR account credentials
await nearSocialPlugin.initialize({
  accountId: "your-account.near",
  privateKey: "your-private-key",
  networkId: "mainnet" // or "testnet"
});

// Distribute content to NEAR Social
await nearSocialPlugin.distribute({
  input: "Hello, NEAR Social! This is a post from Curated.fun."
});

Configuration

The plugin requires the following configuration:

ParameterTypeRequiredDescription
accountIdstringYesYour NEAR account ID (e.g., "example.near")
privateKeystringYesYour NEAR account private key
networkId"mainnet" | "testnet"NoThe NEAR network to use (defaults to "mainnet")

Security Considerations

  • NEVER hardcode your private key in your application code.
  • Use environment variables or a secure secret management system to store sensitive credentials.
  • Consider using a dedicated NEAR account for posting to NEAR Social rather than your main account.

Features

  • Post text content to NEAR Social
  • Automatically formats and indexes posts for proper display on NEAR Social
  • Supports both mainnet and testnet

Development

# Install dependencies
npm install

# Build the plugin
npm run build

# Run tests
npm test

License

MIT

Keywords

curatedotfun

FAQs

Package last updated on 03 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts