Simple, single-user event aggregation platform, for use in personal websites and other related places.
event-streaming single-user events event-aggregation
at develop 18 lines 404 B view raw
1const snowflakeEvent = await fetch( 2 `http://localhost:${process.env.PORT || 4300}/events`, 3 { 4 method: "POST", 5 headers: { 6 Authorization: `PUT YOUR TOKEN HERE IF YOU WANT TO TESDT THIS ENDPOINT`, 7 }, 8 body: JSON.stringify({ 9 source: "test", 10 key: "this.is.a.real.event", 11 data: { 12 foo: "bar", 13 }, 14 }), 15 }, 16); 17 18console.log(await snowflakeEvent.json());