
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
clear-ai-core
Advanced tools
Clear AI - A modern TypeScript framework for building AI-powered applications with tool execution and workflow orchestration
Clear AI - A modern TypeScript framework for building AI-powered applications with tool execution and workflow orchestration. Perfect for CLI tools, APIs, and server applications.
📖 Full Documentation - Complete guides, API reference, and examples
npm install clear-ai-core
import { ClearAI } from "clear-ai-core";
// Initialize the framework for CLI usage
const ai = new ClearAI({
llm: {
openaiApiKey: "your-key",
ollamaBaseUrl: "http://localhost:11434",
},
server: {
port: 3001,
},
});
// Start everything
await ai.init();
// Access services
const mcpServer = ai.getMCP();
const llmService = ai.getLLM();
const toolService = ai.getTools();
clear-ai-mcp-basicclear-ai-sharedclear-ai-server@clear-ai/client (Private - Local Development Only)import { MCPServer, ToolRegistry } from "clear-ai-mcp-basic";
const server = new MCPServer();
const tools = server.getToolRegistry();
// Execute an API call
const result = await tools.executeTool("api_call", {
url: "https://api.example.com/users/1",
method: "GET",
});
import { SimpleLangChainService } from "clear-ai-shared";
const llm = new SimpleLangChainService({
openaiApiKey: "your-key",
ollamaBaseUrl: "http://localhost:11434",
});
const response = await llm.complete("Hello, world!", {
model: "ollama",
temperature: 0.7,
});
import { SimpleWorkflowService, ToolExecutionService } from "clear-ai-shared";
const toolService = new ToolExecutionService(llmConfig);
const workflow = new SimpleWorkflowService(llmConfig, toolService);
const result = await workflow.executeWorkflow(
"Get weather data and format it nicely"
);
import { createServer } from "clear-ai-server";
const server = createServer({
port: 3001,
mcpConfig: { tools: ["api_call", "json_reader"] },
llmConfig: { openaiApiKey: "your-key" },
});
await server.start();
import { ClearAI, MCPServer } from "clear-ai-core";
async function main() {
const ai = new ClearAI({
llm: { openaiApiKey: process.env.OPENAI_API_KEY },
server: { port: 3001 },
});
await ai.init();
// Use the MCP server for tool execution
const mcpServer = ai.getMCP();
const result = await mcpServer.getToolRegistry().executeTool("api_call", {
url: "https://api.example.com/data",
method: "GET",
});
console.log("Result:", result);
}
main().catch(console.error);
clear-ai-core
├── clear-ai-mcp-basic # Model Context Protocol
├── clear-ai-shared # Shared services & utilities
├── clear-ai-server # Express API server
└── @clear-ai/client # React web interface (private)
# LLM Configuration
OPENAI_API_KEY=your-key
OLLAMA_BASE_URL=http://localhost:11434
MISTRAL_API_KEY=your-key
GROQ_API_KEY=your-key
# Langfuse (Observability)
LANGFUSE_SECRET_KEY=your-key
LANGFUSE_PUBLIC_KEY=your-key
LANGFUSE_BASE_URL=https://cloud.langfuse.com
# Server Configuration
PORT=3001
NODE_ENV=production
const config: ClearAIConfig = {
mcp: {
tools: ["api_call", "json_reader", "file_reader"],
},
llm: {
openaiApiKey: process.env.OPENAI_API_KEY,
ollamaBaseUrl: process.env.OLLAMA_BASE_URL,
langfuseSecretKey: process.env.LANGFUSE_SECRET_KEY,
},
server: {
port: 3001,
cors: { origin: ["http://localhost:3000"] },
},
};
# Clone the repository
git clone https://github.com/wsyeabsera/clear-ai.git
cd clear-ai
# Install dependencies
npm install
# Build all packages
npm run build
# Start development servers
npm run dev
npm run dev - Start all packages in development modenpm run build - Build all packagesnpm run lint - Run ESLint on all packagesnpm run type-check - Run TypeScript type checkingnpm run clean - Clean all build artifactsWhen you install the package, you can access documentation via:
npm docs clear-ai-core
# or
npm home clear-ai-core
git checkout -b feature/amazing-featuregit commit -m 'Add amazing feature'git push origin feature/amazing-featureThis project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ by the Clear AI Team
FAQs
Clear AI - A modern TypeScript framework for building AI-powered applications with tool execution and workflow orchestration
We found that clear-ai-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.