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

@ssgoi/angular

v3.0.0

Published

Angular bindings for SSGOI - Native app-like page transitions for Angular applications

Readme

@ssgoi/angular

Angular bindings for SSGOI that give any Angular 20+ app native-feeling page and element transitions powered by the @ssgoi/core animation engine.

Installation

npm install @ssgoi/angular
# or
pnpm add @ssgoi/angular
# or
yarn add @ssgoi/angular

What You Get

  • Ssgoi directive (selector: [ssgoi]) that bootstraps the core transition context on the client and gracefully no-ops during SSR.
  • SsgoiTransition directive (selector: [ssgoiTransition]) that wires individual route containers into the transition system.
  • TransitionDirective (selector: [transition]) for running element-level in/out animations with spring physics.
  • injectSsgoi() helper and SSGOI_CONTEXT injection token for retrieving transition definitions anywhere in your component tree.
  • Re-exported transition factories and presets under @ssgoi/angular/view-transitions, @ssgoi/angular/transitions, and @ssgoi/angular/presets.

Quick Start

1. Provide the transition context once

import { Component, signal } from "@angular/core";
import { RouterOutlet } from "@angular/router";
import { Ssgoi, SsgoiConfig } from "@ssgoi/angular";
import { fade } from "@ssgoi/angular/view-transitions";

@Component({
  selector: "app-root",
  standalone: true,
  imports: [RouterOutlet, Ssgoi],
  template: `
    <div
      ssgoi
      [config]="ssgoiConfig()"
      style="position: relative; min-height: 100vh"
    >
      <router-outlet />
    </div>
  `,
})
export class AppComponent {
  protected readonly ssgoiConfig = signal<SsgoiConfig>({
    defaultTransition: fade(),
  });
}

2. Mark each routed view with SsgoiTransition

import { Component } from "@angular/core";
import { SsgoiTransition } from "@ssgoi/angular";

@Component({
  selector: "app-home",
  standalone: true,
  imports: [SsgoiTransition],
  template: `
    <section [ssgoiTransition]="'/home'">
      <h1>Home Page</h1>
    </section>
  `,
})
export class HomeComponent {}

The value you pass to [ssgoiTransition] should uniquely identify the view (commonly the route path).

3. (Optional) Add element-level transitions

import { Component } from "@angular/core";
import { TransitionDirective } from "@ssgoi/angular";
import { fadeIn, fadeOut } from "@ssgoi/angular/transitions";

@Component({
  selector: "app-call-to-action",
  standalone: true,
  imports: [TransitionDirective],
  template: `
    <button
      [transition]="{
        key: 'cta',
        in: fadeIn({ duration: 220 }),
        out: fadeOut({ duration: 180 })
      }"
    >
      Get Started
    </button>
  `,
})
export class CallToActionComponent {}

How It Works

  • Ssgoi wraps createSggoiTransitionContext from @ssgoi/core and injects it via SSGOI_CONTEXT. The directive guards against the server platform so SSR renders stay deterministic.
  • SsgoiTransition reads that context with injectSsgoi(), sets data-ssgoi-transition on the host, and subscribes the element to the core transition runner.
  • TransitionDirective lets any element opt into spring-driven enter/leave effects while sharing the same scheduling primitives as view transitions.

Because everything is driven by signals, Angular change detection stays minimal and the bundle remains fully tree-shakeable.

API Reference

  • Ssgoi
    • config: SsgoiConfig (input, optional) – global transition configuration. Uses {} as default.
  • SsgoiTransition
    • ssgoiTransition: string (required input) – identifier for the target view/container.
  • TransitionDirective
    • transition: TransitionDirectiveConfig (required input) – accepts any config from @ssgoi/core, plus an optional key to coordinate enter/leave pairs.
  • injectSsgoi(): SsgoiContext – returns a function that looks up transition definitions by id. During SSR it falls back to a no-op implementation so you can call it unconditionally.

Available Transitions

View-level factories:

import { fade, scroll, drill, hero, pinterest } from "@ssgoi/angular/view-transitions";

Element-level factories:

import {
  fadeIn,
  fadeOut,
  slideUp,
  slideDown,
  slideLeft,
  slideRight,
  scaleIn,
  scaleOut,
  bounce,
  blur,
  rotate,
} from "@ssgoi/angular/transitions";

Presets that combine common configurations:

import { marketingPreset, dashboardPreset } from "@ssgoi/angular/presets";

Sample Configuration

import { fade, scroll } from "@ssgoi/angular/view-transitions";
import type { SsgoiConfig } from "@ssgoi/angular";

export const config: SsgoiConfig = {
  defaultTransition: fade(),
  transitions: [
    {
      from: "/home",
      to: "/about",
      transition: scroll({ direction: "up" }),
      symmetric: true,
    },
  ],
};

License

MIT © MeurSyphus

Links