open-index/open-npm huggingface dataset:
npm package: @orda-io/orda
Description: Orda-js: A typescript/javascript library for orda project. CRDT-based data synchronization supporting document database.
Author: Orda Team
Latest version: 0.1.34

# 🐎🎪 Orda-js

---
Orda-js is the Javascript(or Typescript) SDK for [Orda](https://github.com/orda-io/orda) project. Orda project is a multi-device data synchronization platform based on
[MongoDB](https://www.mongodb.com/) (which could be other document databases such
as [CouchBase](https://www.couchbase.com/)). Orda is based on CRDT(conflict-free data types), which enables
operation-based synchronization.

In [this repository](https://github.com/orda-io/orda), we present the Orda Server, and introduce the concept of the Orda project. 

The library size of orda-js is just about 298KB. It works not only in browsers, but also with nodejs. 

One of the example implemented with orda-js. [Orda-JSONEditor](https://github.com/orda-io/orda-jsoneditor) is a sample program. 

## Install

To use Orda-js in your development, you can use npm.    
```shell
$ npm i @orda-io/orda
```


## Development

To develop the orda-js sdk, Orda Server needs to be up and running in advance.
Following [the instructions](https://github.com/orda-io/orda#getting-started), you can run the Orda Server.

```shell
$ git clone https://github.com/orda-io/orda.git
$ npm run gen:openapi  
$ npm run gen:proto-enum 
```

You can build orda-js as follows.

```shell
$ npm build:dev
$ npm build:prod
```

Orda-js can be tested with either karma or mocha. 

```shell
$ npm run test # test with karma 
$ npm run test:mocha # test with mocha 
```

# Contribute to Orda Project

----
We always welcome your participation.


# License

----
Orda-js is licensed under Apache 2.0 License that can be found in the LICENSE file.
npm package: @orda-io/orda-integer
Description: Orda Integer: a TypeScript/Javascript library compatible with the integer types of other languages
Author: Orda Team
Latest version: 0.1.17

# Orda Integer

## Introduction

 - Orda Integer is a TypeScript/Javascript library for the integer type used in [Orda-js](https://github.com/orda-io/orda-js) project.
 - We implement Orda Integer in order to be compatible with the integer types of other programming languages.
 - Orda Integer is written in Typescript based on [BigInt](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt).
 - The size of Orda Integer is very tiny (about 300 bytes). 
 - Orda Integer supports the following commonly used integer types 
   * signed 32bits integer 
   * signed 64bits integer 
   * unsigned 64bits integer
   * unsigned 64bits integer

## Install

```shell
$ npm i @orda-io/orda-integer
```

## How to use
 
To be continue...
npm package: @orda-io/orda-logger
Description: Orda Logger: a very tiny logger written in Typescript, which is used in Orda project.
Author: Orda Team
Latest version: 0.1.18

# Orda Logger

## Introduction

- Orda Logger is a very tiny logger written in TypeScript, which is used
  in [Orda-js](https://github.com/orda-io/orda-js)
  project.
- The size of Orda-logger is about 4KB.

## Install

```shell
$ npm i @orda-io/orda-logger
```

## How to use

You can use orda-logger as follows:

```typescript
const logFactory = new OrdaLoggerFactory("trace");
const logger = logFactory.getLogger("test logging");
logger.trace("trace message");
logger.debug("debug message");
const num = 1234;
logger.info(`info message:${num}`);
logger.warn("warn message");
try {
  generate_error();
} catch (e) {
  logger.error("error message", e);
}
logger.log("log withPos back");
```

- For nodejs, logging messages accompany by the file positions and the tags.

![image](https://user-images.githubusercontent.com/3905310/126910254-c4c1b4cb-e315-4b6f-836e-6316a6dae267.png)

- In the chrome console, logging messages accompany only by the tags.

![image](https://user-images.githubusercontent.com/3905310/126910265-1d7666e4-e9bb-4055-9d74-0567eccfe9f7.png)