liteflow-ui
v1.0.2
Published
Express middleware for Liteflow package
Maintainers
Readme
Liteflow UI
⚠️ Experimental Package: This package is still in development and is provided as an experimental release. Please test thoroughly before using in production environments.
Liteflow UI is a user interface developed for the Liteflow package. You can add it to your Express applications as middleware.
Installation
npm install liteflow-uiUsage
import express from 'express';
import createLiteflowUIMiddleware from 'liteflow-ui';
const app = express();
// Add middleware
app.use('/liteflow-ui', createLiteflowUIMiddleware({
path: '/liteflow-ui', // UI access path (optional)
username: 'admin', // Basic auth username (optional)
password: 'admin123', // Basic auth password (optional)
realm: 'Liteflow UI', // Basic auth realm (optional)
dbPath: 'workflows.db' // Database file path (optional)
}));
app.listen(3000, () => {
console.log('Server running on http://localhost:3000');
console.log('Liteflow UI available at http://localhost:3000/liteflow-ui');
});Example Application
The package includes an example application. To run the example:
cd middleware/example
npm install
npm startThe example application will be available at:
- Main application: http://localhost:3000
- Liteflow UI: http://localhost:3000/liteflow-ui
Features
- Express middleware integration
- Basic authentication support
- Customizable database path
- TypeScript support
- Customizable UI path
Security Warning
This package uses basic authentication. Before using in production:
- Use strong passwords
- Use HTTPS
- Add additional security measures if needed
Development
To start development:
# Install dependencies
npm install
# Build middleware
npm run build
# Run example application
cd middleware/example
npm install
npm startContributing
This is an open source package and we welcome your contributions. To contribute:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push your branch
- Create a Pull Request
License
MIT
