open-index/open-npm huggingface dataset:
npm package: @graphee/cli
Description: > TODO: description
Author: Trevor Harwell
Latest version: 5.0.0

# `@graphee/cli`

> TODO: description

## Usage

```
const cli = require('@graphee/cli');

// TODO: DEMONSTRATE API
```

## Overriding config

create file in root called `grapheeConfig.ts
```
import { UserDto } from 'users';
import { TenantDto } from 'tenants';

interface AddPlugin {
  add: { content: string[] };
}

type ConfigObject = {
  plugins?: AddPlugin[] | undefined;
  config: {
    [key: string]: string | boolean | Record<string, string>;
    mappers: Record<string, string>;
  };
};

type FullConfig = {
  react?: ConfigObject | undefined;
  client?: ConfigObject | undefined;
  server?: ConfigObject | undefined;
};

const Config: FullConfig = {
  server: {
    plugins: [
      {
        add: { content: ["import { random } from 'module';"] },
      },
    ],
    config: {
      mappers: {
        Tenant: 'TenantDto',
        User: 'UserDto',
      },
    },
  },
  client: {
    config: {
      mappers: {
        Tenant: 'TenantDto',
      },
    },
  },
  react: {
    config: {
      mappers: {
        User: 'UserDto',
      },
    },
  },
};

export default Config;
```
Imports will be automatically added if the Object exists in the Mappers.
npm package: @graphen.ai/aiia-sdk
Description: AIIA SDK powered by Graphen
Author: Jay Huang
Latest version: 1.0.20

# AIIA SDK

AIIA SDK provided by Graphen

## 安裝方式(How to install)

使用 npm 安裝：

```bash
npm install @graphen.ai/aiia-sdk
```

或 yarn：

```bash
yarn add @graphen.ai/aiia-sdk
```

## 使用說明(Instructions)

### 瀏覽器端(Browser)

```typescript
import { initSdk } from '@graphen.ai/aiia-sdk/browser';

const sdk = initSdk({ 
    worklet_url: "<Please copy '@graphen.ai/aiia-sdk/dist/aiia-worklet.js' to your project's public folder and provide the source url>"
});
sdk.start()
```

### Node.js 端

```typescript
import { aiiaCore } from '@graphen.ai/aiia-sdk/node';

const core = aiiaCore({ group_id: "<Your Token>" });
```

## 錯誤碼(Error Codes)

| 錯誤碼(Error Codes) | 描述 | desc |
|---|---|---|
| ERROR CODE: 500 | 網絡錯誤 | Network Error |
| ERROR CODE: 1001 | 環境錯誤(browser) | Environment Error - Browser |
| ERROR CODE: 1002 | Worklet模組載入失敗 | Worklet Module Loading Failed |
| ERROR CODE: 1003 | 未獲得媒體裝置權限 | Media Device Permission Not Granted |
| ERROR CODE: 1004 | 實例已摧毀 | Instance Destroyed |
| ERROR CODE: 2001 | 環境錯誤(nodejs) | Environment Error - Node.js |
| ERROR CODE: 2002 | 未提供憑證 | Credentials Not Provided |
| ERROR CODE: 2003 | 獲取權杖失敗 | Failed to Obtain Token |
| ERROR CODE: 2004 | 沒有可用專案 | No Available Project |
| ERROR CODE: 2005 | 重複初始化 | Duplicate Initialization |

## 訊息碼(Message Codes)

| 訊息碼(Message Codes) | 描述 | desc |
|---|---|---|
| CODE: 1000 | 通道、雲端服務、麥克風都已就緒 | Channel, Cloud Service, Microphone Ready |
| CODE: 1001 | 未取得媒體裝置權限，請重新設定或忽略此訊息 | Media Device Permission Not Granted, Please Reconfigure or Ignore This Message |
| CODE: 1002 | 請訂閱專案列表 | Please Subscribe to Project List |
| CODE: 1010 | 初始化必要依賴 | Initializing Required Dependencies |
| CODE: 1011 | 指定依賴已完成 | Specified Dependencies Completed |
| CODE: 1012 | 啟動SDK | Starting SDK |
| CODE: 1013 | 結束SDK | Ending SDK |
| CODE: 1014 | 已啟動SDK | SDK has been started |
| CODE: 2000 | 安全的關閉連線 | Safely Closing Connection |
| CODE: 2001 | 無副作用的關閉連線 | Closing Connection Without Side Effects |
| CODE: 2002 | 與雲端的服務中斷 | Disconnected from Cloud Service |
| CODE: 2003 | 沒有授權，請聯繫Graphen | No Authorization, Please Contact Graphen |
| CODE: 2004 | 自動重新連線雲端服務 | Automatically Reconnecting to Cloud Service |
| CODE: 2005 | 未預期的斷線，請聯繫Graphen | Unexpected Disconnection, Please Contact Graphen |
| CODE: 2010 | 開始初始化必要模組 | Starting Initialization of Required Modules |
| CODE: 2011 | 指定模組初始化完成 | Specified Module Initialization Completed |
| CODE: 2012 | 啟動服務 | Starting Service |
| CODE: 2013 | 服務結束 | Service Ended |

## 授權條款(LICENSE)

本專案採用 MIT 授權。詳見 [LICENSE](./LICENSE) 檔案。

This project is licensed under the MIT License. See the [LICENSE](./LICENSE) file for details.
npm package: @grapheng/time
Description: Time types for GraphQL
Latest version: 2.0.1

# Moar Types

A library of custom GraphQL types.

### Install

_TODO_: Make a real package on npmjs.

For now...

`npm pack` this lib up.

`npm install --save ../wherever/moar-types-1.0.0.tgz`

### Use

There are 2 main ways of getting these types in your project.

1. Import ALL typeDefs and resolvers:

```javascript
import * as MoarTypes from 'moar-types'

const mySchema = makeExecutableSchema({
	typeDefs: gql`
		${MoarTypes.typeDefs}
		${myApplicationTypeDefs}
	`,
	resolvers: {
		...MoarTypes.resolvers,
		...myApplicationResolvers
	}
})
```

2. Import individual typeDefs and resolvers:

```javascript
import { FormattedDuration } from 'moar-types'

const mySchema = makeExecutableSchema({
	typeDefs: gql`
		${FormattedDuration.typeDefs}
		${myApplicationTypeDefs}
	`,
	resolvers: {
		FormattedDuration: FormattedDuration.resolvers,
		...myApplicationResolvers
	}
})
```

Or if you don't use SDL+Resolvers

```javascript
import { FormattedDate } from 'moar-types'

const mySchema = new GraphQLSchema({
	query: new GraphQLObjectType({
		name: 'Query',
		fields: {
			twoHoursAgo: {
				type: new GraphQLNonNull(FormattedDate.FormattedDate),
				resolve: () => getTwoHoursAgo()
			}
		}
	})
})
```
npm package: @grapheng/units
Description: GraphQL types for common units of measurements
Latest version: 0.0.5

# Units

An experimental collection of GraphQL Types to represent units of measurement in various systems.

# Getting Started

#### Install

`npm i -D @grapheng/units`

#### Use

Output types: Minimal Example:

```javascript
import { Distance, Rounding } from "@grapheng/units";

const schema = makeExecutableSchema({
  typeDefs: gql`
    ${Distance.GraphQL.outputType.typeDefs}
    ${Rounding.typeDefs}

    type Query {
      myQuery: DistanceOutput!
    }
  `,
  resolvers: {
    DistanceOutput: Distance.GraphQL.outputType.resolvers,
    Query: {
      myQuery: () => ({ meters: 3 })
    }
  }
});
```

For Input types, writing

```javascript
import { Distance } from "@grapheng/units";

gql`
  ${Distance.GraphQL.inputType.typeDefs}
`;
```

into your schema is enough to start using `DistanceInput` anywhere. However, the library also exports a convenience function with each module to help use the type in your code.

Below is an example that offers a flexible API for input (for example `{ feet: 4, inches: 2 }`) but uses this function to convert it ultimately to millimeters (4 feet 2 inches => 1270 millimeters)

```javascript
import { Distance } from "@grapheng/units";

const resolvers = {
  Mutations: {
    addPieceOfLumberToInventory: (source, args, context) =>
      context.DB.addPieceOfLumberToInventory(
        args.boardType,
        Distance.convertInput(args.boardLength).millimeters
      )
  }
};
```

#### Experiment

`cd` into this package and `npm run start` then open `http://localhost:4000/graphql` in your browser

# Further Development TODOs

#### Bugs

- fix `moment` library drift (1000 years -> milliseconds -> years)

#### General Improvements

- make types better

#### Implement new types

- location -> tries to go out and get stuff async
- price / or specific types like dollar?

#### Complete API Re-Design:

- export each package individually?
- investigate making graphql queries completely flexible (e.g. fuel efficiency -> miles per gallon, or km per milliliter, etc.)
npm package: @graphext/cuery
Description: Cuery tools for AI-powered keyword research and brand analysis
Latest version: 0.10.6

# Cuery

[![JSR](https://jsr.io/badges/@graphext/cuery)](https://jsr.io/@graphext/cuery)
[![npm](https://img.shields.io/npm/v/@graphext/cuery)](https://www.npmjs.com/package/@graphext/cuery)
[![Release](https://github.com/graphext/cueryjs/actions/workflows/release.yml/badge.svg)](https://github.com/graphext/cueryjs/actions/workflows/release.yml)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)

Internal utilities for data processing and analysis.

## Installation

```bash
deno add @graphext/cuery
```

## Requirements

- Deno runtime
- `OPENAI_API_KEY` environment variable

## License

Proprietary - Graphext