🚀 ALSM Server
ALSM Convert
AI Doc
PlantUML Repair
AI Code Documentation
Generate documentation for your code using AI services (OpenAI, TogetherAI, DeepSeek, Ollama).
Upload JS/TS Files
Explain Files
Type JS/TS Code
// A simple configuration value const DEFAULT_ID = 1; // Describes something that can return a value interface ValueProvider { getValue(): number; } // A basic class that stores a value class ValueHolder implements ValueProvider { private value: number; constructor(initial: number = DEFAULT_ID) { this.value = initial; } getValue(): number { return this.value; } setValue(v: number): void { this.value = v; } } // A service that depends on ValueProvider class ValueService { constructor(private provider: ValueProvider) {} computeDouble(): number { const v = this.provider.getValue(); return v * 2; } } // A controller that orchestrates calls class Controller { private service: ValueService; private holder: ValueHolder; constructor() { this.holder = new ValueHolder(5); this.service = new ValueService(this.holder); } run(): number { return this.service.computeDouble(); } } // Example usage const controller = new Controller(); console.log("Result:", controller.run());
Explain Code
Debug Output
AI Service Configuration
Service
Loading services...
Model
-- Select preset --
API Key (optional, uses env var if empty)
System Prompt
Please explain the following source code in detail. \nGenerate at least one PlantUML diagram markup of this code which starts with\n```plantuml\n@startuml\nand ends with \n@enduml\n```
User Prompt
Explain this code in detail. As well as a class diagram, include a sequence diagram.
AI Response
Rendered
Raw Markdown
Cancel Request