Skip to content

Develop - #2

Merged
raucheacho merged 6 commits into
mainfrom
develop
Jul 28, 2026
Merged

raucheacho merged 6 commits into
mainfrom
develop

Conversation

@raucheacho

Copy link
Copy Markdown
Owner

No description provided.

…atsApp library

Turn the WhatsApp-OTP service into a WhatsApp transport toolkit that runs
both as the msgkit-core server and as an embeddable Go library the server
is built on.

- Remove the OTP layer entirely (engine, templates, endpoints, otp_requests
  table, settings) and the Meta Cloud backend — msgkit is now a pure
  whatsmeow transport channel.
- Rename wotp→msgkit throughout: module github.com/raucheacho/msgkit, binary
  msgkit-core, env MSGKIT_*, key prefixes msgkit_anon_/msgkit_service_.
- Restructure library-first: promote core/* to the repo root, expose the
  whatsmeow wrapper as the public whatsapp package, and add the msgkit.Client
  facade (New/Start/OnMessage/OnStatus/SendText/SendMedia/SendLocation/…).
- Build the server on that facade: Runtime holds a *msgkit.Client; handlers,
  webhooks (decoupled to ProcessEvent(type,data)), and inbound routing consume
  the neutral msgkit.Event, mapped to the stable wire event names.
- Switch SQLite to pure-Go modernc.org/sqlite so everything builds with
  CGO_ENABLED=0 — static binaries, trivial cross-compilation, CGO-free image.
- Dashboard: drop OTP/Cloud screens, rebrand to msgkit.
- examples/whatsapp demonstrates single-binary embedding.
Rename the CLI module (github.com/raucheacho/msgkit/cli), binary (msgkit),
generated env prefix (MSGKIT_*) and image reference, and remove the OTP
settings and templates.toml generation from `msgkit init`.
Rename the three HTTP client SDKs (Go: github.com/raucheacho/msgkit/sdks/go;
npm: msgkit-client; PyPI: msgkit) and remove the OTP send/verify methods,
types, and errors. The transport surface (send text/media/location, presence,
chats, conversations + takeover/resume, media, health) is unchanged.
Rewrite the README as an embeddable WhatsApp toolkit (drop OTP/Cloud, add the
"Use as a Go library" section), rebrand LICENSE, .env.example and
docker-compose.yml to MSGKIT_*, and update the CI/release workflows for the
root module layout and the split release pipelines.
@raucheacho
raucheacho merged commit 93f6783 into main Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant