AgentLang Studio UI - Local Mode
npm install @agentlang/lstudioThe AgentLang Studio UI package for local mode. This package contains the built static files of the AgentLang Design Studio UI.
You can install this package from npm:
``bash`
npm install @agentlang/lstudio
This package contains the static build files (HTML, CSS, JavaScript) of the Studio UI. After installation, you can:
1. Serve the static files using any static file server
2. Copy the files to your web server's public directory
3. Use with a web server like Express, nginx, etc.
`javascript
import express from 'express';
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const app = express();
const studioPath = path.join(__dirname, 'node_modules/@agentlang/lstudio/dist');
app.use(express.static(studioPath));
app.get('*', (req, res) => {
res.sendFile(path.join(studioPath, 'index.html'));
});
app.listen(4000, () => {
console.log('Studio UI available at http://localhost:4000');
});
`
The published package includes:
- index.html - Main HTML fileassets/
- - JavaScript, CSS, and image assetsfonts/
- - Font filespackage.json
- - Package metadata
Current version: 0.0.1`
MIT