
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
astro-vtbot
Advanced tools
No, its NOT a roBOT π€, its a π Bag of Tricks!β¨
βοΈPlease star to support this workβοΈ
The bag of tricks provides extensions & support around Astro's view transitions.
A current deployment of tech demos and the documentation can be found at https://events-3bg.pages.dev/
Ever wanted a backward slide on that link to the home page? The
BackLink
component flips the direction on selected links, giving you a backward animation on click, and a forward animation when navigating back through the browser's history.
General fixes and improvements, see CHANGELOG.
Hello Astronauts! Now this one is BIG! The
astro-vtbot
has been many things so far. Now it is also a Starlight plugin! Add the Bag to your plugin list and instantaneously turn on browser-native cross-document view transitions for your existing Starlight site!1 Starlight version >= 0.32 required!
Version 2.0.0 π of astro-vtbot is here!
The major release changes what is automatically installed if you install astro-vtbot as an Astro integration. Now installing as an integration using astro add astro-vtbot
should be your default choice for installing astro-vtbot. This gives you access to the inspection-chamber
on every page via Astro's devToolbar!
In contrast, <LoadingIndicator />
and the <Linter />
components will no longer be automatically integrated and must be explicitly added if needed, e.g. in a global Layout.astro. During a transition period, the previous behavior can still be restored using toggles in the astro.config file.
For details, see the CHANGELOG.
On the plus side: Thereβs an exciting new mode in the <TurnSignal />
component! It allows for view transition types on a per-link basis!
For further information see these demos: blog demo, @vtbag image viewer demo and the @vtbag fishpond demo.
The integration setup can now also find the
astro-inspection-chamber.js.ts
file when used in monorepos withpnpm
.
Big shout out and "Thank You!" to LuΓsa for providing this fix!
The Inspection Chamber DevTools now also work for
pnpm
projects!
Big shout out and "Thank You!" to Lukas for providing this fix!
The astro-vtbot
package isn't a monolithic library. Use the components you need and only pay bandwidth for those.
Component | Brotli bytes added |
---|---|
Animation Style β¨ | ~0.1k |
AutoNameSelected π | ~0.3k |
BackLink π | ~0.1k |
BorderControl π | ~0.1k |
BrakePad π¦₯ | ~0.2k |
CamShaft π« | ~0.6k |
ElementCrossing πΈ | ~1.2K |
InspectionChamber π¬ | ~27k |
Linter π§Ή | ~1.9k |
LoadingIndicator β³ | ~0.4k |
Move π | ~0.2k |
NoScroll π | ~0.1k |
PageOffset πβ | ~0.1k |
PointerOnNavigation π | ~0.1k |
Portal πͺ | ~0.2k |
ReplacementSwap βΉ | ~0.5k |
Starlight β¦ π | ~3.0k |
SwapSound π | -0.3k |
Swing π· | ~0.1k |
TurnSignal π | ~0.5k |
VtBotDebug π | ~2.8k |
Zoom π | ~0.1k |
Visit the documentation of the reusable components for detailed information.
<Linter/>
: A linter component that helps you identify problems when setting up transitions.
<VtBotDebug/>
: A Debugging component that logs the events and their data as they occur.
<ReplacementSwap/>
: An alterantive DOM swap(), which preserves elements in the original DOM to avoid reinitialization of iframes or CSS animations.
<LoadIndicator>
: Have you ever missed the visual feedback on sites with view transitions as to whether the app has noticed the click? You need a loading indicator! Here you go!
Zoom
, <Move>
and Swing
animations and the <AnimationsStyle/>
component allows for extended styling options.
<Portal/>
component that forces all view transitions through a portal/loading page.
<NoScroll/>
keep the current vertical and horizontal scroll position when transitioning to the next page.
The bag of tricks currently contains several technical demos that show examples of the implementation of various effects using the view transition events.
The sources are in this repository.
Last but not least, the deployment also includes the βΆ Jotter β with a wealth of information on transition events as well as background information and valuable tips & tricks on view transitions in Astro.
Some of the contents are technical demos, some are useful tools, and some are reusable components that you can use in your own project to handle edge cases that go beyond Astro's standard features.
For help, check out the Discussions
tab on the GitHub repo.
This package is maintained by martrapp independently from Astro. You're welcome to contribute by submitting an issue or opening a PR!
See CHANGELOG.md for a history of changes to this package.
On supporting browsers, which is all major browsers but Firefox, and we are looking forward to Firefox joining the team this year as well! β©
2.1.5 - 2025-06-09
FAQs
The π Bag of Tricks β¨ for Astro's View Transitions
The npm package astro-vtbot receives a total of 12,317 weekly downloads. As such, astro-vtbot popularity was classified as popular.
We found that astro-vtbot demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.