open-index/open-npm huggingface dataset:
npm package: @gomry/analytics
Description: Gomry Analytics SDK for conversion tracking in sponsored cashback campaigns
Author: Gomry
Latest version: 1.0.0

# @gomry/analytics

Official Gomry Analytics SDK for conversion tracking in sponsored cashback campaigns.

## Installation

```bash
npm install @gomry/analytics
# or
yarn add @gomry/analytics
# or
pnpm add @gomry/analytics
```

## Quick Start

### React / Next.js

```tsx
// app/layout.tsx or _app.tsx
import { GomryAnalyticsProvider } from '@gomry/analytics/react';

export default function RootLayout({ children }) {
  return (
    <GomryAnalyticsProvider 
      offerId="your-offer-id"
      allowedDomains={['yourdomain.com']}
    >
      {children}
    </GomryAnalyticsProvider>
  );
}
```

```tsx
// In your signup/conversion component
import { useGomryAnalytics } from '@gomry/analytics/react';

function SignUpPage() {
  const analytics = useGomryAnalytics();

  const handleSignUp = async (userData) => {
    // Your signup logic...
    const user = await createUser(userData);
    
    // Track the conversion
    await analytics.trackLead({
      eventName: 'Sign Up',
      customerExternalId: user.id,
    });
  };

  return <form onSubmit={handleSignUp}>...</form>;
}
```

### Vanilla JavaScript

For non-React projects, use the script tag:

```html
<script 
  src="https://www.gomry.com/analytics/script.js" 
  data-offer-id="your-offer-id"
  data-domains='["yourdomain.com"]'
></script>

<script>
  // After user completes action
  window.GomryAnalytics.trackLead({
    eventName: 'Sign Up',
    customerExternalId: 'user-123',
  });
</script>
```

## How It Works

1. User clicks a Gomry cashback offer → redirected to your site with `?gomry_id=<uid>`
2. SDK captures the `gomry_id` and stores it in a first-party cookie
3. User completes your required action (signup, purchase, etc.)
4. You call `trackLead()` or `trackSale()` to report the conversion
5. Gomry verifies and processes the cashback payout

## API Reference

### GomryAnalyticsProvider (React)

```tsx
<GomryAnalyticsProvider
  offerId="required"           // Your offer ID
  allowedDomains={['...']}     // Domains for validation
  apiHost="https://..."        // Optional: custom API host
  cookieExpiryDays={90}        // Optional: cookie expiry
  cleanUrl={false}             // Optional: remove gomry_id from URL
  debug={false}                // Optional: enable console logging
>
```

### useGomryAnalytics()

```tsx
const analytics = useGomryAnalytics();

// Get current gomry_id
const id = analytics.getGomryId();

// Track a lead conversion
await analytics.trackLead({
  eventName: 'Sign Up',
  customerExternalId: 'user-123',
  metadata: { plan: 'premium' },
});

// Track a sale conversion
await analytics.trackSale({
  eventName: 'Purchase',
  orderId: 'order-456',
  amount: 2999,  // in cents
  currency: 'USD',
  customerExternalId: 'user-123',
});

// Clear the tracking cookie
analytics.clearId();
```

## Server-Side Tracking

For more secure server-side tracking, use our webhook API. See the [full documentation](https://www.gomry.com/advertiser/docs/tracking-guide).

## License

MIT
npm package: @gomus/auth
Description: gomus - the auth framework
Author: Douglas Ward
Latest version: 0.1.6

# @gomus/auth

Token based authentication service for Angular2 with multiple user support. Angular2-Token works best with the [devise token auth](https://github.com/lynndylanhurley/devise_token_auth) gem for Rails.
Angular2-Token is currently in Beta. Any contribution is much appreciated.

This is a forked version of [Angular2-Token](https://raw.githubusercontent.com/neroniaky/angular2-token) which fixes some issues and supports angular 5.

*Note: the A2tUiModule and oAuth are not yet implemented*

## Installation

To install this library, run:

```bash
$ npm install @gomus/auth --save
```

## Consuming your library

Once you have published your library to npm, you can import your library in any Angular application by running:

```bash
$ npm install @gomus/auth
```

and then from your Angular `AppModule`:

```typescript
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { SampleModule } from '@gomus/auth';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,

    // Specify your library as an import
    LibraryModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
```

The auth-guard can be customised as such:

```typescript
@Injectable()
export class IntonationsAuthGuard extends AuthGuard {

  constructor(auth: AuthService, router: Router, private config: ConfigService) {
    super(auth, router);
  }

  userNotPresent(url: string): boolean {
    localStorage.setItem('go-redirect-url', url);
    if (new Date(this.config.getSetting('cutoff_date')) > new Date()) {
      this.router.navigate(['/code']);
      return false;
    } else {
      this.router.navigate(['/user']);
      return false;
    }
  }
}
```
and editing your AppModule providers to include:

```typescript
{provide: AuthGuard, useClass: IntonationsAuthGuard}
```


## Development

To generate all `*.js`, `*.d.ts` and `*.metadata.json` files:

```bash
$ npm run build
```

To lint all `*.ts` files:

```bash
$ npm run lint
```

## License

MIT © See [License](https://github.com/giantmonkey/gomus-components/blob/master/LICENSE)
npm package: @gomus/common
Description: The sources for this package are in the main [go~mus components](https://github.com/giantmonkey/gomus-components) repository. Please file issues and pull requests against there.
Author: Douglas Ward
Latest version: 0.1.10

# @gomus/common

The sources for this package are in the main [go~mus components](https://github.com/giantmonkey/gomus-components) repository.
Please file issues and pull requests against there.

## Installation

To install this library, run:

```bash
$ npm install @gomus/common --save
```

## License

MIT © [Douglas Ward](mailto:douglas+npm@giantmonkey.de)
npm package: @gomus/forms
Description: The sources for this package are in the main [go~mus components](https://github.com/giantmonkey/gomus-components) repository. Please file issues and pull requests against there.
Author: Douglas Ward
Latest version: 0.1.3

# @gomus/forms

The sources for this package are in the main [go~mus components](https://github.com/giantmonkey/gomus-components) repository.
Please file issues and pull requests against there.

## Installation

To install this library, run:

```bash
$ npm install @gomus/forms --save
```

## License

MIT © [Douglas Ward](mailto:douglas+npm@giantmonkey.de)
npm package: @gonation/gonation-theme-canvas
Description: ## Quick Start
Author: GoNation
Latest version: 0.0.4

# The smallest possible Gatsby theme

## Quick Start

```shell
mkdir my-site
cd my-site
yarn init
# install gatsby-theme-minimal and it's dependencies
yarn add gatsby react react-dom gatsby-theme-minimal
```

Then add the theme to your `gatsby-config.js`. We'll use the long-form
here for educational purposes.

```javascript
module.exports = {
  plugins: [
    {
      resolve: "gatsby-theme-minimal",
      options: {},
    },
  ],
}
```

That's it, you can now run your gatsby site using

```shell
yarn gatsby develop
```

Note that this site doesn't _do_ anything, so you're seeing a missing
resources error. Create a simple page in `src/pages/index.js` to see a
page on the root url.

```jsx
import React from "react"

export default function Home() {
  return <div>My Site!</div>
}
```

## Doing more with themes

You can use this as a place to start when developing themes. I
generally suggest using [yarn
workspaces](https://yarnpkg.com/lang/en/docs/workspaces/) like the
[gatsby-theme-examples repo
does](https://github.com/ChristopherBiscardi/gatsby-theme-examples),
but using `yarn link` or `npm link` is a viable alternative if you're
not familiar with workspaces.
npm package: @gonation/theme-gntv
Description: ## Quick Start
Author: Eric Smith
Latest version: 1.0.2

# GoNation TV Theme

## Quick Start

```shell
mkdir my-site
cd my-site
yarn init
# install theme-gntv and it's dependencies
yarn add gatsby react react-dom theme-gntv
```

Then add the theme to your `gatsby-config.js`. We'll use the long form
here for education purposes.

```javascript
module.exports = {
  plugins: [
    {
      resolve: "theme-gntv",
      options: {},
    },
  ],
}
```

That's it, you can now run your gatsby site using

```shell
yarn gatsby develop
```

Note that this site doesn't _do_ anything, so you're see a missing
resources error. Create a simple page in `src/pages/index.js` to see a
page on the root url.

```javascript
import React from "react"

export default () => <div>My Site!</div>
```

## Doing more with themes

You can use this as a place to start when developing themes. I
generally suggest using [yarn
workspaces](https://yarnpkg.com/lang/en/docs/workspaces/) like the
[gatsby-theme-examples repo
does](https://github.com/ChristopherBiscardi/gatsby-theme-examples),
but using `yarn link` or `npm link` is a viable alternative if you're
not familiar with workspaces.
npm package: @gondolafinance/sdk
Description: 🛠 An SDK for building applications on top of Gondola Finance.
Latest version: 1.0.1

# Pancakeswap SDK

Forked from the [Uniswap SDK](https://github.com/Uniswap/uniswap-v2-sdk/commit/a88048e9c4198a5bdaea00883ca00c8c8e582605).

You can refer to the Uniswap SDK documentation [uniswap.org](https://uniswap.org/docs/v2/SDK/getting-started/).

## Running tests

To run the tests, follow these steps. You must have at least node v10 and [yarn](https://yarnpkg.com/) installed.

First clone the repository:

```sh
git clone https://github.com/pancakeswap/pancakeswap-sdk.git
```

Move into the pancakeswap-sdk working directory

```sh
cd pancakeswap-sdk/
```

Install dependencies

```sh
yarn install
```

Run tests

```sh
yarn test
```

You should see output like the following:

```sh
yarn run v1.22.4
$ tsdx test
 PASS  test/constants.test.ts
 PASS  test/pair.test.ts
 PASS  test/fraction.test.ts
 PASS  test/miscellaneous.test.ts
 PASS  test/entities.test.ts
 PASS  test/trade.test.ts

Test Suites: 1 skipped, 6 passed, 6 of 7 total
Tests:       3 skipped, 82 passed, 85 total
Snapshots:   0 total
Time:        5.091s
Ran all test suites.
✨  Done in 6.61s.
```
npm package: @gonetone/get-youtube-id-by-url
Description: Get YouTube channel or video id by url!
Author: 張文相 Wenxiang Zhang
Latest version: 2.0.0

# Get YouTube ID By Url (npm Package)

Get YouTube channel or video id by url!

## Report Issues

Please report any bugs you discover at <https://github.com/GoneToneStudio/node-get-youtube-id-by-url/issues>

## Installation

Node.js 12.0.0 or newer is required.

### npm

```sh-session
npm install @gonetone/get-youtube-id-by-url
```

### Yarn

```sh-session
yarn add @gonetone/get-youtube-id-by-url
```

## Usage

### Import package

ES Module (ESM)

```js
import { channelId, videoId } from '@gonetone/get-youtube-id-by-url';
```

CommonJS (CJS)

```js
const { channelId, videoId } = require('@gonetone/get-youtube-id-by-url');
```

### Get YouTube Channel ID By Url

```js
channelId('YouTube Channel Url').then((id) => {
  console.log(id);
});
```

Support URL format:

- https://www.youtube.com/channel/xxxxxxxxxxxxxxxxxxxxxxxx
- https://www.youtube.com/c/xxxxxxxx
- https://www.youtube.com/user/xxxxxxxx

### Get YouTube Video ID By Url

```js
videoId('YouTube Video Url').then((id) => {
  console.log(id);
});
```

Support URL format:

- https://www.youtube.com/watch?v=xxxxxxxxxxx
- https://youtu.be/xxxxxxxxxxx

## License

[MIT](LICENSE)
npm package: @gonetone/mcp-server-taiwan-weather
Description: 用於取得臺灣中央氣象署 API 資料的 Model Context Protocol (MCP) Server
Author: 張文相 Wenxiang Zhang
Latest version: 0.1.4

# 臺灣氣象 - 中央氣象署 MCP Server (非官方)

用於取得臺灣中央氣象署 API 資料的 Model Context Protocol (MCP) Server。

### Model Context Protocol (MCP) 是什麼？

MCP 是一個開放協議，它標準化了應用程式如何為大型語言模型 (LLMs) 提供上下文。可以將 MCP 想像成 AI 應用程式的 USB-C 接口。就像 USB-C 為您的設備提供了一種標準化的方式來連接各種外圍設備和配件，MCP 提供了一種標準化的方式來將 AI 模型連接到不同的數據源和工具。

詳細介紹請參考 [Model Context Protocol](https://modelcontextprotocol.io/introduction) 官方頁面。

## 功能

- 取得臺灣各縣市天氣預報資料 - 今明 36 小時天氣預報

## API

### Tools

1. `get_taiwan_weather_forecast`
   - 取得臺灣各縣市天氣預報資料 - 今明 36 小時天氣預報
   - 輸入參數：
     - `locationName` (string): 臺灣縣市名稱
   - 返回值：中央氣象署 API `F-C0032-001` 資料 Json (key records)

## 對話例子

### 取得臺灣各縣市天氣預報資料 - 今明 36 小時天氣預報
- 高雄今天天氣如何呢？
- 我想知道屏東的天氣
- 台北氣象預報

## 設置

### 臺灣中央氣象署 API 授權碼

您必須先取得臺灣中央氣象署 API 授權碼：
- 前往 https://opendata.cwa.gov.tw/user/authkey (需登入帳號，沒有的話請註冊)
- 點擊 "取得授權碼" 按鈕
- 複製授權碼

### 用於 Claude Desktop 或其他支援 MCP 的應用程式

要在 Claude Desktop 中使用，請將以下內容添加到您的 `claude_desktop_config.json`：

```json
{
  "mcpServers": {
    "taiwan-weather": {
      "command": "npx",
      "args": [
        "-y",
        "@gonetone/mcp-server-taiwan-weather"
      ],
      "env": {
        "CWA_API_KEY": "<您的中央氣象署 API 授權碼>"
      }
    }
  }
}
```

如果要在其他支援 MCP 的應用程式中使用，請參考該應用程式的設定文件。

## Windows npx 問題

如果在 Windows 上使用 npx 執行 MCP Server 時無法執行，可以改用以下其中一個方法嘗試：

### 使用 cmd 執行 npx

配置改用 `cmd` 執行 `npx`：

```json
{
  "mcpServers": {
    "taiwan-weather": {
      "command": "cmd",
      "args": [
        "/c",
        "npx",
        "-y",
        "@gonetone/mcp-server-taiwan-weather"
      ],
      "env": {
        "CWA_API_KEY": "<您的中央氣象署 API 授權碼>"
      }
    }
  }
}
```

### 改用 `node` 執行

將 `@gonetone/mcp-server-taiwan-weather` 全域安裝：

```bash
npm install -g @gonetone/mcp-server-taiwan-weather
```

然後配置改用 `node` 執行：

```json
{
  "mcpServers": {
    "taiwan-weather": {
      "command": "node",
      "args": [
        "<your-path>/node_modules/@gonetone/mcp-server-taiwan-weather"
      ],
      "env": {
        "CWA_API_KEY": "<您的中央氣象署 API 授權碼>"
      }
    }
  }
}
```

您可以使用 `npm root -g` 指令來查看全域安裝的 `node_modules` 目錄路徑。

## 貢獻

Issues 和 Pull requests 可以在 GitHub 上的 https://github.com/GoneTone/mcp-server-taiwan-weather 提出。

### Build

```bash
yarn build
```

### Test

可以使用 [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector) 來測試 MCP Server：

```bash
npx -y @modelcontextprotocol/inspector -e CWA_API_KEY={您的中央氣象署 API 授權碼} node .
```

詳情請參考 [MCP Inspector](https://modelcontextprotocol.io/docs/tools/inspector) 官方頁面。

## License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.