# @mobiusz/core
Donate
Description
@mobiusz/core
is the core module, as its name suggests, for the whole Möb:üsz ecosystem to work.
It provides types that are used - and to be used - in the modules that belong to other framework's namespaces:
-
@mobiusz
obviously. -
@vuoz
the namespace for packages that implement GUI components and functions. -
@pipeline
the namespace for packages that handles the Pipeline dataflow programming system. -
@mmmap
that bundles all this together to provide application and server.
Install
With yarn (recommended)
yarn add @mobiusz/core
With npm
npm install @mobiusz/core
Structure
@mobiusz/core
provides basic types, models and abstract classes to be used or implemented.
The main purpose of these is to propose a common language to make community development and discussion easier.
Implementations
Few concrete functionalities are already implemented in this module:
IdGenerator
Generates unique ids thanks to the nanoid
package.
It is widely used in the Möb:üsz ecosystem to quickly provide unique ids with the less collision possible.
class IdGenerator implements UniqueIdGeneratorPort
-
Dependencies:
nanoid
(bundled with the package) - Purpose: Generates unique ids according to an user-defined length of the id to produce.
-
Usage:
ìmport { IdGenerator } from '@mobiusz/core