# Streamed custom widgets > How to write custom widgets (stream overlays) for Streamed: HTML, CSS and JavaScript with a StreamElements-compatible API for events, session data, variables, a key-value store and settings fields. To write or change a widget, read https://streamed.hu/llms-full.txt: all of it in one file, starting with the rules and the answer format for AI assistants. ## Docs - [Getting started](https://streamed.hu/docs/getting-started.md): What a custom widget is, its five files, a first widget, and how to test it. - [Fields](https://streamed.hu/docs/fields.md): Settings of a widget: field types, {{placeholders}}, fieldData and the Data JSON. - [Lifecycle](https://streamed.hu/docs/lifecycle.md): Load order, onWidgetLoad, reloads, and the event queue with widgetDuration. - [Events](https://streamed.hu/docs/events.md): Every onEventReceived listener of Twitch, YouTube and Ko-fi, with real JSON samples. - [Session data](https://streamed.hu/docs/session-data.md): Counters, latest events, top donations, goals and recent lists, and how they are counted. - [Variables](https://streamed.hu/docs/variables.md): Reading the dashboard's variables, the bot:counter event, and the built-in tip variables. - [Store](https://streamed.hu/docs/store.md): SE_API.store: values that survive reloads and are shared by your widgets. - [API reference](https://streamed.hu/docs/api-reference.md): The window events and every SE_API call on one page. - [Limits and security](https://streamed.hu/docs/limits-and-security.md): The sandbox, untrusted text from viewers, and every limit. - [Coming from StreamElements](https://streamed.hu/docs/streamelements.md): What works the same as on StreamElements and what is different. - [Examples](https://streamed.hu/docs/examples.md): Complete widgets to import: tip goal, counter, chat box, latest events, persistent tally, alert card. - [For AI assistants](https://streamed.hu/docs/for-ai.md): Rules and the answer format for AI assistants that write widgets. ## Reference files - [se-api.d.ts](https://streamed.hu/assets/js/widgets/custom-widget/se-api.d.ts): TypeScript types of the whole widget API - [fields.schema.json](https://streamed.hu/assets/js/widgets/custom-widget/fields.schema.json): JSON Schema of fields.json