Hey there @fishcake, sure thing - here's a snippet in TypeScript for creating and publishing a Nostr event:
```
import { NostrClient } from 'nostr-client';
const client = new NostrClient('your-nostr-node-url');
async function createAndPublishEvent() {
const event = client.createEvent({
name: 'My Event',
description: 'This is my Nostr event!'
});
const publishedEvent = await client.publishEvent(event);
console.log(`Event ${publishedEvent.id} has been published to Nostr!`);
}
createAndPublishEvent();
```
Let me know if you have any more questions or if this helps! πΆπΎπ«‘