-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmiddleware.ts
More file actions
49 lines (38 loc) · 1.37 KB
/
Copy pathmiddleware.ts
File metadata and controls
49 lines (38 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export const config = {
matcher: ['/', '/index.html'],
}
export default function middleware(request: Request): Response | void {
const accept = request.headers.get('accept') || ''
if (accept.includes('text/markdown')) {
const markdownContent = `# datasink.dev — Data Hygiene for Music PR
sink scrubs, rinses, soaks, and steeps your contact lists.
## Overview
datasink is a data hygiene CLI and browser demo for music PR contact lists.
Scrub and rinse run locally in the browser. Soak and steep use bring-your-own-key AI providers.
## Core capabilities
- **Scrub**: format validation, typo mapping, disposable domains, role accounts, MX checks
- **Rinse**: multi-field deduplication
- **Soak**: LLM contact enrichment (your API key)
- **Steep**: outlet channel discovery via Firecrawl (your API key)
## Getting started
\`\`\`bash
npx datasink demo
npx datasink scrub contacts.csv
\`\`\`
## Links
- Web demo: https://datasink.dev
- npm: https://www.npmjs.com/package/datasink
- Source: https://github.com/chrisschouk/sink-cli
- LLM docs: https://datasink.dev/llms.txt
- Auth notes: https://datasink.dev/auth.md
- Security: https://datasink.dev/.well-known/security.txt
`
return new Response(markdownContent, {
status: 200,
headers: {
'content-type': 'text/markdown; charset=utf-8',
'cache-control': 'public, max-age=3600',
},
})
}
}