No description
Find a file
2026-05-18 16:55:42 -07:00
src initial commit: @cocotte/astro-event 2026-05-18 16:55:42 -07:00
.gitignore initial commit: @cocotte/astro-event 2026-05-18 16:55:42 -07:00
package.json initial commit: @cocotte/astro-event 2026-05-18 16:55:42 -07:00
README.md initial commit: @cocotte/astro-event 2026-05-18 16:55:42 -07:00
tsconfig.json initial commit: @cocotte/astro-event 2026-05-18 16:55:42 -07:00

@cocotte/astro-event

Schema.org Event JSON-LD primitive for Cocotte tour stop pages.

Usage

```astro

import { EventJsonLd, type EventInput } from '@cocotte/astro-event';

const event: EventInput = { id: 'https://futawaifutour.com/stops/01/', name: 'Futa Waifu Tour — Stop 01 — San Jose (FanimeCon)', description: 'Quinn-solo convention-weekend stop alongside FanimeCon.', startDate: '2026-05-21T17:00-07:00', endDate: '2026-05-25T23:00-07:00', location: { name: 'Downtown San Jose', address: { addressLocality: 'San Jose', addressRegion: 'CA', addressCountry: 'US' }, }, performer: { name: 'Quinn', url: 'https://transquinnftw.com/' }, organizer: { name: 'Futa Waifu Tour', url: 'https://futawaifutour.com/' }, offers: { url: 'https://futawaifutour.com/stops/01/book/', price: '700', priceCurrency: 'USD', availability: 'InStock', validFrom: '2026-04-01T00:00-07:00', referenceQuantity: { value: '1', unitCode: 'HUR' }, }, };

\`\`\`

Emits a single `