Package Exports
- @intue/core
- @intue/core/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@intue/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
INTUE Core
Core utilities and shared components for the INTUE ecosystem - the intelligence layer for AI agents.
Overview
INTUE Core provides essential utilities and components used across the INTUE ecosystem of Modular Crypto Protocols (MCPs). This package serves as the foundation for building sophisticated crypto market analysis tools and AI agents.
Installation
npm install @intue/core
Features
Sentiment Analysis: Advanced crypto sentiment analysis tools
Ecosystem Correlation: Cross-ecosystem pattern detection
LunarCrush Integration: Social sentiment data adapter
Agent Framework: Modular agent system for automated trading
TypeScript Support: Full TypeScript declarations included
Usage
Core Functionality
typescriptimport { Agent, Runtime } from '@intue/core';
// Create a runtime
const runtime = await Runtime.init({
agentName: 'trading-agent',
options: {
logger: { level: 'info' }
}
});
// Start the runtime
await runtime.start();
// Get the agent and analyze market data
const agent = runtime.getAgent();
const result = agent.analyzeMarketData({
price: 45000,
volume: 1250000
});
console.log('Analysis result:', result);
Using Sentiment Analysis
typescriptimport { SentimentAnalyzer, LunarCrushProvider } from '@intue/core';
// Initialize provider
const lunarcrush = new LunarCrushProvider({
apiKey: process.env.LUNARCRUSH_API_KEY || 'demo-key'
});
// Create sentiment analyzer
const sentiment = new SentimentAnalyzer();
sentiment.addProvider(lunarcrush);
// Analyze social sentiment
const result = await sentiment.analyzeSocialSentiment('BTC');
console.log('BTC Sentiment:', result);
Using Ecosystem Correlation
typescriptimport { EcosystemCorrelator } from '@intue/core';
// Create correlator
const correlator = new EcosystemCorrelator({
timeframe: '1d',
lookbackPeriod: 30
});
// Analyze correlations between assets
const result = await correlator.analyzeCorrelation(['BTC', 'ETH', 'SOL']);
console.log('Correlations:', result);
API Documentation
For detailed API documentation, please refer to the GitBook documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.