
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
symmetry-client
Advanced tools
Use this repository to become an inference provider on the Symmetry network programmatically.
Symmetry is a decentralized peer-to-peer network tool that allows users to share computational resources for AI inference. It enables users to connect directly and securely with each other, offering or seeking computational power for various AI tasks.
npm install symmetry-client
To create a new Symmetry provider:
import { SymmetryProvider } from 'symmetry-client';
const config = {
// ... your configuration object
};
const provider = new SymmetryProvider(config);
provider.init();
Here's an example configuration object for creating a SymmetryProvider:
const config = {
apiHostname: "localhost",
apiKey: "",
apiPath: "/v1/chat/completions",
apiPort: 11434,
apiProtocol: "http",
apiProvider: "ollama",
dataCollectionEnabled: false,
maxConnections: 10,
modelName: "llama3.1:latest",
name: "twinnydotdev",
path: "/home/twinnydotdev/.config/symmetry/data",
public: true,
serverKey: "4b4a9cc325d134dee6679e9407420023531fd7e96c563f6c5d00fd5549b77435",
systemMessage: "I'm a system message"
};
const provider = new SymmetryProvider(config);
apiHostname
: The hostname of the API server.apiKey
: The API key for authentication (if required).apiPath
: The endpoint path for chat completions.apiPort
: The port number on which the API server is listening.apiProtocol
: The protocol used to communicate with the API server.apiProvider
: The name of the API provider.dataCollectionEnabled
: Whether to enable data collection.maxConnections
: The maximum number of connections.modelName
: The name and version of the AI model to use.name
: Your chosen name as a provider on the Symmetry network.path
: The local path where Symmetry will store its configuration and data files.public
: Whether this provider is publicly accessible on the Symmetry network.serverKey
: The unique key for connecting to the Symmetry server.systemMessage
: An optional system message for each conversation.Adjust these settings according to your preferences and setup.
Contributions are welcome! Please submit your pull requests to the GitHub repository.
This project is licensed under the MIT License.
If you encounter any issues or have questions, please open an issue on GitHub.
We thank Hyperswarm for providing the underlying peer-to-peer networking capabilities.
FAQs
Symmetry client
We found that symmetry-client demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.