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

@permaweb/aoprofile

v0.0.11

Published

This SDK provides a set of functions to interact with profile processes on AO. Profiles are a digital representation of entities, such as users, organizations, or channels. These processes include specific metadata that describes the entity and can be ass

Readme

@permaweb/aoprofile

This SDK provides a set of functions to interact with profile processes on AO. Profiles are a digital representation of entities, such as users, organizations, or channels. These processes include specific metadata that describes the entity and can be associated with various digital assets and collections. Profiles are created, updated, and fetched using the following functions.

Prerequisites

  • node >= v18.0
  • npm or yarn
  • @permaweb/aoconnect

Installation

npm install @permaweb/aoprofile

or

yarn add @permaweb/aoprofile

Initialization

import { connect, createDataItemSigner } from '@permaweb/aoconnect';
import Arweave from 'arweave';
import AOProfile from '@permaweb/aoprofile';

const ao = connect();
const signer = createDataItemSigner(window.arweaveWallet);

// Note: arweave is only required for uploading files via data urls, not if
// sending txid's as the images to createProfile and updateProfile,
// signer is required for all uses of createProfile and updateProfile
const { createProfile, updateProfile, getProfileById, getProfileByWalletAddress, getRegistryProfiles } = AOProfile.init(
	{ ao, signer, arweave: Arweave.init({}) }
);

// Queries do not require a signer or arweave
const { getProfileById, getProfileByWalletAddress, getRegistryProfiles } = AOProfile.init({
	ao,
	logging: true,
});

Usage

createProfile

Creates a profile, initializing a zone with specific profile relevant metadata. Note: using data urls for images will not work in NodeJS they will only work in a browser.

const profileId = await createProfile({
	userName: 'Sample username',
	displayName: 'Sample display name',
	description: 'Sample description',
	thumbnail: 'Profile image data (can be a browser data url like data: or an Arweave txid)',
	banner: 'Cover image data (can be a browser data url like data: or an Arweave txid)',
});
  • args: Object containing profile details, including username, displayName, description, thumbnail, and banner
string | null; // Profile ID or null if creation fails

updateProfile

Updates a profile by modifying its metadata, such as username, displayName, description, and optional image fields like thumbnail and banner.

const profileUpdateId = await updateProfile({
	profileId: profileId,
	userName: 'Sample Zone',
	displayName: 'Sample Zone',
	description: 'Sample description (can be a browser data url like data: or an Arweave txid)',
	thumbnail: 'Profile image data (can be a browser data url like data: or an Arweave txid)',
	banner: 'Cover image data',
});
  • args: The correspending Profile ID, as well as the details to update, structured similarly to createProfile
string | null; // Profile update ID or null if update fails

getProfileById

Fetches a profile based on its ID. Returns a structured profile object containing the profile’s metadata, assets, and other properties associated with the profile.

const profile = await getProfileById({ profileId });
  • args: Object containing the ID to fetch specified by profileId
{
  id: "ProfileProcessId",
  walletAddress: "WalletAddress",
	displayName: "Sample display name",
  username: "Sample username",
  description: "Sample description",
  thumbnail: "ThumbnailTxId",
  banner: "BannerTxId",
  assets: [
    "AssetProcessId1",
    "AssetProcessId2",
    "AssetProcessId3",
  ]
}

getProfileByWalletAddress

Fetches a profile using the wallet address associated with it. This function is useful for retrieving a profile when only the wallet address is known.

const profile = await getProfileByWalletAddress({ address: walletAddress });
  • args: Object containing the wallet address to fetch specified by address
{
  id: "ProfileProcessId",
  walletAddress: "WalletAddress",
	displayName: "Sample display name",
  username: "Sample username",
  description: "Sample description",
  thumbnail: "ThumbnailTxId",
  banner: "BannerTxId",
  assets: [
    "AssetProcessId1",
    "AssetProcessId2",
    "AssetProcessId3",
  ]
}

getRegistryProfiles

This function queries a profile registry process that contains information on all spawned AO profiles.

const profiles = await getRegistryProfiles({ profileIds: [ids] });
  • args: Object containing the ids to fetch specified by profileIds
[
	{
		id: 'ProfileProcessId',
		username: 'Sample username',
		thumbnail: 'ThumbnailTxId',
		description: 'Sample description',
		lastUpdate: '1736293783295',
	},
];