@agentlang/lstudio
v0.6.0
Published
AgentLang Studio UI - Local Mode
Readme
@agentlang/lstudio
The AgentLang Studio UI package for local mode. This package contains the built static files of the AgentLang Design Studio UI.
Installation
You can install this package from npm:
npm install @agentlang/lstudioUsage
This package contains the static build files (HTML, CSS, JavaScript) of the Studio UI. After installation, you can:
- Serve the static files using any static file server
- Copy the files to your web server's public directory
- Use with a web server like Express, nginx, etc.
Example: Serving with Express
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');
});Package Contents
The published package includes:
index.html- Main HTML fileassets/- JavaScript, CSS, and image assetsfonts/- Font filespackage.json- Package metadata
Version
Current version: 0.0.1
License
MIT
