open-index/open-npm huggingface dataset:
npm package: @gemigo/extension-sdk
Description: GemiGo Extension SDK for browser extension apps
Latest version: 0.2.1

# @gemigo/extension-sdk

GemiGo Extension SDK for building apps that run inside the GemiGo browser extension.

## Installation

### CDN (Recommended)

```html
<script src="https://unpkg.com/@gemigo/extension-sdk/dist/gemigo-extension-sdk.umd.js"></script>
```

### npm

```bash
npm install @gemigo/extension-sdk
```

## Quick Start

```html
<script src="https://unpkg.com/@gemigo/extension-sdk/dist/gemigo-extension-sdk.umd.js"></script>
<script>
  // SDK auto-connects, use gemigo.extension.* APIs directly
  gemigo.extension.getPageInfo().then(console.log);
  
  // Subscribe to context menu events
  gemigo.extension.onContextMenu((event) => {
    console.log('Menu clicked:', event.menuId, event.selectionText);
  });
</script>
```

## API Reference

### Page Content Reading

| Method | Description |
|--------|-------------|
| `getPageInfo()` | Get current page URL, title, favicon |
| `getPageHTML()` | Get full page HTML content |
| `getPageText()` | Get page text content |
| `getSelection()` | Get selected text |
| `extractArticle()` | Extract article title, content, excerpt |
| `extractLinks()` | Extract all links from page |
| `extractImages()` | Extract all images from page |
| `queryElement(selector, limit?)` | Query elements by CSS selector |

### Page Manipulation

| Method | Description |
|--------|-------------|
| `highlight(selector, color?)` | Highlight elements (returns highlightId) |
| `removeHighlight(highlightId)` | Remove highlight |
| `insertWidget(html, position)` | Insert floating widget |
| `updateWidget(widgetId, html)` | Update widget content |
| `removeWidget(widgetId)` | Remove widget |
| `injectCSS(css)` | Inject CSS (returns styleId) |
| `removeCSS(styleId)` | Remove injected CSS |

### Screenshots

| Method | Description |
|--------|-------------|
| `captureVisible()` | Capture visible area screenshot |

### Events

| Method | Description |
|--------|-------------|
| `onContextMenu(handler)` | Subscribe to context menu events |
| `getContextMenuEvent()` | Get pending context menu event |

### Common APIs

| Method | Description |
|--------|-------------|
| `gemigo.notify(title, message)` | Send system notification |

## Example: Translation Bubble

```html
<script src="https://unpkg.com/@gemigo/extension-sdk/dist/gemigo-extension-sdk.umd.js"></script>
<script>
  gemigo.extension.onContextMenu(async (event) => {
    if (event.selectionText) {
      const translated = await translateText(event.selectionText);
      
      // Show translation bubble on page
      await gemigo.extension.insertWidget(
        `<div style="background:#667eea;color:#fff;padding:16px;border-radius:12px;">
          ${translated}
        </div>`,
        'bottom-right'
      );
    }
  });
</script>
```

## Example: Reader Mode

```javascript
// Inject reader-friendly CSS
const { styleId } = await gemigo.extension.injectCSS(`
  body { max-width: 720px; margin: 0 auto; font-family: Georgia, serif; }
  nav, aside, .ads { display: none !important; }
`);

// Remove later
await gemigo.extension.removeCSS(styleId);
```

## License

MIT
npm package: @geminate/block-editor
Description: This template should help get you started developing with Vue 3 in Vite.
Latest version: 0.0.0

# block-editer

This template should help get you started developing with Vue 3 in Vite.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) to make the TypeScript language service aware of `.vue` types.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
npm install
```

### Compile and Hot-Reload for Development

```sh
npm run dev
```

### Type-Check, Compile and Minify for Production

```sh
npm run build
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint
```
npm package: @geminate/t-editor
Description: ## Project setup ``` npm install ```
Latest version: 0.1.0

# t-editor

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).