
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
super-navigation
Advanced tools
SuperNavigation is a powerful, customizable navigation library for Svelte and SvelteKit applications. It aims to bring a mobile UX to the web, making PWAs one step closer to a true native experience.
Not ready for production, Documentation is under progress
To install SuperNavigation, run the following command:
npm install super-navigation
Or if you're using Yarn:
yarn add super-navigation
You can find a full working example at https://github.com/0xDjole/super-navigation/tree/master/src/routes. Pull https://github.com/0xDjole/super-navigation and run npm run dev to play with the very basic example.
<script lang="ts">
import { navigation } from 'super-navigation';
</script>
<Stack
defaultIndex={0}
screens={[
{
component: FakeScreen,
title: 'Screen 1',
headerClass: 'bg-gray-500 border-solid border-b-2 border-gray-300',
path: '/'
},
{
component: FakeScreen2,
title: 'Screen 2',
path: '/screen2',
headerClass: 'bg-gray-500 border-solid border-b-2 border-gray-300',
backDefault: '/'
}
]}
/>
FakeScreen component
<script lang="ts">
import { onMount } from 'svelte';
import { navigation } from 'super-navigation';
onMount(() => {
navigation?.loadUp();
});
</script>
<div style="height: 100%; background-color: red;">
<span class="text-white">Screen 1</span>
<div>
<button class="bg-green-300 p-3" on:click={() => navigation?.navigate('/screen2')}>
Go to screen 2
</button>
</div>
</div>
navigation.navigate('/path')This is how you are navigating to different screens.
navigation.getSearchParam('param')Get the current query parameters
navigation.back();Go to the previous screen
navigation.loadUp();SuperNavigation is optimized for SvelteKit, allowing for server-side rendering of the initial screen with regular +page.svelte from the routes. You then switch to client-side navigation navigation.loadUp() and perform regular navigation with navigation.navigate('/path').
This project is licensed under the MIT License - see the LICENSE.md file for details.
FAQs
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.