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

@vuecast/astro-module

v1.0.5

Published

Astro integration for Vue template syntax in .astro pages

Readme

@vuecast/astro-module (for Vue-SFC lovers)

Write Vue-template syntax inside .astro files in your Astro projects instead of Astro's JSX syntax.

Features

  • Use Vue-template syntax inside .astro files
  • Supports common Vue template features like v-if, v-for, :bind, and {{ ... }}
  • Seamless integration with Astro's build system
  • Keeps Astro frontmatter intact

Prerequisites

First, scaffold a new Astro project:

npm create astro@latest # or pnpm, bun

You do not need the Astro Vue integration unless you plan to use Vue components or .vue files in your project. See the Astro Vue integration guide.

Installation

npm install @vuecast/astro-module
# or pnpm add @vuecast/astro-module
# or bun add @vuecast/astro-module

Usage

  1. Add the integration to your astro.config.mjs:
import { defineConfig } from "astro/config";
import vuecast from "@vuecast/astro-module";

export default defineConfig({
  integrations: [vuecast()],
});
  1. Create .astro files in your src/pages directory and use Vue-template syntax below the frontmatter:
<!-- src/pages/index.astro -->
---
const isLoggedIn = true;
const fruits = ["apples", "oranges", "bananas", "cherries", "grapes"];
---

<div>
  <p v-if="isLoggedIn">Welcome back!</p>
  <h1>Hello from VueCast!</h1>
  <ul>
    <li v-for="(fruit, index) in fruits" :key="index" :data-name="fruit">
      {{ index + 1 }}: {{ fruit }}
    </li>
  </ul>
</div>

Transformed output (Astro JSX-style):

<div>
  {isLoggedIn ? (<p>Welcome back!</p>) : null}
  <h1>Hello from VueCast!</h1>
  <ul>
    {fruits.map((fruit, index) => (
      <li key={index} data-name={fruit}>
        {index + 1}: {fruit}
      </li>
    ))}
  </ul>
</div>

Notes:

  • Supported directives: v-if, v-for, :bind, and {{ ... }} interpolation.
  • @click (and other event handlers) are not executed in plain Astro HTML. They only work inside hydrated islands; the transform preserves them as data attributes (e.g. data-on-click) for later use.

How it Works

The integration:

  1. Detects Vue-template syntax inside .astro files
  2. Converts Vue template syntax to Astro/JSX-compatible syntax
  3. Keeps frontmatter unchanged
  4. Integrates with Astro's build system through Vite

License

MIT