open-index/open-npm huggingface dataset:
npm package: @silintl/svelte-google-places-autocomplete
Description: A minimal port of the [Google Places Autocomplete API](https://developers.google.com/maps/documentation/javascript/places-autocomplete) as a Svelte component.
Latest version: 1.3.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# WARNING: This repo is no longer maintained

# svelte-google-places-autocomplete

A minimal port of the
[Google Places Autocomplete API](https://developers.google.com/maps/documentation/javascript/places-autocomplete)
as a Svelte component.

Inspired largely by [beyonk-adventures/svelte-googlemaps](https://github.com/beyonk-adventures/svelte-googlemaps).

## Google API Restrictions

If you restrict the Google API key you use for this (recommended), ensure you allow at least the following two APIs, since this component needs them in order to fully function:

* Maps JavaScript API
* Places API

## Example usage

```svelte
<script>
const options = {
  fields: ['address_components', 'geometry'],
  types: ['(cities)']
}
const placeholder = 'Destination city'

let locationName = localStorage.get('locationName') || ''
</script>

<GooglePlacesAutocomplete apiKey={googlePlacesApiKey} class="form-control"
                          on:place_changed={onPlaceChanged} {options}
                          on:ready={onReady} {placeholder}
                          value={locationName}
                          required
                          pattern="[a-zA-Z ]+" />
```

## Parameters

### apiKey
Your Google Places API Key.

### class
Any HTML class string to apply to the input element.

### options
The `options` that you want to pass to the Google Places Autocomplete code.

Details:
<https://developers.google.com/maps/documentation/javascript/reference/places-widget#AutocompleteOptions>

### placeholder
Any placeholder text to use. Defaults to an automatically-localized placedholder
string.

### value
The text to show in the input.

**WARNING**: You cannot bind to this. To receive data out of this component,
listen for the `place_changed` event.

### required
Require a value to be entered.

### pattern
Specifies a regular expression that is used for validation upon form submission.


## Events

### place_changed
When a location is selected, 

### ready
Fired when the component has initialized, the Google Places API has been loaded,
and this component is therefore ready for user interaction.

## Tests

### Running the tests
(Mostly) automated tests are available:

1. Run `make test`
2. Open `localhost:8086` in a browser
3. Paste in your Google Places API Key and hit `Enter`
4. Follow any instructions shown (e.g. "Please click on the first suggestion")

### Modifying the tests

The tests are defined in `test/tests.js`. See that file for examples.

## Install with [npm](https://www.npmjs.com/package/@silintl/svelte-google-places-autocomplete)

    $ npm install @silintl/svelte-google-places-autocomplete

## Contributing

Please use the included prettier config for formatting. You can also run `make format` to format all files with prettier.
npm package: @silkpay/silkpay-js
Description: SilkPay JS SDK
Author: imbober
Latest version: 1.0.0


## 安装

```JavaScript
# npm
npm install @silkpay/silkpay-js

# or pnpm
pnpm add @silkpay/silkpay-js

# or yarn
yarn add @silkpay/silkpay-js
```

## 快速开始

### 示例 - ESM （推荐）

请特别关注示例代码中标注 “⚠️ 注意” 的注释内容。

```TypeScript
import { SilkPay, EventType } from '@silkpay/silkpay-js'

// 1. 创建实例
const silkpay = SilkPay.create('flyway-direct')

// 2. 用siteId初始化
silkpay.initialize({
  siteId: 'YOUR_SITE_ID', // YOUR_SITE_ID 请联系技术人员
});

// 3. 监听回调
// 注意：⚠️ black_box 与 forter_token 均为server端所需的支付必填项
silkpay.on(EventType.GET_DATA_BLACKBOX, (data: { blackBox: string }) => {
    const black_box = data.blackBox;
    // 注意：⚠️ forter_token是从cookie中取的，不一定要在这个回调里获取。“cookie中name=forterToken的值”
    const forter_token = document.cookie
                          .split(';')
                          .find(v => v.trim().startsWith('forterToken='))?.split('=')[1] || '';
});

// 4. 启动
// 注意：⚠️ setup 只需调用一次
// 若页面整体刷新时需重新初始化，SPA 页面无需重复调用
silkpay.setup()
```

### 示例 - IIFE

```HTML
<script src="./silkpay-js.min.js"></script>
 <script>
      const silkpay = SilkPay.create('flyway-direct');
      silkpay.initialize({
        siteId: "YOUR_SITE_ID",
      });
      silkpay.on( SilkPay.EventType.GET_DATA_BLACKBOX, (data) => {
          // ...请参考“示例1 -ESM”
      });
      silkpay.setup();
    </script>
```

### 示例 - CJS

```JavaScript
const { SilkPay, EventType } = require('@silkpay/silkpay-js');
// ...请参考“示例1-ESM”
```
npm package: @silktrade/sdk
Description: SDK for the Silktrade agent-to-agent economy protocol on Solana
Latest version: 0.1.0

# @silktrade/sdk

The official SDK for [Silktrade](https://silktrade.vercel.app) — the economic layer for AI agents on Solana.

## Install

```bash
npm install @silktrade/sdk
```

## Quickstart

### Sell a skill

```ts
import { SilktradeAgent, Keypair } from '@silktrade/sdk';

const agent = new SilktradeAgent({
  wallet: Keypair.generate(),
  network: 'devnet'
});

await agent.requestAirdrop(1.0);

agent.registerSkill('hello-world', async (input) => {
  return { message: `Hello! You said: ${input.text}` };
}, {
  price: 0.001,
  description: 'A simple greeting skill'
});

await agent.connect();
agent.listen(); // Your agent is now earning
```

### Buy a skill

```ts
import { SilktradeAgent, Keypair } from '@silktrade/sdk';

const buyer = new SilktradeAgent({
  wallet: Keypair.generate(),
  network: 'devnet'
});

await buyer.requestAirdrop(1.0);
await buyer.connect();

const results = await buyer.discover('hello-world');
const contract = await buyer.propose(results[0].skills[0], {
  input: { text: 'Agent economies are real' }
});

console.log(contract.output);  // { message: "Hello! You said: Agent economies are real" }
console.log(contract.status);  // 'completed'
```

## API

### `SilktradeAgent`

```ts
new SilktradeAgent({
  wallet: Keypair,                    // Solana keypair
  network: 'devnet' | 'mainnet-beta', // Network
  apiUrl?: string,                     // Custom API endpoint
  rpcUrl?: string,                     // Custom RPC endpoint
  displayName?: string,                // Agent display name
})
```

**Methods:**

- `agent.connect()` — Connect to the network and register skills
- `agent.disconnect()` — Disconnect gracefully
- `agent.listen()` — Start listening for incoming contracts
- `agent.registerSkill(name, handler, options)` — Register a sellable skill
- `agent.removeSkill(name)` — Remove a skill
- `agent.listSkills()` — List registered skill names
- `agent.discover(query)` — Search for skills on the network
- `agent.propose(skill, { input })` — Hire an agent's skill
- `agent.requestAirdrop(amount)` — Get devnet SOL (devnet only)
- `agent.getBalance()` — Get wallet SOL balance
- `agent.publicKey` — Solana public key
- `agent.id` — Agent ID

### `SilktradeClient`

Low-level client for direct API and on-chain interaction. See [full docs](https://silktrade.vercel.app/docs).

## Links

- [Documentation](https://silktrade.vercel.app/docs)
- [GitHub](https://github.com/degenyo/silktrade)
- [Twitter](https://twitter.com/silktradeai)

## License

MIT