langtrain
v0.2.9
Published
Unified JavaScript SDK for Langtrain Ecosystem
Maintainers
Readme
Quick Start
Get up and running in seconds. Langtrain CLI is your gateway to the entire ecosystem.
# Install globally
npm install -g langtrain
# Start the interactive studio
ltIf you encounter permission errors, try running with sudo or check your npm permissions:
sudo npm install -g langtrainFeatures
Langtrain provides a complete toolkit for the modern AI engineer.
| Feature | Description |
| :--- | :--- |
| Autonomous Agents | Create, manage, and chat with custom agents. Routable via lt agent. |
| Langtune | Fine-tune LLMs (Llama 3, Mistral) locally using QLoRA or dispatch to H100s. |
| Langvision | Optimize multimodal datasets and vision models for edge deployment. |
| Enterprise Security | Local-first architecture. Your data leaves your machine only when you say so. |
| Instant Deploy | Push your verified agents to production endpoints with lt deploy. |
SDK Integration
Use the power of Langtrain directly in your Node.js or TypeScript applications.
import { Langvision, Langtune } from 'langtrain';
// Initialize with your project context
const vision = new Langvision({ apiKey: process.env.LANGTRAIN_API_KEY });
const tune = new Langtune({ apiKey: process.env.LANGTRAIN_API_KEY });
async function main() {
// 1. Analyze Visual Context
const analysis = await vision.analyze({
image: './dashboard.png',
prompt: 'Extract UI component hierarchy'
});
// 2. Generate Optimized Code
const code = await tune.generate({
model: 'gpt-4-turbo',
prompt: `Create a React component based on: ${analysis.description}`
});
console.log(code);
}Configuration
Configure your environment seamlessly via CLI or environment variables.
| Variable | Description |
| :--- | :--- |
| LANGTRAIN_API_KEY | Your project Secret Key (find it in Settings). |
| LANGTRAIN_WORKSPACE_ID | (Optional) Target specific workspace environments. |
Pro Tip: Run
lt loginto authenticate continuously without managing.envfiles manually.
Community & Support
Join the thousands of engineers building with Langtrain.
- Documentation - Guides, API Reference, and Tutorials.
- GitHub Discussions - Ask questions, request features.
- Enterprise Support - Dedicated support for teams.
