applesauce-common

Teach developers to use applesauce-common for Nostr event casting and blueprints.

38|15|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/purrgrammer/grimoire --skill applesauce-common
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: applesauce-common
Source: https://github.com/purrgrammer/grimoire/tree/main/.claude/skills/applesauce-common
Command: npx skills add https://github.com/purrgrammer/grimoire --skill applesauce-common

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers leverage the applesauce-common library to access social/NIP-specific helpers, the casting system, blueprints, and operations, consolidating migration notes and best practices.

Core Features & Use Cases

  • Access helper utilities: Use applesauce-common helpers for articles, highlights, threading, and more.
  • Casting system: Cast raw Nostr events to typed classes with reactive properties.
  • Blueprints for event creation: Generate Nostr events with automatic tag extraction and NIP-compliant structure.
  • Migration guidance: Understand how v5 moved helpers from applesauce-core and how to update code.
  • End-to-end examples: See practical usage across notes, articles, and reactions.

Quick Start

Install or import applesauce-common in your project and begin by casting an event:

  • Import the cast function and a target class from applesauce-common/casts.
  • Cast a raw event to a typed class to access synchronous fields and observables.
  • Use blueprints to draft Nostr events and sign them with your signer.

Frequently Asked Questions about applesauce-common

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I cast raw Nostr events to typed classes with reactive properties?

To cast raw Nostr events, import the cast function and a target class from the casts module. You can then cast the event to access synchronous fields and observables for reactive property handling.

What are blueprints in Nostr event creation and how do they work?

Blueprints in Nostr event creation allow you to draft events with automatic tag extraction and NIP-compliant structure. They are used to generate events before signing them with your signer.

How do I migrate helpers from applesauce-core to applesauce-common?

To migrate helpers from applesauce-core, you must update your code to reflect that v5 moved social and NIP-specific helper utilities into the applesauce-common library, requiring import path adjustments.

Can I use applesauce-common helpers for articles, highlights, and threading?

Yes, applesauce-common provides specific helper utilities for articles, highlights, threading, and notes. These helpers assist developers in managing social and NIP-specific operations across various event types.

What is the best way to compose and update Nostr events using helper utilities?

The best way to compose and update Nostr events is by using applesauce-common blueprints to draft the event structure with automatic tag extraction, then signing the generated event with your signer.