https://github.com/themost-framework/core
@themost-framework core data objects
https://github.com/themost-framework/core
Last synced: 5 months ago
JSON representation
@themost-framework core data objects
- Host: GitHub
- URL: https://github.com/themost-framework/core
- Owner: themost-framework
- License: bsd-3-clause
- Created: 2023-09-21T06:38:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-06T09:51:36.000Z (over 1 year ago)
- Last Synced: 2025-11-19T21:12:21.691Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 433 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @themost/core
`@themost/core` is a core data object library for the [@themost-framework](https://github.com/themost-framework/). It provides essential classes and utilities for building data-driven applications.
## Installation
To install the package, use npm:
```sh
npm i @themost/core
```
## Usage
This package includes several models:
- Thing: The most generic type of item.
- Account: Inherits from Thing, represents user accounts.
- User: Inherits from Account, represents individual users.
- Group: Inherits from Account, represents groups of users.
- Permission: Represents permissions assigned to accounts.
- Workspace: Represents workspaces within the application.
`@themost/core` exports a schema loader for loading those generic data models and start using them inside application.
```javascript
import {SchemaLoader} from '@themost/core';
import {DataApplication, DataConfigurationStrategy, SchemaLoaderStrategy} from '@themost/data';
// create application
const app = new DataApplication(process.cwd());
// get schema loader strategy
const strategy = app.getConfiguration().getStrategy(SchemaLoaderStrategy);
// add @themost/core schema loader
strategy.loaders.push(new SchemaLoader(this.getConfiguration()));
```
## License
This project is licensed under the BSD-3-Clause License. See the LICENSE file for details.
## Contributing
Contributions are welcome! Please open an issue or submit a pull request on [GitHub](https://github.com/themost-framework/core/issues).
## Contact
For any questions or issues, please open an issue on [GitHub](https://github.com/themost-framework/core).