me.swimsync/swimsync
by drewbloom
README.md
# SwimSync
Talk to an AI, on your phone or your computer, and get the entries file you
import into Hy-Tek Meet Manager. Free, with no account and nothing to install.
## Why coaches use it
- **Start from what you have.** A photo of your lineup on paper, a roster PDF or
last week's meet file all work. There's nothing to retype.
- **Make a change in one sentence.** "Sam's out sick, Alex takes the 100 free"
gets you a new file, from wherever you are.
- **Seed times from your results.** Give it past meet files or results and it
seeds each swimmer with their best time. A free relay's lead-off counts: the
400 free relay lead-off is a 100 free time. Relay seeds are yours to give;
without one, a relay uses a time the same four swam (in a medley, on the same
strokes). Events with no time go in as NT.
- **Catch mistakes before the host does.** It stops and asks when a swimmer is
over the event limit, a name isn't on your roster, or a relay is short a swimmer.
- **See exactly what's in the file.** You get the lineup back event by event, read
from the file itself, to check against your notes.
## Use it
There are two ways. Both give you the same file.
**As a connector.** Add this as a custom connector in Claude or ChatGPT, once:
```
https://swimsync.me/mcp
```
Then open a chat and say what you need, with whatever you have for the meet. To
use a past meet file, the AI sends you a link where you can upload it. You get
back a link to a page with the zip to import and a readback of what's in it.
[swimsync.me/help](https://swimsync.me/help) has the steps for each app and some
example prompts.
**With the kit**, in an AI that can run code:
1. Download `swimsync-kit.zip` from
[Releases](https://github.com/drewbloom/swimsync/releases/latest).
2. Open a new chat in Claude or ChatGPT. Attach the kit and whatever you have for
the meet. Attach the kit itself, not a link to it: an AI's code sandbox may not
be able to download it.
3. Send this, then say what you need in your own words:
> Unzip this. Run `node swimsync.mjs guide` and follow it. Here's what I need for my meet:
Either way, say what you need in your own words. For example:
- "Entries for Tuesday's dual at Lincoln, girls, here's my lineup."
- "Here's last week's file. Sam's out sick, Alex takes the 100 free."
The AI asks about anything it can't read or that looks wrong, then gives you the
zip to import and a readback of what's in it:
```
Event 8 Girls 50 Yard Freestyle Varsity
Residual, Quinn 11 25.02
Percentile, Mia 10 25.20
Regression, Wren 12 X29.75
Event 24 Girls 400 Yard Freestyle Relay Varsity
A 3:52.61 1) Quantile, Reese 11 2) Bootstrap, Naomi 11 3) Histogram, Lily 10 4) Median, Layla 10
```
**Check the readback against your notes before you use the file.** It's read from
the zip itself, so it's the sure record of what's in the file, even if your AI
writes the lineup out differently in the chat. The tool can tell a file is valid,
but only you can tell it's right.
Import the zip in Meet Manager as you would any team's entries, or send it to the
host. SwimSync is new, so try it on a copy of your meet first.
The kit needs an AI that can run code. In Claude, that's Settings > Capabilities >
"Code execution and file creation". The connector doesn't.
## Which meets it covers
Event numbers should match the host's meet, so anything from the host comes first.
| Your meet | What to give the AI |
|---|---|
| Any meet you have a file for | A past file of the meet, or the host's Meet Events zip, announcement or heat sheet |
| High school dual or invitational, nothing from the host yet | Nothing extra. The standard high school order of events is built in. Tell it girls, boys or both; diving or not; and how JV is numbered. It shows you the numbered list to check against the host's |
| College, club, Masters, summer league | The host's event list. These meets each set their own events |
The AI checks each swimmer against the meet's limits:
| Limit | Events | Individual events | Exhibition swims |
|---|---|---|---|
| High school (the default) | 4 | 2, counting diving | Count |
| College, 15- or 16-event dual | 4 | 3 | Don't count |
| Any other meet | What the meet sets | What the meet sets | Your call |
High school limits also apply to JV. If you want a swimmer over a limit, say so:
the AI records your approval, and the swimmer stays flagged at the top of the
readback.
## Your swimmers' information
Your roster stays in your chat, which is with your AI provider under your account.
The kit has no server and keeps nothing: it runs in your AI's code sandbox.
The connector runs the same code on swimsync.me, from the [mcp](mcp) folder of this
repository. It doesn't log what your AI sends it. It keeps only the files you build
or upload, so you can download or read them, and deletes them after 24 hours. Each
one is encrypted with a key that's only in its link, so it can't be opened without
the link.
## How it works
The AI writes a plain lineup, one line for each swimmer and relay. SwimSync checks
it and builds the file, so the AI never writes the file's columns or checksums:
```
PROGRAM: high-school girls diving jv-first
SWIMMER: Baseline, Josie | F | 11
ENTRY: 5 | Baseline, Josie | 2:44.02
RELAY: 1 | A | Baseline, Josie / Bootstrap, Naomi / Tensor, Ada / Vector, Mia | 2:20.33
```
When a swimmer is over a limit, it names them and every event they're in:
```
PROBLEM: Baseline, Josie is in 3 individual events and 5 in all: event 5 (JV 200 IM),
event 7 (JV 50 Free), event 19 (JV 100 Back), event 1 (JV 200 Medley relay),
event 23 (JV 400 Free relay). The limits are 2 individual and 4 in all, counting
exhibition swims. Dropping 1 individual event fixes both.
```
A `PROBLEM` stops the build and says what would fix it. A `WARNING` doesn't stop it,
and also appears at the top of the readback `.txt`:
```
WARNING: 3.05 looks too fast for event 7 (JV 50 Free). Check it.
```
## Commands
```
swimsync guide What the AI reads
swimsync read <zip or hy3> [--team CODE] Print a file as a lineup
swimsync roster <files...> [--team CODE] Merge past files into a roster, with best times
swimsync events <program> Print a built-in program's numbered events
swimsync build <lineup.txt> Check a lineup, write the zip and a readback .txt
```
The connector has one tool, `swimsync`, which runs the JavaScript the AI sends in
a sandbox with these same commands as functions: `swimsync.guide()`,
`swimsync.read(file)`, `swimsync.roster([files])`, `swimsync.events(program)` and
`swimsync.build(lineup)`, plus `swimsync.upload()` for a coach's upload link. A
file is a link from `upload` or `build`, or a `.hy3` file's text.
At `https://swimsync.me/chatgpt` the same six functions are six separate tools, for
apps that want one tool per operation. The connector is listed in the
[MCP Registry](https://registry.modelcontextprotocol.io) as `me.swimsync/swimsync`
([server.json](server.json)).
## Develop
```sh
npm install
npm test
npm run typecheck
npm run build # dist/swimsync.mjs and dist/swimsync-kit.zip
```
The tool has no runtime dependencies, and it bundles into one file. Both the
command (`src/cli.ts`) and the connector (`mcp/`) run `src/api.ts`.
The connector is a Cloudflare Worker. The JavaScript runs in QuickJS compiled to
WebAssembly, and the files wait in Workers KV:
```sh
cd mcp
npm install
npx wrangler dev # http://localhost:8787/mcp
node scripts/smoke.mjs # build, download, upload and read against it
npx wrangler deploy
```
Please don't commit real meet files: they hold minors' names.
## License
MIT. See [LICENSE](LICENSE). SwimSync isn't affiliated with Hy-Tek.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues