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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@bothy/aptas

v4.10.0

Published

Readme

@bothy/aptas

Extension_Winch + Dappetite

These are singletons. 1 can be installed per dapp....

This is so that it's easy to access the singleton with an import.

import { onMount, onDestroy } from 'svelte'
import * as Dappetite from '@bothy/aptas/Dappetite/index.js'	
import * as Extension_Winch from "@bothy/aptas/Extension_Winch/index.js"
import { request_ledger_info } from '@bothy/aptas/party/General/Ledger_Info.API'

import { Rise_stage_creator } from "@bothy/aptas/Extension_Winch/Stages/Rise.js"
import { Petra_stage_creator } from "@bothy/aptas/Extension_Winch/Stages/Petra.js"
import { Pontem_stage_creator } from "@bothy/aptas/Extension_Winch/Stages/Pontem.js"
import { Dev_stage } from "@bothy/aptas/Extension_Winch/Stages/Dev/index.js"

import { dev_wallet_extension } from "@bothy/aptas/Extension_Winch/Stages/Dev/extension.js"

window.dev_wallet = dev_wallet_extension ({
	account: {
		private_key: "0C1218C9ABC123C812359AB7689AB765C89EABCAD9E8CBE9F8CBE9DABC8F152C",
		public_key: "83918D60A9344D117F6EA231DA15ACEB43711124976E6EC4AC5BC7C4BC772ED5",
		// address: "991378D74FAC384404B971765BEF7525CCE26C8EFD84B9FF27D202E10D7FFBE5",
		address_legacy: "2F75DA076414103C721D195B0376C66897593B1F4E961671099A2DC9A24ADCFD"
	}
});

const env_mode = import.meta.env.VITE_DAPP_MODE;

let trucks_prepared = "nah";
onMount (async () => {
	
	////
	//
	//	Trucks
	//		The versies (roomies) truck is subscribed
	//		to the extension winch.
	//
	await Dappetite.make ({
		mode: (() => {
			return "teacher" // or "student"
		})(),
		net: async ({ nets }) => {
			const net_path = "https://api.devnet.aptoslabs.com/v1"
			const net_name = "devnet"
			
			const { enhanced } = await request_ledger_info ({ net_path })
			chain_id = enhanced.chain_id;
			
			return {
				name: "devnet",
				path: "https://api.devnet.aptoslabs.com/v1",
				chain_id: chain_id
			}
		}
	});
	await Extension_Winch.make ();
	await Extension_Winch.latch_wallets ({
		stages: [{
			name: "Petra",
			stage: Petra_stage_creator
		},{
			name: "Dev",
			stage: Dev_stage
		}]
	});
	
	trucks_prepared = "yup"
	//
	////
});

onDestroy (() => {
	Dappetite.destroy ()
	Extension_Winch.destroy ()
});
import * as Dappetite from '@bothy/aptas/Dappetite/index.js'
const dapp_network_net_path = Dappetite.freight ().dapp_network.net_path;
const dapp_network_net_name = Dappetite.freight ().dapp_network.net_name;
const dapp_network_chain_id = Dappetite.freight ().dapp_network.chain_id;
const dapp_mode = Dappetite.freight ().mode;

Dappetite Svelte Component

import Dappetite_Truck from '$lib/Singles/Dappetite/Truck.svelte'
let Dappetite_Freight = false

<Dappetite_Truck 
	on_change={ ({ pro_freight }) => { 
		Dappetite_Freight = pro_freight; 
	}} 
/>
{#if typeof Dappetite_Freight === "object"}

{/if}

Extension_Winch Svelte Component

import { writable } from 'svelte/store';
import EWR from '@bothy/aptas/Extension_Winch/Ride.svelte'
let EWF = writable (false);

<EWR 
	on_change={({ pro_freight }) => { 
		EWF.set (pro_freight); 
	}} 
/>
{#if typeof $EWF === "object"}

{/if}

mech

party