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

swift-rust

v1.10.2

Published

The full-stack React framework powered with Rust + Bun. TSX-first, Rust rendering, 10x faster than Next.js, single binary deploy.

Readme

swift-rust

The main swift-rust npm package. Installing it in a project gives you:

  • A swift-rust bin on PATH (or via npx swift-rust).
  • Imports for <Image>, <Font>, <Document>, <Head>, <Link>, etc.
  • A defineConfig helper for swift-rust.config.json.

The framework binary is downloaded at install time from GitHub Releases. If no prebuilt binary is available for the user's platform, cargo build is run as a fallback.

Install

npm install swift-rust
# or
bun add swift-rust
# or
yarn add swift-rust

Usage

CLI

npx swift-rust dev      # start dev server
npx swift-rust build    # production build
npx swift-rust start    # start production server
npx swift-rust info     # print environment

In code

import { Image, Inter, Document, Page, Text, View } from "swift-rust";

const inter = Inter({ subsets: ["latin"] });

export default function Home() {
  return (
    <html lang="en" className={inter.className}>
      <body>
        <Image src="/hero.jpg" width={1200} height={600} alt="Hero" priority />
      </body>
    </html>
  );
}

Subpath exports

| Path | What it exposes | | ----------------------- | -------------------------------------------------------- | | swift-rust | Everything (config, components, types). | | swift-rust/image | <Image> component + types. | | swift-rust/font | Font helpers + types. | | swift-rust/font/google| Google Fonts families. | | swift-rust/font/local | localFont for self-hosted fonts. | | swift-rust/pdf | <Document>, <Page>, <Text>, <View>. | | swift-rust/env | Env loading + SWIFT_RUST_PUBLIC_* helpers. | | swift-rust/router | Route handler types. | | swift-rust/head | <Head> metadata. | | swift-rust/link | <Link> client navigation. |

Publishing

This package is built from packages/swift-rust/ in the monorepo.

# 1. Build native binaries for all platforms
SWIFT_RUST_VERSION=0.1.0 bun run scripts/package-native.ts

# 2. Publish to npm
cd packages/swift-rust
bun publish

The prepublishOnly script runs both steps automatically.