# zoraclient

> Zora JavaScript client for writing Kafka messages to ZoraCloud

Latest version **0.0.0-beta.11** (published 2021-09-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install zoraclient
pnpm add zoraclient
yarn add zoraclient
bun add zoraclient
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0-beta.11 |
| Published | 2021-09-14 |
| First published | 2021-09-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 406.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | chepkoy |

## Links

- npm: https://www.npmjs.com/package/zoraclient
- Repository: https://github.com/chepkoyallan/zorajs
- Homepage: https://github.com/chepkoyallan/zorajs#readme
- Issues: https://github.com/chepkoyallan/zorajs/issues
- npm.io page: https://npm.io/package/zoraclient

## Dependencies (5)

- [@types/bytes](https://npm.io/package/@types/bytes.md) ^3.1.1
- [@grpc/grpc-js](https://npm.io/package/@grpc/grpc-js.md) ^1.3.7
- [google-protobuf](https://npm.io/package/google-protobuf.md) ^3.18.0-rc.2
- [typescript-logging](https://npm.io/package/typescript-logging.md) ^1.0.0
- [@types/google-protobuf](https://npm.io/package/@types/google-protobuf.md) ^3.15.5

## Recent versions

- 0.0.0-beta.11 (latest) — 2021-09-14
- 0.0.0-beta.10 — 2021-09-14
- 0.0.0-beta.9 — 2021-09-12
- 0.0.0-beta.8 — 2021-09-12
- 0.0.0-beta.7 — 2021-09-12
- 0.0.0-beta.6 — 2021-09-12
- 0.0.0-beta.5 — 2021-09-12
- 0.0.0-beta.4 — 2021-09-12
- 0.0.0-beta.3 — 2021-09-11
- 0.0.0-beta.2 — 2021-09-11
- 0.0.0-beta.1 — 2021-09-11
- 0.0.0 — 2021-09-11

## README

# zorajs
Zora JavaScript client for writing Kafka messages to ZoraCloud

## Getting Startted

To procuce messages using ZoraClient from a javascript application you need to:

1. Add `npm i zoraclient` or `yarn add zoraclient` as a dependency to your package.json 


2. Add imports:

    ```typescript
    import { Producer } from "zoraclient";
    ```

5. Create a Producer Instance client:

    ```typescript
    /**
     * Topic : Kafka topic to write to
    * address: GRPC port to send messages
    * Message: Messages to send to kafka topic
    */
    const data = {
    produceRequest: {
        topic: "devices",
        keyValue: "5nsdu930wdnl2n3nck",
        message: "samplemessagetobesent",
        address: "localhost:9000", 
    },
    };

    function main() {
    const stream = new Producer({ ...data.produceRequest });
    const output = stream.produce();
    console.log(output);
    }

    main();
    ```

---
_Source: https://npm.io/package/zoraclient · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
