Nip-activity
Every actor in your system needs a key pair. For a service account, generate once and store securely.
import generatePrivateKey, getPublicKey from 'nostr-tools';
const sk = generatePrivateKey(); // hex string
const pk = getPublicKey(sk);
Convergent evidence from single-unit recordings in non-human primates and human neuroimaging identifies a core NIP-activity network:
| Region | Role in NIP-Activity | |--------|----------------------| | Dorsolateral prefrontal cortex (dlPFC) | Maintenance of abstract action goals; rule retrieval | | Supplementary motor area (SMA) and pre-SMA | Temporal structuring of action sequences; readiness potential generation | | Anterior cingulate cortex (ACC) | Conflict monitoring and volitional action selection | | Basal ganglia (particularly putamen and caudate) | Gating of planned actions; inhibition of competing motor programs | | Premotor cortex (PMd, PMv) | Sensory-to-motor transformation for planned acts | nip-activity
These regions exhibit preparatory activity during delay periods in delayed-response tasks and before self-paced movements in Libet-style paradigms.
Track and surface user actions (activities) related to NIP (Notable Interaction/Notification) events so apps can display timelines, feeds, and activity-based notifications. Every actor in your system needs a key pair
Platforms like Damus, Snort, and Amethyst rely on nip-activity for every like, reply, and repost. Unlike Twitter or Facebook, your social activity is not owned by the platform. Your kind=1 text notes follow you, not the server. If you switch clients, your entire activity history moves with you.
Ready to integrate nip-activity into your own application? Follow this practical roadmap. Future research should employ:
Current challenges include:
Future research should employ: