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

@vastermortgage/email

v0.1.2

Published

Shared transactional email templates for Vaster applications

Readme

Vaster Email

Shared, typed transactional email templates for Vaster applications. Templates are built with React Email and render to both HTML and plain text. Applications remain responsible for recipients, authorization, business triggers, attachments, and delivery through AWS SES.

Development

bun install
bun run dev

The React Email preview server runs at http://localhost:3001 and includes sample data for every template.

Verification

bun run check
bun test
bun run build

Template catalog

| Template | Intended use | | --- | --- | | MagicLinkEmail | Passwordless authentication | | InvitationEmail | Product, organization, or workspace invitations | | WelcomeEmail | First-use and onboarding messages | | ApprovalRequestEmail | Requests requiring review or approval | | CommentNotificationEmail | New discussion comments | | RequestUpdatedEmail | Material changes to an existing request | | RequestApprovedEmail | Explicit approved outcome | | RequestRejectedEmail | Explicit rejected outcome | | RequestCompletedEmail | Explicit completed outcome | | WorkflowHandoffEmail | Moving work from one team or stage to another | | ProcessingCompletedEmail | Successful asynchronous jobs and document processing | | ProcessingFailedEmail | Failed jobs that may require retry or support | | FeedbackReceivedEmail | Internal product feedback reports | | ApplicationSharedEmail | Private-loan application sharing | | ApplicationStartedEmail | New private-loan application alert |

Each template has a matching render...Email helper. Renderers return { subject, html, text }, and subjects are stripped of newline characters before delivery.

Layouts

Operational notifications use InternalNotificationLayout, a compact, image-free layout intended for internal apps and team workflows. This includes approvals, comments, request status changes, workflow handoffs, processing results, feedback reports, and new-application alerts.

Account and customer-facing templates use the more prominent branded NotificationLayout. This includes magic links, invitations, welcome messages, and shared loan applications.

Both layouts are exported for app-specific templates.

Usage

import { renderMagicLinkEmail } from '@vastermortgage/email'

const message = await renderMagicLinkEmail({
  url: 'https://app.vaster.com/auth/magic-link',
  productName: 'Vaster',
  email: '[email protected]',
})

await sendEmail({
  to: '[email protected]',
  ...message,
})

Custom templates

The package also exports the branded layout and content primitives for app-specific templates:

import {
  EmailAction,
  EmailHeading,
  EmailParagraph,
  NotificationLayout,
  renderEmail,
} from '@vastermortgage/email'

function CustomEmail() {
  return (
    <NotificationLayout preview="A custom Vaster notification">
      <EmailHeading>Custom notification</EmailHeading>
      <EmailParagraph>App-specific content can still use the shared visual system.</EmailParagraph>
      <EmailAction href="https://example.com">Open item</EmailAction>
    </NotificationLayout>
  )
}

const message = await renderEmail('Custom notification', <CustomEmail />)

The package intentionally does not contain an email transport.