This monorepo contains a collection of projects for various functionalities within the Web Edge ecosystem. Each project is managed as a separate npm package.
- web-edge-core: Core functionalities shared across other packages.
- web-commands: Command execution utilities.
- web-translate: Translation services.
- web-rag: Retrieval-augmented generation utilities.
- web-english: English language processing tools.
- web-forms: Form handling utilities.
- web-text: Text processing utilities.
- web-search: Search functionalities.
- web-help: Help and documentation utilities.
Read more about the features and architecture of this project.
Read more about the create sample application
-
Clone the repository:
git clone https://github.com/99x/optimaxer-web.git cd optimaxer-web
-
Install dependencies and bootstrap the packages:
npm install npx lerna bootstrap
Here are some useful Lerna commands to manage the monorepo:
-
Bootstrap the packages:
This command will install all dependencies and link cross-dependencies:
npx lerna bootstrap
-
Run a script in all packages:
To run a script (e.g., build, test) in all packages, use:
npx lerna run build npx lerna run test
-
Add a dependency to a package:
To add a dependency to a specific package:
npx lerna add <dependency> --scope=<package-name>
-
Publish packages:
To publish updated packages to npm:
npx lerna publish
Each package resides in the packages
directory and can be developed independently. Here is an example structure of a package:
packages/
web-edge-core/
src/
package.json
README.md
...
To build a package, navigate to the package directory and run the build script:
cd packages/web-edge-core
npm run build
To test a package, navigate to the package directory and run the test script:
cd packages/web-edge-core
npm run test
Contributions are welcome! Please open an issue or submit a pull request for any bugs or feature requests.
This project is licensed under the MIT License. See the LICENSE file for details.