There are also various libraries to show OSM as background map on a website and allow you to draw features on top. Those support various formats (GPX, GeoJSON, ...) Leaflet and MapLibre are the biggest here, with leaflet being the easiest and MapLibre being very flexible and performant