# rekajs

> SPA core element

Latest version **0.0.3** (published 2021-01-30) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2021-01-30 |
| First published | 2021-01-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.4 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Zahrin Azam |
| Maintainers | kidzen |
| Keywords | spa |

## Links

- npm: https://www.npmjs.com/package/rekajs
- Repository: https://github.com/Rekamy/rekajs
- Homepage: https://github.com/Rekamy/rekajs#readme
- Issues: https://github.com/Rekamy/rekajs/issues
- npm.io page: https://npm.io/package/rekajs

## Dependencies (3)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [typescript](https://npm.io/package/typescript.md) ^4.1.3

## Recent versions

- 0.0.3 (latest) — 2021-01-30

## README

# rekajs
SPA application core elements. This packages are required by rekamy/Generator package


# Installation
`npm i rekajs`

# How to use
```
import { api, bloc, store } from 'rekajs'

api.get('my-endpoint')

if( bloc.hasApi() ) bloc.api.get()

if( bloc.hasStore() ) bloc.store.save(data)

auth.authenticate({username: 'username', password: 'password', token: 'token'})

if( auth.loggedIn() ) {
    // authorized method
} else {
    auth.redirect()
}

```

## Components
* api
* store
* auth
* bloc
* rtc (Real-time communicator)
* widget (alert, notifier)
* vue-component

## Todo
* store
* auth
* bloc
* rtc (Real-time communicator)
* widget (alert, notifier)
* vue-component
* handle another api driver

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