open-index/open-npm huggingface dataset:
npm package: @fyno/react-native-totp
Description: React Native SDK to interact with Fyno's TOTP module
Author: Fyno
Latest version: 1.0.0

# @fyno/react-native-totp

## Overview

Time-based One-Time Password (TOTP) is a secure authentication mechanism used as part of multi-factor authentication (MFA). It generates a temporary, one-time password based on a shared secret and the current time. Each OTP is valid only for a short duration, reducing the risk of replay attacks and unauthorized access. Refer [Fyno TOTP](https://fyno.io/docs/verification) for more information.

---

## Installation

```sh
npm install @fyno/react-native-totp
```

or

```sh
yarn add @fyno/react-native-totp
```

---

## Usage

```js
import {
  initFynoConfig,
  registerTenant,
  setConfig,
  getTotp,
} from '@fyno/react-native-totp';
```

### Initialize Configuration

```js
initFynoConfig(wsid, distinctId);
```

Initializes the SDK with your workspace configuration.

- **wsid**: Workspace ID
- **distinctId**: Unique identifier for the current user/session

This must be called before using any other methods.

### Register a Tenant

```js
registerTenant(tenantId, tenantName, totpToken);
```

Registers a tenant for TOTP generation.

- **tenantId**: Unique identifier for the tenant
- **tenantName**: Human-readable name for the tenant
- **totpToken**: Token received from the below API endpoint. Ensure the token is securely transmitted and stored, as it is used to generate OTPs.

```js
/${wsid}/totp/${tenantId}/register
```

### Configure TOTP Settings

```js
setConfig(tenantId, {
  digits: digits,
  period: period,
  algorithm: algorithm,
});
```

Sets the TOTP configuration for a tenant.

- **digits**: Number of digits in the OTP (6–9)
- **period**: Time validity of each OTP (in seconds)
  - Allowed values: 15, 30, 45, 60, 120, 180, 240, 300
- **algorithm**: Hashing algorithm used
  - Allowed values: SHA1, SHA256, SHA512

### Generate TOTP

```js
getTotp(tenantId);
```

Generates the current TOTP for the given tenant.

- Returns a time-based OTP valid for the configured period
- Should be used before expiry
- OTP reuse is prohibited

### Delete Tenant

```js
deleteTenant(tenantId);
```

Removes a tenant and its associated TOTP configuration.

- This action is irreversible
- All stored secrets and configurations for the tenant will be deleted

---

## License

- [MIT](LICENSE)
npm package: @fyoimiya-ui/components
Description: Components for Fyoimiya UI
Latest version: 1.0.4

# Fyoimiya UI

Based on Vue 3, a lightweight, high-performance UI component library.

## Installation

```bash
npm install @fyoimiya-ui/components
```

> Note: Installing `@fyoimiya-ui/components` will automatically install the theme package `@fyoimiya-ui/theme-chalk`.

## Usage

### Global Import

```javascript
import { createApp } from 'vue'
import FyoimiyaUI from '@fyoimiya-ui/components'
import '@fyoimiya-ui/theme-chalk/dist/index.css'
import App from './App.vue'

const app = createApp(App)

app.use(FyoimiyaUI)
app.mount('#app')
```

### On-demand Import

You can import components individually:

```javascript
import { FyoButton } from '@fyoimiya-ui/components'
import '@fyoimiya-ui/theme-chalk/dist/index.css'
```

## Features

- 🚀 Built with Vue 3 Composition API
- ⚡ Powered by Vite
- 🎨 Customizable Theme (SCSS)
- 📦 Written in TypeScript

## License

MIT
npm package: @fyoimiya-ui/theme-chalk
Description: Fyoimiya UI Theme Chalk
Latest version: 1.0.4

# @fyoimiya-ui/theme-chalk

Theme package for Fyoimiya UI.

## Installation

```bash
npm install @fyoimiya-ui/theme-chalk
```

## Usage

Import the compiled CSS in your entry file:

```javascript
import '@fyoimiya-ui/theme-chalk/dist/index.css'
```

Or import SCSS source files for customization:

```scss
@use "@fyoimiya-ui/theme-chalk/src/index.scss";
```

## License

MIT
npm package: @fyrepenguin/caliber
Description: Caliber is the Editor based on tiptap
Author: @fyrepenguin
Latest version: 0.0.5

The **caliberEditor** library drives the rich text experience in the products built at [Factly](https://www.factlylabs.com).

## Installation

```
yarn add @fyrepenguin/caliber
```

## Development

Install all the dependencies by executing following command.

```
yarn
```

Running the `yarn start` command starts a React app which resides in `example` folder. Use this application to test out changes.

## Building

The caliberEditor package gets auto-published to npm for every new merge to the master branch. You can checkout the `publish` workflow in git actions to get a live update.

## Documentation

Read the docs here: https://siteurl.com.
npm package: @fyrepenguin/gatsby-source-dega
Description: <h1 align="center">   @factly/gatsby-source-dega </h1> Source from [DegaCMS](https://dega.factly.in) API in Gatsby.
Latest version: 1.0.4

<h1 align="center">
  @factly/gatsby-source-dega
</h1>
Source from [DegaCMS](https://dega.factly.in) API in Gatsby.

---

## Install

```bash
npm install --save @factly/gatsby-source-dega
```

## How to use

### Prerequisites

First, you need a way to pass environment variables to the build process, so secrets and other secured data aren't committed to source control. I recommend using [`dotenv`][dotenv] which will then expose environment variables. [Read more about dotenv and using environment variables here][envvars]. Then you can _use_ these environment variables and configure your plugin.

You'll need an `API Key` and `Space Id` from dega

Save both to your environment variable file

It should look something like this:

```
API_KEY=your-api-key-here
SPACE_ID=you-space-id-here
```

### gatsby-config

The plugin sets some defaults for the endpoints and options. Hence you can use it only with the two **mandatory** entries `apiKey` and `spaceId`.

```JS
module.exports = {
  plugins: [
    {
      resolve: '@factly/gatsby-source-dega',
      options: {
        // apiKey and spaceId are mandatory
        apiKey: process.env.API_KEY,
        spaceId: process.env.SPACE_ID,
      },
    },
  ],
}
```
npm package: @fyrepenguin/gatsby-source-youtube
Description: Sourcing youtube videos
Latest version: 1.0.2

# @fyrepenguin/gatsby-source-youtube

Source from [Youtube](https://developers.google.com/youtube/v3/getting-started) API (v3) in Gatsby.

---

## Install

```bash
npm install --save @fyrepenguin/gatsby-source-youtube
```

## How to use

### Prerequisites

First, you need a way to pass environment variables to the build process, so secrets and other secured data aren't committed to source control. I recommend using [`dotenv`][dotenv] which will then expose environment variables. [Read more about dotenv and using environment variables here][envvars]. Then you can _use_ these environment variables and configure your plugin.

You'll need an `API Key` from google and `Channel ID` from youtube channel.

1. [Create your API Key](https://developers.google.com/youtube/v3/getting-started)
2. [Get your Channel ID](https://youtube.com)
    1. Sign in to YouTube.
    2. In the top right, click your profile picture and then Settings Settings.
    3. From the left Menu, select Advanced settings.
    4. You’ll see your channel’s user and channel IDs.

3. Save both to your environment variable file

It should look something like this:

```
API_KEY=your-api-key-here
CHANNEL_ID=your-session-id-here
```


### gatsby-config

The plugin sets some defaults for the endpoints and options. Hence you can use it only with the two **mandatory** entries `apiKey` and `channelId`. 

```JS
module.exports = {
  plugins: [
    {
      resolve: '@fyrepenguin/gatsby-source-youtube',
      options: {
        // apiKey and channelId are mandatory
        apiKey: process.env.API_KEY,
        channelId: process.env.CHANNEL_ID,
      },
    },
  ],
}
```
npm package: @fyrepenguin/gatsby-theme-youtube
Description: gatsby-config  ```js module.exports = {   plugins: [     {       resolve: `@fyrepenguin/gatsby-theme-youtube`,       options: {         apiKey: YOUR_API_KEY, // mandatory         channelId:CHANNEL_ID, // mandatory         basePath: '/youtube' // 
Latest version: 1.0.4

# @fyrepenguin/gatsby-theme-youtube

gatsby-config 
```js
module.exports = {
  plugins: [
    {
      resolve: `@fyrepenguin/gatsby-theme-youtube`,
      options: {
        apiKey: YOUR_API_KEY, // mandatory
        channelId:CHANNEL_ID, // mandatory
        basePath: '/youtube' // optional, default to '/'
      }

    }
  ]
}
```