Skip to content

full-stack-skills/tauri-skills / skills/tauri-app-http-client

tauri-app-http-client

Verified

Guidance for Tauri v2 http-client plugin with allowlisted requests and secure transport.

FileKindSize
LICENSE.txtmarkdown11.1 KB
SKILL.mdskill md2.1 KB
agents/openai.yamlconfig301 B
examples/usage.mdmarkdown1.3 KB
templates/capabilities.jsonconfig415 B

examples/usage.md

View on GitHub
# Usage: tauri-app-http-client

This document provides at least 5 usage examples for the **tauri-app-http-client** skill.

## Example 1: GET Request

```typescript
import { fetch } from '@tauri-apps/plugin-http';

const response = await fetch('https://api.example.com/data');
const data = await response.json();
```

## Example 2: POST Request

```typescript
import { fetch } from '@tauri-apps/plugin-http';

const response = await fetch('https://api.example.com/users', {
  method: 'POST',
  body: JSON.stringify({ name: 'Tauri' }),
  headers: { 'Content-Type': 'application/json' }
});
```

## Example 3: Request with Headers

```typescript
const response = await fetch('https://api.example.com/secret', {
  headers: {
    'Authorization': 'Bearer token'
  }
});
```

## Example 4: Set Request Timeout

```typescript
import { fetch } from '@tauri-apps/plugin-http';
// Timeout is often handled via AbortController in standard fetch API
const controller = new AbortController();
const id = setTimeout(() => controller.abort(), 5000);
await fetch(url, { signal: controller.signal });
```

## Example 5: Configure Allowed URLs

```typescript
// In src-tauri/capabilities/default.json
{
  "permissions": [
    {
      "identifier": "http:default",
      "allow": [{ "url": "https://*.example.com" }]
    }
  ]
}
```

slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 197kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall