npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tauri-plugin-axum-api

v0.8.0

Published

Call your Axum router directly — just like a local database, not a remote server.

Readme

tauri-plugin-axum

Crates.io Version NPM Version

Call your Axum router directly — just like a local database, not a remote server.


Features

  • Custom protocol registration

    // Important: if you use a custom protocol, register it *before* the setup hook.
    // https://docs.rs/tauri/2.8.2/tauri/plugin/struct.Builder.html#known-limitations
    tauri::Builder::default().plugin(tauri_plugin_axum::init(Router::new()))

Once registered, you can access your Axum routes via:

  • macOS, iOS, and Linux: axum://localhost/<path>
  • Windows and Android: http://axum.localhost/<path> (default)

Note: Custom protocols currently do not support streaming. (#1404)

  • stream body support

    Supports streaming responses using either the provided fetch API or an Axios adapter:

    import { fetch } from "tauri-plugin-axum-api/fetch";
    import { Adapter } from "tauri-plugin-axum-api/axios";

Installation

Automatic

pnpm tauri add axum

or Manual

Rust crate:

cargo add tauri-plugin-axum

npm package:

pnpm i tauri-plugin-axum-api

Add required capability in src-tauri/capabilities/default.json:

{
  // ...
  "permissions": ["axum:default"],
  // ...
}

Usage Example

// URI scheme protocols are registered when the WebView is created.
// If the plugin is registered after a WebView has been created,
// the protocol will not be available.
//
// macOS, iOS, Linux: axum://localhost/<path>
// Windows, Android: http://axum.localhost/<path> (default)

tauri::Builder::default().plugin(tauri_plugin_axum::init(axum::Router::new()));
window.fetch("http://axum.localhost/");

import { fetch } from "tauri-plugin-axum-api/fetch";

fetch("/", { method: "GET" })
  .then((res) => res.text())
  .then((res) => console.log(res));

// Using Axios adapter
import axios from "axios";
import { Adapter } from "tauri-plugin-axum-api/axios";

const instance = axios.create({ adapter: Adapter });

Example Project

Run Example

git clone https://github.com/mcitem/tauri-plugin-axum
cd tauri-plugin-axum
pnpm install
pnpm build
pnpm --filter tauri-app install
pnpm --filter tauri-app tauri dev