Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2026 Mason L'Etoile
Copyright (c) 2026 Contact API, Mason L'Etoile

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Contact API

This repository contains the full Contact API project, organized in preparation for a split into separate repositories under the [contact-api](https://github.com/contact-api) org.

- [`core/`](./core/README.md) — platform-agnostic contact form logic
- [`resend/`](./resend/README.md) — Resend email provider
- [`nodemailer/`](./nodemailer/README.md) — Nodemailer (SMTP) email provider
- [`vercel/`](./vercel/README.md) — Vercel deployment (uses core + both providers)
# Contact API Core

Contact form logic: CORS evaluation, validation, honeypot handling, and email orchestration. Will be paired with one or more providers, (`Resend` or `Nodemailer`), and a platform, (`Vercel`).

## Exports
- `handleContact(req, deps)` — orchestrates the full contact-form flow
- `evaluateCors(req, allowedOrigins)` — CORS decision logic
- `sendEmail(config, body)` — dispatches to a given `EmailProvider`
- `isValidBody(body)` — input validation
- Types: `ContactRequest`, `ContactResult`, `EmailProvider`, `EmailPayload`, `EmailBody`

## License
MIT License - see [LICENSE](./LICENSE) for details.
13 changes: 0 additions & 13 deletions core/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions nodemailer/README.md

This file was deleted.

35 changes: 0 additions & 35 deletions nodemailer/index.ts

This file was deleted.

Loading
Loading