tauri-app-localhost

Serve your Tauri v2 frontend via a localhost server using the localhost plugin for frameworks requiring a server. Use when your frontend framework needs a local HTTP server, separating dev/production localhost behavior, or controlling port exposure.

261 stars

Best use case

tauri-app-localhost is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Serve your Tauri v2 frontend via a localhost server using the localhost plugin for frameworks requiring a server. Use when your frontend framework needs a local HTTP server, separating dev/production localhost behavior, or controlling port exposure.

Serve your Tauri v2 frontend via a localhost server using the localhost plugin for frameworks requiring a server. Use when your frontend framework needs a local HTTP server, separating dev/production localhost behavior, or controlling port exposure.

Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.

Practical example

Example input

Use the "tauri-app-localhost" skill to help with this workflow task. Context: Serve your Tauri v2 frontend via a localhost server using the localhost plugin for frameworks requiring a server. Use when your frontend framework needs a local HTTP server, separating dev/production localhost behavior, or controlling port exposure.

Example output

A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.

When to use this skill

  • Use this skill when you want a reusable workflow rather than writing the same prompt again and again.

When not to use this skill

  • Do not use this when you only need a one-off answer and do not need a reusable workflow.
  • Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/tauri-app-localhost/SKILL.md --create-dirs "https://raw.githubusercontent.com/partme-ai/full-stack-skills/main/skills/tauri-skills/tauri-app-localhost/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/tauri-app-localhost/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How tauri-app-localhost Compares

Feature / Agenttauri-app-localhostStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Serve your Tauri v2 frontend via a localhost server using the localhost plugin for frameworks requiring a server. Use when your frontend framework needs a local HTTP server, separating dev/production localhost behavior, or controlling port exposure.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

## When to use this skill

**ALWAYS use this skill when the user mentions:**
- Serving frontend via localhost in a Tauri app
- Local server exposure and port configuration
- Dev vs production localhost behavior differences

**Trigger phrases include:**
- "localhost", "local server", "localhost plugin", "port", "serve frontend"

## How to use this skill

1. **Install the localhost plugin**:
   ```bash
   cargo add tauri-plugin-localhost
   ```
2. **Register the plugin** with a specific port in your Tauri builder:
   ```rust
   tauri::Builder::default()
       .plugin(tauri_plugin_localhost::Builder::new(3030).build())
   ```
3. **Configure the frontend URL** in `tauri.conf.json` for production:
   ```json
   { "build": { "frontendDist": "../dist" } }
   ```
4. **Bind only to 127.0.0.1** to prevent external access to the local server
5. **Separate dev-mode access** (Vite dev server on port 5173) from production (localhost plugin on a fixed port)
6. **Audit access patterns** to ensure minimal exposure in production builds

## Outputs

- Localhost plugin configuration with fixed port
- Dev vs production server separation
- Security checklist for minimal exposure

## References

- https://v2.tauri.app/plugin/localhost/

## Keywords

tauri localhost, local server, port, serve frontend, dev server

Related Skills

tauri

261
from partme-ai/full-stack-skills

Primary index and router for all Tauri v2 framework skills covering Rust backend, frontend integration, and the full plugin ecosystem. Use when any Tauri-related request is made to route to the correct specialized sub-skill with local examples and templates.

tauri-window

261
from partme-ai/full-stack-skills

Create and configure Tauri v2 windows including multi-window patterns, custom titlebars, and frameless window UI. Use when creating new windows, managing window lifecycle events, implementing custom titlebar drag regions, or building multi-window architectures.

tauri-setup

261
from partme-ai/full-stack-skills

Install Tauri v2 prerequisites and configure the development environment across macOS, Windows, Linux, Android, and iOS. Use when setting up Rust toolchain, Node.js, platform build tools, or mobile development prerequisites (Xcode, Android Studio).

tauri-security

261
from partme-ai/full-stack-skills

Configure Tauri v2 capabilities, scoped access rules, and ACL-based permission control for production apps. Use when generating capabilities/default.json, defining scoped access per plugin, or auditing permissions for minimum-privilege compliance.

tauri-scaffold

261
from partme-ai/full-stack-skills

Scaffold a Tauri v2 project with create-tauri-app, configure project structure, and set up static export for frontend frameworks. Use when creating a new project, understanding the Tauri project structure, or configuring SSG/static export for Next.js or SvelteKit.

tauri-mobile

261
from partme-ai/full-stack-skills

Set up Tauri v2 for Android and iOS development including build configuration, bundle identifiers, and mobile debugging. Use when adding mobile targets to a Tauri app, configuring Android/iOS bundle IDs, or debugging on mobile devices and emulators.

tauri-ipc

261
from partme-ai/full-stack-skills

Implement frontend-to-Rust IPC using invoke calls, Tauri commands, and type-safe bindings in Tauri v2. Use when defining Rust commands callable from the frontend, setting up typed IPC contracts, or implementing bidirectional event-based communication.

tauri-framework-upgrade

261
from partme-ai/full-stack-skills

Migrate Tauri apps from v1 to v2 or from v2 beta to v2 stable, handling breaking changes in config, plugins, and permissions. Use when upgrading Tauri versions, resolving migration errors, or updating config/capability formats for v2.

tauri-framework-security

261
from partme-ai/full-stack-skills

Harden a Tauri v2 app with baseline security controls including CSP, HTTP headers, runtime authority, and capability matrices. Use when performing security audits, configuring CSP/headers per window, or building a minimum-privilege capability matrix for production.

tauri-config

261
from partme-ai/full-stack-skills

Configure tauri.conf.json for Tauri v2 apps including app metadata, build settings, plugins, CSP, and platform-specific sections. Use when editing tauri.conf.json, migrating config from v1 to v2, or setting up CSP and platform-specific configuration.

tauri-concept

261
from partme-ai/full-stack-skills

Explain Tauri v2 architecture concepts including the process model, IPC isolation, and brownfield integration patterns. Use when understanding how Tauri works internally, choosing between isolation and brownfield modes, or making architecture decisions before implementation.

tauri-build

261
from partme-ai/full-stack-skills

Build production-ready Tauri v2 app bundles with code signing and distribution packaging for all platforms. Use when creating release builds, configuring code signing for macOS/Windows, or setting up CI pipelines for app distribution.