What can you build with Open Waters AIS?

Pick a stretch of water you know. Build a live ship map for your club, an alert for a ferry arrival, or a log of traffic through a channel. You can prototype with a small area using the anonymous API.

When your receiver earns contributor access, you can use the API commercially at no cost within your tier limits. Each source keeps its own license. Check the source terms for your use and retain the required attribution when you display or redistribute data.

Three projects to start with

Live harbor map
Subscribe to a bounding box around your harbor. Plot each ship’s latest position and mark old reports so viewers can see how recently a vessel was heard.
Ferry or bridge traffic alerts
Follow selected vessels by MMSI and watch for a reported position entering an area near a dock or bridge. Use the alert to know when to check local conditions.
Club traffic dashboard
Count vessels passing a headland or channel by hour. Use the station field to see which reports your club’s receiver contributed first.

What others have built

Browse more projects or share yours on GitHub

Choose which data sources your app shows

The live WebSocket lets you subscribe by area or vessel. Apply a source allowlist in your backend by checking each event’s source before you cache it or send it to the browser. Keep any API token on the server and send only the JSON fields your map needs.

This example keeps Fintraffic Digitraffic reports. Review the source terms for your use before adding more sources. Filtering can reduce coverage because the stream carries deduplicated reports.

const allowedSources = new Set(["digitraffic"]);

// Call with a parsed /v1/stream frame in your backend.
function reportForBrowser(frame) {
  if (frame?.type !== "event" || !allowedSources.has(frame.source)) {
    return null;
  }
  const { mmsi, lat, lon, time, msg_type, source } = frame;
  return { mmsi, lat, lon, time, msg_type, source };
}

Keep the source alongside each report so the map can give the right credit. For this example, a map credit can read “Source: Fintraffic / digitraffic.fi, license CC BY 4.0.” Indicate any changes you made to the data. See the guidance on display and redistribution.

Start with your coding agent

Copy the prompt into your coding agent and fill in the area you want to watch.

Help me build a live ship monitor for [harbor, strait, or stretch of coast] with Open Waters AIS. Ask me which area to use if I leave it blank.

Read the API reference at https://openwaters.io/api/ais/. Start with one small bounding box using the anonymous WebSocket at wss://ais.openwaters.io/v1/stream. Request a snapshot and keep the position with the newest report time per MMSI. Update position and its timestamp only from position-report message types in the API reference. Use static reports for names and vessel details. Live events and older snapshot frames can arrive out of order. Show a vessel name when available, its last report time, and whether its position is stale. Show when the connection drops and reconnect with backoff.

Keep each report’s source and any attribution that source requires. Before publishing, check https://openwaters.io/ais/#license and filter the app’s feed to sources whose terms allow the intended use. If I later use a contributor token, keep it in a server-side environment variable and out of browser code, logs, and source control.

Make the first version runnable locally. Include sample events that test a stale snapshot arriving after a live position and a static report with carried-forward coordinates. Write a README explaining how to change the area and run the app.

Add coverage where you build

A shore station adds what your antenna hears to the same network your app reads from. See how to qualify for contributor access or set up a Raspberry Pi at your club.