-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
2562 lines (2375 loc) · 161 KB
/
index.html
File metadata and controls
2562 lines (2375 loc) · 161 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en" prefix="og: https://ogp.me/ns#">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- ═══ Primary SEO ══════════════════════════════════════════════════════════ -->
<title>ToolsConnector — Python Library for 68 API Connectors | AI Agents & MCP</title>
<meta name="description" content="Open-source Python library giving AI agents and Python apps a unified interface to 68 APIs — Gmail, Slack, GitHub, Stripe, OpenAI, Anthropic, LinkedIn, X (Twitter), and 60 more. 1,370 typed actions. MCP server, OpenAI function calling, Anthropic tool use built in. Apache 2.0.">
<meta name="keywords" content="Python API library, AI agent tools, OpenAI function calling, Anthropic tool use, MCP server, LLM tool calling, Gmail API Python, Slack API Python, GitHub API Python, API connector Python, tool integration Python, AI function calling library, Model Context Protocol Python">
<meta name="author" content="ToolsConnector">
<meta name="robots" content="index, follow, max-snippet:-1, max-image-preview:large">
<link rel="canonical" href="https://toolsconnector.github.io/">
<link rel="icon" type="image/svg+xml" href="logo.svg">
<meta name="theme-color" content="#2563eb">
<meta name="application-name" content="ToolsConnector">
<meta name="google-site-verification" content="d41662209b56d435">
<!-- ═══ Open Graph — Facebook / LinkedIn / WhatsApp ═════════════════════════ -->
<meta property="og:type" content="website">
<meta property="og:url" content="https://toolsconnector.github.io/">
<meta property="og:site_name" content="ToolsConnector">
<meta property="og:title" content="ToolsConnector — One Python Library for 68 APIs">
<meta property="og:description" content="Connect AI agents and Python apps to Gmail, Slack, GitHub, Stripe, OpenAI, Anthropic, and 47 more through a single interface. MCP server, function calling, and tool use built in. Free & open source.">
<meta property="og:image" content="https://toolsconnector.github.io/og-image.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="ToolsConnector — 68 API Connectors for Python and AI Agents">
<meta property="og:locale" content="en_US">
<!-- ═══ Twitter / X Card ═════════════════════════════════════════════════════ -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@toolsconnector">
<meta name="twitter:title" content="ToolsConnector — One Python Library for 68 APIs">
<meta name="twitter:description" content="Connect AI agents and Python apps to Gmail, Slack, GitHub, Stripe, OpenAI, Anthropic, and 47 more. MCP server built-in. Open source.">
<meta name="twitter:image" content="https://toolsconnector.github.io/og-image.png">
<meta name="twitter:image:alt" content="ToolsConnector — 68 API Connectors for Python and AI Agents">
<!-- Sitemap reference -->
<link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" id="hljs-dark">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github.min.css" id="hljs-light" disabled>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/python.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/json.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/bash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/yaml.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/typescript.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/12.0.0/marked.min.js"></script>
<!-- Mermaid for diagrams (```mermaid blocks) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/11.4.1/mermaid.min.js"></script>
<!-- KaTeX for math equations ($..$ and $$..$$) -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/contrib/auto-render.min.js"></script>
<script>
tailwind.config = {
darkMode: 'class',
theme: {
extend: {
fontFamily: { sans: ['Inter', 'system-ui', 'sans-serif'], mono: ['JetBrains Mono', 'monospace'] },
colors: {
brand: { 50:'#eff6ff', 100:'#dbeafe', 200:'#bfdbfe', 300:'#93c5fd', 400:'#60a5fa', 500:'#3b82f6', 600:'#2563eb', 700:'#1d4ed8', 800:'#1e40af', 900:'#1e3a8a' }
}
}
}
}
</script>
<style>
body { font-family: 'Inter', system-ui, sans-serif; }
code, pre, .font-mono { font-family: 'JetBrains Mono', monospace; }
.page-transition { animation: fadeIn 0.15s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.gradient-text { background: linear-gradient(135deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.card-hover { transition: all 0.2s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 8px 25px -5px rgba(0,0,0,0.1); }
.dark .card-hover:hover { box-shadow: 0 8px 25px -5px rgba(0,0,0,0.4); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }
/* ── Prose content: polished markdown rendering ─────────────────── */
.prose-content { line-height: 1.75; color: #334155; font-size: 0.9375rem; }
.dark .prose-content { color: #cbd5e1; }
/* Headings */
.prose-content h1 { font-size: 2rem; font-weight: 800; margin: 0 0 0.4em; color: #0f172a; border-bottom: 2px solid #e2e8f0; padding-bottom: 0.5em; }
.dark .prose-content h1 { color: #f1f5f9; border-color: #334155; }
.prose-content h2 { font-size: 1.35rem; font-weight: 700; margin: 2.5em 0 0.6em; padding-bottom: 0.35em; border-bottom: 1px solid #e2e8f0; color: #1e293b; }
.dark .prose-content h2 { color: #e2e8f0; border-color: #334155; }
.prose-content h3 { font-size: 1.05rem; font-weight: 600; margin: 1.8em 0 0.4em; color: #334155; font-family: 'JetBrains Mono', monospace; }
.dark .prose-content h3 { color: #e2e8f0; }
/* Paragraphs & text */
.prose-content p { margin: 0.6em 0 1em; }
.prose-content strong { font-weight: 700; color: #1e293b; }
.dark .prose-content strong { color: #f1f5f9; }
/* Lists */
.prose-content ul, .prose-content ol { padding-left: 1.5em; margin: 0.5em 0 1.2em; }
.prose-content li { margin: 0.35em 0; line-height: 1.65; }
.prose-content li::marker { color: #94a3b8; }
/* Inline code */
.prose-content code:not(pre code) { background: rgba(99,102,241,0.08); padding: 0.15em 0.45em; border-radius: 5px; font-size: 0.85em; font-family: 'JetBrains Mono', monospace; color: #4f46e5; }
.dark .prose-content code:not(pre code) { background: rgba(99,102,241,0.15); color: #a5b4fc; }
/* Code blocks */
.prose-content pre { background: #f8fafc; border-radius: 12px; padding: 1.25em 1.5em; overflow-x: auto; margin: 1em 0 1.4em; position: relative; border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.dark .prose-content pre { background: #0f172a; border-color: #1e293b; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.3); }
.prose-content pre code { background: none !important; padding: 0 !important; font-size: 0.82em; line-height: 1.7; border-radius: 0; }
.prose-content pre code.hljs { padding: 0 !important; background: transparent !important; }
/* Links */
.prose-content a { color: #4f46e5; text-decoration: none; font-weight: 500; }
.prose-content a:hover { text-decoration: underline; }
.dark .prose-content a { color: #818cf8; }
/* Blockquotes (tagline) */
.prose-content blockquote { border-left: 4px solid #6366f1; padding: 0.6em 1em; margin: 0 0 1.2em; background: #f8fafc; border-radius: 0 8px 8px 0; color: #64748b; font-size: 1.05em; }
.dark .prose-content blockquote { background: #1e293b; color: #94a3b8; border-color: #818cf8; }
/* Tables */
.prose-content table { border-collapse: collapse; width: 100%; margin: 1em 0 1.4em; font-size: 0.875em; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; }
.dark .prose-content table { border-color: #334155; }
.prose-content th { background: #f1f5f9; font-weight: 600; text-align: left; padding: 0.6em 1em; font-size: 0.82em; text-transform: uppercase; letter-spacing: 0.04em; color: #64748b; }
.dark .prose-content th { background: #1e293b; color: #94a3b8; }
.prose-content td { padding: 0.55em 1em; border-top: 1px solid #e2e8f0; vertical-align: top; }
.dark .prose-content td { border-color: #334155; }
.prose-content tr:hover td { background: #f8fafc; }
.dark .prose-content tr:hover td { background: rgba(30,41,59,0.5); }
/* Horizontal rule */
.prose-content hr { border: none; border-top: 1px solid #e2e8f0; margin: 2em 0; }
.dark .prose-content hr { border-color: #334155; }
/* Images (badges) — inline, wrap naturally */
.prose-content img { display: inline-block; vertical-align: middle; max-width: 100%; margin: 0.15em 0.1em; }
.prose-content p > img:first-child { margin-right: 0.3em; }
/* First image before h1 = connector logo */
.prose-content > img:first-child { display: block; margin-bottom: 0.75em; border-radius: 12px; }
/* Badge paragraph — the paragraph that only contains img badges */
.prose-content p:has(> img[src*="shields.io"]) { display: flex; flex-wrap: wrap; gap: 0.35em; align-items: center; margin: 0.5em 0 1.2em; }
.prose-content img[src*="shields.io"] { height: 22px; border-radius: 4px; }
/* Info table (first table after blockquote — the metadata table) */
.prose-content blockquote + p + table,
.prose-content blockquote + table { border-radius: 10px; }
.prose-content blockquote + p + table td:first-child,
.prose-content blockquote + table td:first-child { font-weight: 600; width: 140px; color: #64748b; white-space: nowrap; }
.dark .prose-content blockquote + p + table td:first-child,
.dark .prose-content blockquote + table td:first-child { color: #94a3b8; }
/* Figures and image captions */
.prose-content figure { margin: 1.5em 0; text-align: center; }
.prose-content figure img { max-width: 100%; border-radius: 10px; border: 1px solid #e2e8f0; }
.dark .prose-content figure img { border-color: #334155; }
.prose-content figcaption { font-size: 0.82em; color: #94a3b8; margin-top: 0.5em; font-style: italic; }
/* Task lists */
.prose-content .task-list-item { list-style: none; margin-left: -1.3em; }
.prose-content .task-list-item input[type="checkbox"] { margin-right: 0.5em; accent-color: #6366f1; transform: scale(1.1); vertical-align: middle; }
/* Mermaid diagrams */
.mermaid-block { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5em; margin: 1.2em 0; text-align: center; overflow-x: auto; }
.dark .mermaid-block { background: #1e293b; border-color: #334155; }
.mermaid-block svg { max-width: 100%; height: auto; }
/* Admonitions (Note, Warning, Tip, etc.) */
.admonition { margin: 1.2em 0; }
.admonition p:last-child { margin-bottom: 0; }
/* KaTeX math */
.prose-content .katex-display { margin: 1em 0; overflow-x: auto; }
.prose-content .katex { font-size: 1.05em; }
/* Global search */
.search-results { position: absolute; top: 100%; left: 0; right: 0; max-height: 320px; overflow-y: auto; z-index: 100; }
.search-results a:hover { background: #f1f5f9; }
.dark .search-results a:hover { background: #1e293b; }
.chat-msg { max-width: 85%; }
.typing-indicator span { animation: blink 1.4s infinite both; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%,80%,100% { opacity: 0; } 40% { opacity: 1; } }
</style>
<!-- ═══ JSON-LD Structured Data ══════════════════════════════════════════════ -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@graph": [
{
"@type": "SoftwareApplication",
"@id": "https://toolsconnector.github.io/#software",
"name": "ToolsConnector",
"description": "Open-source Python library providing a unified interface to 68 API connectors (1,370 typed actions) for AI agents and Python apps. Supports MCP server, OpenAI function calling, Anthropic tool use, and Google Gemini.",
"url": "https://toolsconnector.github.io/",
"downloadUrl": "https://pypi.org/project/toolsconnector/",
"applicationCategory": "DeveloperApplication",
"applicationSubCategory": "API Integration Library",
"operatingSystem": "Any",
"softwareRequirements": "Python 3.9+",
"programmingLanguage": "Python",
"codeRepository": "https://github.com/sachinshelke/ToolsConnector",
"softwareVersion": "0.3.7",
"license": "https://opensource.org/licenses/Apache-2.0",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"featureList": [
"68 API connectors across 20 categories",
"1,370 typed actions",
"MCP server — one line to serve Claude Desktop or Cursor",
"OpenAI function calling schema generation",
"Anthropic tool use schema generation",
"Google Gemini function declarations",
"Async-first with sync wrappers",
"Circuit breaker and smart retry",
"Pydantic V2 type-safe models",
"REST API serving with Starlette",
"CLI for all connectors"
],
"screenshot": "https://toolsconnector.github.io/og-image.png",
"author": { "@id": "https://toolsconnector.github.io/#org" }
},
{
"@type": "Organization",
"@id": "https://toolsconnector.github.io/#org",
"name": "ToolsConnector",
"url": "https://toolsconnector.github.io/",
"logo": "https://toolsconnector.github.io/logo.svg",
"sameAs": [
"https://github.com/sachinshelke/ToolsConnector",
"https://pypi.org/project/toolsconnector/"
]
},
{
"@type": "WebSite",
"@id": "https://toolsconnector.github.io/#website",
"name": "ToolsConnector",
"url": "https://toolsconnector.github.io/",
"description": "Documentation and connector reference for the ToolsConnector Python library",
"publisher": { "@id": "https://toolsconnector.github.io/#org" },
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://toolsconnector.github.io/#/connectors?q={search_term_string}"
},
"query-input": "required name=search_term_string"
}
},
{
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "What is ToolsConnector?",
"acceptedAnswer": { "@type": "Answer", "text": "ToolsConnector is an open-source Python library that connects AI agents and Python apps to 68+ APIs — Gmail, Slack, GitHub, Stripe, OpenAI, Anthropic, LinkedIn, X (Twitter), Medium, 14 AWS services, and more — through a single standardized interface. It generates tool schemas for OpenAI, Anthropic, and Gemini and can serve any connector as a one-line MCP server." }
},
{
"@type": "Question",
"name": "How do I install ToolsConnector?",
"acceptedAnswer": { "@type": "Answer", "text": "Install via pip: pip install toolsconnector. For specific connectors use extras: pip install \"toolsconnector[gmail,slack,github]\". Requires Python 3.9+. Core dependencies are only pydantic, httpx, and docstring-parser." }
},
{
"@type": "Question",
"name": "Does ToolsConnector work with OpenAI function calling?",
"acceptedAnswer": { "@type": "Answer", "text": "Yes. Call kit.to_openai_tools() to generate OpenAI-compatible JSON Schema tool definitions for any combination of connectors. The same ToolKit supports Anthropic tool use via kit.to_anthropic_tools() and Google Gemini via kit.to_gemini_tools()." }
},
{
"@type": "Question",
"name": "What is MCP and does ToolsConnector support it?",
"acceptedAnswer": { "@type": "Answer", "text": "MCP (Model Context Protocol) is an open standard for connecting AI models to external tools and data. ToolsConnector supports MCP out of the box: call kit.serve_mcp() to expose any connector as an MCP server for Claude Desktop, Cursor, Windsurf, or any compatible client. No extra configuration needed." }
},
{
"@type": "Question",
"name": "Is ToolsConnector free and open source?",
"acceptedAnswer": { "@type": "Answer", "text": "Yes. ToolsConnector is released under the Apache 2.0 license — free to use, modify, and distribute in commercial projects. No hosted backend required. Bring your own API keys (BYOK)." }
},
{
"@type": "Question",
"name": "Which APIs does ToolsConnector support?",
"acceptedAnswer": { "@type": "Answer", "text": "ToolsConnector supports 68 connectors across 20 categories: Gmail, Slack, Discord, Outlook, Teams, Twilio, Telegram (Communication); LinkedIn, X (Twitter), Medium (Social); Jira, Asana, Linear, Trello (Project Management); HubSpot, Salesforce, Zendesk, Freshdesk, Intercom (CRM); GitHub, GitLab (Code); Notion, Confluence (Knowledge); Google Drive, AWS S3 (Storage); Airtable, Firestore, MongoDB, Redis, Supabase (Database); Cloudflare, Datadog, Docker Hub, PagerDuty, Vercel, AWS CloudFront, ECR, CloudWatch (DevOps); AWS EC2, ECS, Lambda (Compute); AWS ALB, Route53 (Networking); AWS ACM, IAM, Secrets Manager (Security); Okta, Auth0 (Security); Stripe, Plaid (Finance); Mailchimp, SendGrid (Marketing); OpenAI, Anthropic, Pinecone (AI/ML); Mixpanel, Segment (Analytics); AWS RDS (Database); AWS SQS, RabbitMQ (Message Queue); Google Calendar, Google Docs, Google Sheets, Google Tasks, Calendly, Figma (Productivity); Shopify (E-Commerce)." }
}
]
}
]
}
</script>
</head>
<body class="bg-white dark:bg-gray-950 text-gray-900 dark:text-gray-100 min-h-screen">
<!-- Noscript fallback for crawlers without JS execution -->
<noscript>
<div style="max-width:900px;margin:2rem auto;padding:1.5rem 1rem;font-family:system-ui,sans-serif;line-height:1.6">
<h1 style="font-size:2rem;font-weight:800;margin-bottom:.5rem">ToolsConnector — Python Library for 68 API Connectors</h1>
<p style="font-size:1.1rem;color:#444;margin-bottom:1.5rem">Open-source Python library giving AI agents and Python apps a unified interface to 68 APIs with 1,370 typed actions. Works with OpenAI function calling, Anthropic tool use, Google Gemini, MCP servers, and any Python framework. Apache 2.0. Free forever.</p>
<p><code style="background:#f1f5f9;padding:.2em .5em;border-radius:4px">pip install toolsconnector</code></p>
<h2 style="margin-top:2rem">Supported Connectors (68 across 20 categories)</h2>
<ul style="columns:2;gap:2rem">
<li><strong>Communication (7):</strong> Gmail, Slack, Discord, Outlook, Teams, Twilio, Telegram</li>
<li><strong>Project Management (4):</strong> Jira, Asana, Linear, Trello</li>
<li><strong>CRM & Support (5):</strong> HubSpot, Salesforce, Zendesk, Freshdesk, Intercom</li>
<li><strong>Code Platforms (2):</strong> GitHub, GitLab</li>
<li><strong>Knowledge (2):</strong> Notion, Confluence</li>
<li><strong>Storage (2):</strong> Google Drive, AWS S3</li>
<li><strong>Database (5):</strong> Airtable, Firebase Firestore, MongoDB Atlas, Redis, Supabase</li>
<li><strong>DevOps (5):</strong> Cloudflare, Datadog, Docker Hub, PagerDuty, Vercel</li>
<li><strong>Finance (2):</strong> Stripe, Plaid</li>
<li><strong>Marketing (2):</strong> Mailchimp, SendGrid</li>
<li><strong>AI / ML (3):</strong> OpenAI, Anthropic, Pinecone</li>
<li><strong>Analytics (2):</strong> Mixpanel, Segment</li>
<li><strong>Message Queue (2):</strong> AWS SQS, RabbitMQ</li>
<li><strong>Security (2):</strong> Okta, Auth0</li>
<li><strong>Productivity (6):</strong> Google Calendar, Google Docs, Google Sheets, Google Tasks, Calendly, Figma</li>
<li><strong>E-Commerce (1):</strong> Shopify</li>
<li><strong>Custom (1):</strong> Webhook</li>
</ul>
<p style="margin-top:2rem">Enable JavaScript for the full interactive experience. <a href="https://github.com/sachinshelke/ToolsConnector">View on GitHub</a> · <a href="https://pypi.org/project/toolsconnector/">PyPI</a></p>
</div>
</noscript>
<!-- Navigation -->
<nav id="navbar" class="sticky top-0 z-50 border-b border-gray-200 dark:border-gray-800 bg-white/80 dark:bg-gray-950/80 backdrop-blur-lg">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-between h-16">
<a href="#/" class="flex items-center gap-2 font-bold text-lg">
<img src="logo.svg" alt="ToolsConnector" class="w-8 h-8">
<span>ToolsConnector</span>
</a>
<div class="hidden md:flex items-center gap-1">
<a href="#/" class="nav-link px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors">Home</a>
<a href="#/connectors" class="nav-link px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors">Connectors</a>
<a href="#/playground" class="nav-link px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors">Playground</a>
<a href="#/assistant" class="nav-link px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors">Assistant</a>
<a href="#/docs" class="nav-link px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors">Docs</a>
<a href="#/health" class="nav-link px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors">Health</a>
</div>
<!-- Global search -->
<div class="hidden md:block relative" id="global-search-wrap">
<svg class="absolute left-2.5 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 pointer-events-none" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/></svg>
<input id="global-search" type="text" placeholder="Search tools..." class="w-44 pl-8 pr-3 py-1.5 rounded-lg border border-gray-300 dark:border-gray-700 bg-gray-50 dark:bg-gray-900 text-sm focus:ring-2 focus:ring-brand-500 focus:w-64 transition-all outline-none" autocomplete="off">
<div id="global-search-results" class="search-results hidden absolute mt-1 w-72 bg-white dark:bg-gray-900 border border-gray-200 dark:border-gray-800 rounded-xl shadow-xl overflow-hidden"></div>
</div>
<div class="flex items-center gap-2">
<button id="theme-toggle" class="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors" title="Toggle dark mode">
<svg id="icon-sun" class="w-5 h-5 hidden" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"/></svg>
<svg id="icon-moon" class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"/></svg>
</button>
<a href="https://github.com/sachinshelke/ToolsConnector" target="_blank" rel="noopener" class="p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors" title="GitHub">
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"/></svg>
</a>
<button id="mobile-menu-btn" class="md:hidden p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-800">
<svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h16"/></svg>
</button>
</div>
</div>
<!-- Mobile menu -->
<div id="mobile-menu" class="md:hidden hidden pb-4 border-t border-gray-200 dark:border-gray-800 pt-2">
<a href="#/" class="block px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800">Home</a>
<a href="#/connectors" class="block px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800">Connectors</a>
<a href="#/playground" class="block px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800">Playground</a>
<a href="#/assistant" class="block px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800">Assistant</a>
<a href="#/docs" class="block px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800">Docs</a>
<a href="#/health" class="block px-3 py-2 rounded-lg text-sm font-medium text-gray-600 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800">Health</a>
</div>
</div>
</nav>
<!-- Main content -->
<main id="app" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"></main>
<!-- Footer -->
<footer class="border-t border-gray-200 dark:border-gray-800 mt-16">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="flex flex-col md:flex-row justify-between items-center gap-4 text-sm text-gray-500 dark:text-gray-400">
<div class="flex items-center gap-2">
<img src="logo.svg" alt="ToolsConnector" class="w-5 h-5">
<span>ToolsConnector</span>
</div>
<div class="flex items-center gap-6">
<a href="https://github.com/sachinshelke/ToolsConnector" target="_blank" rel="noopener" class="hover:text-gray-900 dark:hover:text-white transition-colors">GitHub</a>
<a href="https://pypi.org/project/toolsconnector/" target="_blank" rel="noopener" class="hover:text-gray-900 dark:hover:text-white transition-colors">PyPI</a>
<a href="https://opensource.org/licenses/Apache-2.0" target="_blank" rel="noopener" class="hover:text-gray-900 dark:hover:text-white transition-colors">Apache 2.0</a>
<a id="tc-version-link" href="https://pypi.org/project/toolsconnector/" target="_blank" rel="noopener" class="text-xs px-2 py-0.5 rounded-md bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors" title="Latest published version on PyPI"><span id="tc-version">v0.3.7</span></a>
</div>
</div>
</div>
</footer>
<script>
// ─── Globals ────────────────────────────────────────────────────────────────
let DATA = {};
let DOCS_CONTENT = {};
let META = {};
let STATS = { connectors: 0, actions: 0, categories: 0, dangerous: 0 };
let CATEGORIES = {};
let chatHistory = [];
let SYS_PROMPT = '';
const CATEGORY_LABELS = {
communication: 'Communication', database: 'Database', devops: 'DevOps', crm: 'CRM',
project_management: 'Project Management', ai_ml: 'AI / ML', productivity: 'Productivity',
security: 'Security', knowledge: 'Knowledge', storage: 'Storage', code_platform: 'Code Platform',
marketing: 'Marketing', analytics: 'Analytics', finance: 'Finance', message_queue: 'Message Queue',
ecommerce: 'E-Commerce', custom: 'Custom'
};
const CATEGORY_ICONS = {
communication: '<path stroke-linecap="round" stroke-linejoin="round" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/>',
database: '<path stroke-linecap="round" stroke-linejoin="round" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4m0 5c0 2.21-3.582 4-8 4s-8-1.79-8-4"/>',
devops: '<path stroke-linecap="round" stroke-linejoin="round" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.066 2.573c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.573 1.066c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.066-2.573c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"/><path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>',
crm: '<path stroke-linecap="round" stroke-linejoin="round" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>',
project_management: '<path stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"/>',
ai_ml: '<path stroke-linecap="round" stroke-linejoin="round" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/>',
productivity: '<path stroke-linecap="round" stroke-linejoin="round" d="M13 10V3L4 14h7v7l9-11h-7z"/>',
security: '<path stroke-linecap="round" stroke-linejoin="round" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/>',
knowledge: '<path stroke-linecap="round" stroke-linejoin="round" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"/>',
storage: '<path stroke-linecap="round" stroke-linejoin="round" d="M5 8h14M5 8a2 2 0 110-4h14a2 2 0 110 4M5 8v10a2 2 0 002 2h10a2 2 0 002-2V8m-9 4h4"/>',
code_platform: '<path stroke-linecap="round" stroke-linejoin="round" d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"/>',
marketing: '<path stroke-linecap="round" stroke-linejoin="round" d="M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"/>',
analytics: '<path stroke-linecap="round" stroke-linejoin="round" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/>',
finance: '<path stroke-linecap="round" stroke-linejoin="round" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/>',
message_queue: '<path stroke-linecap="round" stroke-linejoin="round" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/>',
ecommerce: '<path stroke-linecap="round" stroke-linejoin="round" d="M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 100 4 2 2 0 000-4z"/>',
custom: '<path stroke-linecap="round" stroke-linejoin="round" d="M11 4a2 2 0 114 0v1a1 1 0 001 1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1a2 2 0 100 4h1a1 1 0 011 1v3a1 1 0 01-1 1h-3a1 1 0 01-1-1v-1a2 2 0 10-4 0v1a1 1 0 01-1 1H7a1 1 0 01-1-1v-3a1 1 0 00-1-1H4a2 2 0 110-4h1a1 1 0 001-1V7a1 1 0 011-1h3a1 1 0 001-1V4z"/>'
};
const CATEGORY_COLORS = {
communication: 'blue', database: 'emerald', devops: 'orange', crm: 'pink',
project_management: 'violet', ai_ml: 'purple', productivity: 'yellow',
security: 'red', knowledge: 'teal', storage: 'cyan', code_platform: 'indigo',
marketing: 'rose', analytics: 'sky', finance: 'green', message_queue: 'amber',
ecommerce: 'fuchsia', custom: 'gray'
};
const DOCS_SIDEBAR = [
{ heading: 'Getting Started', items: [
{ id: 'introduction', title: 'Introduction' },
{ id: 'quickstart', title: 'Quick Start' },
{ id: 'installation', title: 'Installation' },
{ id: 'credentials', title: 'Credentials & Auth' },
]},
{ heading: 'Using ToolsConnector', items: [
{ id: 'mcp-server', title: 'MCP Server' },
{ id: 'ai-frameworks', title: 'AI Frameworks' },
{ id: 'resilience', title: 'Resilience' },
{ id: 'cli', title: 'CLI Reference' },
]},
{ heading: 'Connectors', items: [
{ id: 'connectors-overview', title: 'All Connectors' },
{ id: 'connectors-communication', title: 'Communication' },
{ id: 'connectors-code-platforms', title: 'Code Platforms' },
{ id: 'connectors-project-management', title: 'Project Management' },
{ id: 'connectors-crm', title: 'CRM & Support' },
{ id: 'connectors-database', title: 'Database' },
{ id: 'connectors-devops', title: 'DevOps & Cloud' },
{ id: 'connectors-ai-ml', title: 'AI/ML' },
{ id: 'connectors-finance', title: 'Finance' },
{ id: 'connectors-storage', title: 'Storage' },
]},
{ heading: 'Reference', items: [
{ id: 'api', title: 'API Reference' },
{ id: 'architecture-faq', title: 'Architecture FAQ' },
{ id: 'adding-connector', title: 'Adding a Connector' },
]},
];
// Flatten for lookups
const DOCS_ALL = DOCS_SIDEBAR.flatMap(s => s.items);
// ─── AI Providers ────────────────────────────────────────────────────────────
const AI_PROVIDERS = {
openrouter: {
name: 'OpenRouter',
url: 'https://openrouter.ai/api/v1/chat/completions',
keyUrl: 'https://openrouter.ai/keys',
models: [
{ id: 'qwen/qwen3-30b-a3b:free', label: 'Qwen3 30B', free: true },
{ id: 'deepseek/deepseek-chat-v3-0324:free', label: 'DeepSeek V3', free: true },
{ id: 'google/gemma-3-27b-it:free', label: 'Gemma 3 27B', free: true },
{ id: 'meta-llama/llama-4-maverick:free', label: 'Llama 4 Maverick', free: true },
{ id: 'anthropic/claude-sonnet-4', label: 'Claude Sonnet 4', free: false },
{ id: 'openai/gpt-4o', label: 'GPT-4o', free: false },
{ id: 'google/gemini-2.5-pro-preview-05-06', label: 'Gemini 2.5 Pro', free: false },
]
},
huggingface: {
name: 'HuggingFace',
url: 'https://router.huggingface.co/v1/chat/completions',
keyUrl: 'https://huggingface.co/settings/tokens',
models: [
{ id: 'Qwen/Qwen2.5-72B-Instruct', label: 'Qwen 2.5 72B', free: true },
{ id: 'meta-llama/Llama-3.3-70B-Instruct', label: 'Llama 3.3 70B', free: true },
{ id: 'mistralai/Mistral-Small-24B-Instruct-2501', label: 'Mistral Small 24B', free: true },
{ id: 'microsoft/Phi-3-mini-4k-instruct', label: 'Phi-3 Mini', free: true },
]
}
};
// ─── Helpers ────────────────────────────────────────────────────────────────
function esc(s) { const d = document.createElement('div'); d.textContent = s; return d.innerHTML; }
function catBadge(cat) {
const c = CATEGORY_COLORS[cat] || 'gray';
return `<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-${c}-100 text-${c}-800 dark:bg-${c}-900/30 dark:text-${c}-400">${CATEGORY_LABELS[cat] || cat}</span>`;
}
// Verification tier badge — mirrors scripts/build_site.py _verification_badge().
// live = Tier 1 (green), doc = Tier 2 (amber), pattern = Tier 3 (slate).
// Shown on each connector card so the verified tools are visible at a glance.
function verifyBadge(status) {
const m = {
live: ['#10b981', 'Verified', 'Live verified — exercised end-to-end against the real vendor API with a real token.'],
doc: ['#f59e0b', 'Doc', 'Doc verified — every endpoint, header, body shape, and scope cross-checked against the vendor docs and respx-pinned in tests.'],
pattern: ['#94a3b8', 'Pattern', 'Pattern correct — code matches documented API patterns from public knowledge; no active verification sweep run yet.'],
};
const [color, label, title] = m[status] || m.pattern;
return `<span class="inline-flex items-center gap-1" title="${title}" aria-label="Verification: ${label}"><span style="color:${color}">●</span>${label}</span>`;
}
// Green verified check shown right next to the connector NAME for Tier 1
// (live-verified) connectors — high-signal "this tool is verified" marker.
// Returns empty string for doc/pattern tiers (their tier shows in the footer badge).
function verifyTick(status) {
if (status !== 'live') return '';
return `<span class="inline-flex flex-none text-emerald-500" title="Live verified — tested end-to-end against the real vendor API with a real token." aria-label="Verified"><svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"/></svg></span>`;
}
function catIcon(cat) {
return `<svg class="w-6 h-6" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="1.5">${CATEGORY_ICONS[cat] || CATEGORY_ICONS.custom}</svg>`;
}
function $(sel) { return document.querySelector(sel); }
function $$(sel) { return document.querySelectorAll(sel); }
// ── Logo cache ────────────────────────────────────────────────────────────────
// Brandfetch is hit at most once per unique domain per SPA session.
// Each response is stored as a blob URL in _logoCache and applied to every
// <img data-logo="url"> element that references the same URL.
// On subsequent renders (e.g. navigating back to /connectors) logos render
// instantly from the blob URL — zero additional network requests.
const _logoCache = new Map(); // url → blobUrl | 'err'
function _fetchAndCache(url) {
if (_logoCache.has(url)) return;
_logoCache.set(url, 'loading');
fetch(url, { cache: 'force-cache' })
.then(function(r) { if (!r.ok) throw r.status; return r.blob(); })
.then(function(blob) {
var blobUrl = URL.createObjectURL(blob);
_logoCache.set(url, blobUrl);
// Upgrade every already-rendered img that's waiting for this URL
document.querySelectorAll('img[data-logo]').forEach(function(img) {
if (img.getAttribute('data-logo') === url) img.src = blobUrl;
});
})
.catch(function() { _logoCache.set(url, 'err'); });
}
// Call after any innerHTML update that contains <img data-logo="..."> elements.
function applyLogos(root) {
(root || document).querySelectorAll('img[data-logo]').forEach(function(img) {
var url = img.getAttribute('data-logo');
if (!url) return;
var cached = _logoCache.get(url);
if (cached && cached !== 'loading' && cached !== 'err') {
img.src = cached; // instant from memory
} else {
img.src = url; // browser HTTP-cache may serve it immediately
_fetchAndCache(url); // async upgrade to blob URL
}
});
}
function computeStats() {
CATEGORIES = {};
STATS = { connectors: 0, actions: 0, categories: 0, dangerous: 0 };
for (const [name, spec] of Object.entries(DATA)) {
STATS.connectors++;
const cat = spec.category || 'custom';
CATEGORIES[cat] = (CATEGORIES[cat] || 0) + 1;
for (const action of Object.values(spec.actions || {})) {
STATS.actions++;
if (action.dangerous) STATS.dangerous++;
}
}
STATS.categories = Object.keys(CATEGORIES).length;
}
// Mermaid init (lazy, once)
let mermaidReady = false;
function initMermaid() {
if (mermaidReady) return;
mermaid.initialize({ startOnLoad: false, theme: document.documentElement.classList.contains('dark') ? 'dark' : 'default', securityLevel: 'loose' });
mermaidReady = true;
}
// Rewrite relative .md links to SPA hash routes
function resolveDocLink(href) {
// Strip anchor fragment first, restore later
var fragment = '';
var hashIdx = href.indexOf('#');
if (hashIdx !== -1) { fragment = href.slice(hashIdx); href = href.slice(0, hashIdx); }
if (!href) return fragment || '#';
// Normalize: strip leading ../ and ./
var norm = href.replace(/^(\.\.\/)+/, '').replace(/^\.\//, '');
// connectors/README.md → #/connectors
if (norm === 'connectors/README.md' || norm === 'connectors/README') return '#/connectors' + fragment;
// Strip .md extension
norm = norm.replace(/\.md$/, '');
// guides/{name} → #/docs/{name}
if (norm.startsWith('guides/')) return '#/docs/' + norm.slice(7) + fragment;
// Connector category pages → #/docs/connectors-{name}
var connCats = ['communication','code-platforms','project-management','crm','database','devops','ai-ml','finance','storage'];
if (connCats.indexOf(norm) !== -1) return '#/docs/connectors-' + norm + fragment;
// API.md → #/docs/api
if (norm === 'API') return '#/docs/api' + fragment;
// adding-connector.md → #/docs/adding-connector
if (norm === 'adding-connector') return '#/docs/adding-connector' + fragment;
// Fallback: #/docs/{name}
return '#/docs/' + norm + fragment;
}
function renderMarkdown(md) {
const renderer = new marked.Renderer();
// ── Code blocks: hljs highlighting + mermaid diagrams ──
renderer.code = function(codeOrObj, langArg) {
let text, lang;
if (typeof codeOrObj === 'object' && codeOrObj !== null) {
text = codeOrObj.text || codeOrObj.code || '';
lang = codeOrObj.lang || '';
} else {
text = codeOrObj || '';
lang = langArg || '';
}
// Mermaid diagrams
if (lang === 'mermaid') {
const id = 'mermaid-' + Math.random().toString(36).slice(2, 9);
return `<div class="mermaid-block" data-id="${id}">${esc(text)}</div>`;
}
try {
const language = lang && hljs.getLanguage(lang) ? lang : null;
const highlighted = language
? hljs.highlight(text, { language }).value
: hljs.highlightAuto(text).value;
const cls = language ? ` class="language-${language} hljs"` : ' class="hljs"';
return `<pre><code${cls}>${highlighted}</code></pre>`;
} catch(e) {
return `<pre><code>${esc(text)}</code></pre>`;
}
};
// ── Task lists: - [ ] and - [x] ──
renderer.listitem = function(textOrObj) {
let body;
if (typeof textOrObj === 'object' && textOrObj !== null) {
body = textOrObj.text || '';
} else {
body = textOrObj || '';
}
if (body.startsWith('<input')) {
return `<li class="task-list-item">${body}</li>\n`;
}
// Manual check for [ ] and [x]
const checkMatch = body.match(/^\[([ xX])\]\s*/);
if (checkMatch) {
const checked = checkMatch[1] !== ' ';
const rest = body.slice(checkMatch[0].length);
return `<li class="task-list-item"><input type="checkbox" disabled ${checked ? 'checked' : ''}> ${rest}</li>\n`;
}
return `<li>${body}</li>\n`;
};
// ── Links: rewrite relative .md paths to hash routes ──
renderer.link = function(linkOrObj, titleArg, textArg) {
let href, title, text;
if (typeof linkOrObj === 'object' && linkOrObj !== null) {
href = linkOrObj.href || '';
title = linkOrObj.title || '';
text = linkOrObj.text || '';
} else {
href = linkOrObj || '';
title = titleArg || '';
text = textArg || '';
}
// Only rewrite relative .md links (not http/https/# anchors)
if (href && !href.startsWith('http') && !href.startsWith('#') && !href.startsWith('mailto:')) {
href = resolveDocLink(href);
}
const titleAttr = title ? ` title="${esc(title)}"` : '';
const external = href.startsWith('http') ? ' target="_blank" rel="noopener"' : '';
return `<a href="${href}"${titleAttr}${external}>${text}</a>`;
};
// ── Images: add figure + caption from alt text ──
renderer.image = function(imgOrObj, titleArg, altArg) {
let href, title, alt;
if (typeof imgOrObj === 'object' && imgOrObj !== null) {
href = imgOrObj.href || '';
title = imgOrObj.title || '';
alt = imgOrObj.text || '';
} else {
href = imgOrObj || '';
title = titleArg || '';
alt = altArg || '';
}
// Shields.io badges — render inline, no figure
if (href.includes('shields.io') || href.includes('img.shields.io')) {
return `<img src="${href}" alt="${esc(alt)}" title="${esc(title)}">`;
}
// Regular images — wrap in figure with optional caption
const caption = alt && alt !== href ? `<figcaption>${esc(alt)}</figcaption>` : '';
return `<figure><img src="${href}" alt="${esc(alt)}" title="${esc(title)}" loading="lazy">${caption}</figure>`;
};
marked.setOptions({ breaks: false, gfm: true });
let html = marked.parse(md, { renderer });
// ── Admonitions: > **Note:** / > **Warning:** / > **Tip:** ──
// Replace the entire blockquote in one pass to avoid breaking normal blockquotes
html = html.replace(/<blockquote>\s*<p><strong>(Note|Warning|Tip|Info|Caution|Important):?<\/strong>\s*([\s\S]*?)<\/p>\s*<\/blockquote>/gi, function(match, type, content) {
const t = type.toLowerCase();
const icons = { note: '📝', warning: '⚠️', tip: '💡', info: 'ℹ️', caution: '🚨', important: '❗' };
const colors = { note: 'blue', warning: 'amber', tip: 'emerald', info: 'sky', caution: 'red', important: 'purple' };
const c = colors[t] || 'blue';
return `<div class="admonition admonition-${t} border-l-4 border-${c}-400 dark:border-${c}-600 bg-${c}-50 dark:bg-${c}-900/20 rounded-r-lg p-4 my-4"><p class="font-semibold text-${c}-700 dark:text-${c}-400 mb-1">${icons[t] || ''} ${type}</p><p>${content}</p></div>`;
});
return html;
}
// Post-render: activate mermaid blocks and KaTeX math
function postRenderMarkdown(containerEl) {
if (!containerEl) return;
// ── Mermaid ──
const mermaidBlocks = containerEl.querySelectorAll('.mermaid-block');
if (mermaidBlocks.length) {
initMermaid();
mermaidBlocks.forEach(async function(block) {
try {
const { svg } = await mermaid.render(block.dataset.id, block.textContent.trim());
block.innerHTML = svg;
block.classList.add('mermaid-rendered');
} catch(e) {
block.innerHTML = '<pre class="text-red-400 text-xs">Mermaid error: ' + esc(e.message) + '</pre>';
}
});
}
// ── KaTeX math: $..$ inline, $$...$$ display ──
if (typeof renderMathInElement === 'function') {
renderMathInElement(containerEl, {
delimiters: [
{ left: '$$', right: '$$', display: true },
{ left: '$', right: '$', display: false },
{ left: '\\(', right: '\\)', display: false },
{ left: '\\[', right: '\\]', display: true },
],
throwOnError: false
});
}
}
// ─── Theme ──────────────────────────────────────────────────────────────────
function initTheme() {
const saved = localStorage.getItem('tc-theme');
const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
const dark = saved === 'dark' || (!saved && prefersDark);
applyTheme(dark);
}
function applyTheme(dark) {
document.documentElement.classList.toggle('dark', dark);
$('#icon-sun').classList.toggle('hidden', !dark);
$('#icon-moon').classList.toggle('hidden', dark);
$('#hljs-dark').disabled = !dark;
$('#hljs-light').disabled = dark;
localStorage.setItem('tc-theme', dark ? 'dark' : 'light');
}
$('#theme-toggle').addEventListener('click', () => {
applyTheme(!document.documentElement.classList.contains('dark'));
});
$('#mobile-menu-btn').addEventListener('click', () => {
$('#mobile-menu').classList.toggle('hidden');
});
// ─── SEO: Dynamic page meta ──────────────────────────────────────────────────
function updatePageMeta(title, description) {
document.title = title;
const setMeta = (sel, attr, val) => { const el = document.querySelector(sel); if (el) el.setAttribute(attr, val); };
setMeta('meta[name="description"]', 'content', description);
setMeta('meta[property="og:title"]', 'content', title);
setMeta('meta[property="og:description"]', 'content', description);
setMeta('meta[name="twitter:title"]', 'content', title);
setMeta('meta[name="twitter:description"]', 'content', description);
}
// ─── Router ─────────────────────────────────────────────────────────────────
function router() {
const hash = location.hash.slice(1) || '/';
const app = $('#app');
$('#mobile-menu').classList.add('hidden');
// Update active nav link
$$('.nav-link').forEach(a => {
const href = a.getAttribute('href').slice(1);
const isActive = hash === href || (href !== '/' && hash.startsWith(href));
a.classList.toggle('text-brand-600', isActive);
a.classList.toggle('dark:text-brand-400', isActive);
a.classList.toggle('text-gray-600', !isActive);
a.classList.toggle('dark:text-gray-400', !isActive);
});
if (hash === '/' || hash === '/home') {
updatePageMeta(
'ToolsConnector — Python Library for 68 API Connectors | AI Agents & MCP',
'Open-source Python library for AI agents and Python apps. Unified interface to 68 APIs with 1,370 typed actions — Gmail, Slack, GitHub, Stripe, OpenAI, Anthropic, LinkedIn, X (Twitter), and 60 more. MCP server, function calling, and tool use built in.'
);
renderHome(app); window.scrollTo(0,0); return;
}
if (hash === '/connectors' || hash.startsWith('/connectors?')) {
updatePageMeta(
'All 68 API Connectors — ToolsConnector',
'Browse all 68 API connectors: Gmail, Slack, GitHub, Stripe, OpenAI, Anthropic, LinkedIn, X (Twitter), Medium, 14 AWS services, Jira, Notion, and 45 more. Each with 4–30 typed actions for Python and AI agents.'
);
renderConnectors(app); window.scrollTo(0,0); return;
}
if (hash.startsWith('/connector/')) {
const cname = hash.slice(11).split('?')[0];
const conn = DATA[cname] || {};
const displayName = conn.display_name || cname;
const actionCount = Object.keys(conn.actions || {}).length;
const category = conn.category || 'API';
updatePageMeta(
`${displayName} Python Connector — ${actionCount} Actions | ToolsConnector`,
`Use ${displayName} in Python or AI agents with ${actionCount} typed actions. Works with OpenAI, Anthropic, MCP, Gemini, and LangChain. pip install "toolsconnector[${cname}]"`
);
renderConnectorDetail(app, cname); window.scrollTo(0,0); return;
}
if (hash === '/playground') {
updatePageMeta(
'API Playground — ToolsConnector',
'Generate ready-to-run Python code for any of 68 API connectors. Copy-paste snippets for OpenAI function calling, Anthropic tool use, MCP server, and direct Python usage.'
);
renderPlayground(app); window.scrollTo(0,0); return;
}
if (hash === '/assistant') {
updatePageMeta(
'AI Assistant — ToolsConnector',
'Ask questions about ToolsConnector connectors, actions, and usage. Powered by your choice of OpenRouter or HuggingFace free models. API key stays in your browser.'
);
renderAssistant(app); window.scrollTo(0,0); return;
}
if (hash.startsWith('/docs')) {
const docKey = hash.replace(/^\/docs\/?/, '') || 'home';
const docData = DOCS_CONTENT[docKey] || {};
const docTitle = docData.title || 'Documentation';
updatePageMeta(
`${docTitle} — ToolsConnector Docs`,
`${docTitle} guide for ToolsConnector — the unified Python API connector library for AI agents and Python apps.`
);
renderDocs(app, hash); window.scrollTo(0,0); return;
}
if (hash === '/health') {
updatePageMeta('Connector Health Dashboard — ToolsConnector', 'Live connectivity status for all 68 ToolsConnector API connectors.');
renderHealth(app); window.scrollTo(0,0); return;
}
app.innerHTML = `<div class="page-transition text-center py-20"><h2 class="text-2xl font-bold mb-4">Page not found</h2><a href="#/" class="text-brand-600 hover:underline">Back to home</a></div>`;
}
// ─── Page: Home (Landing Page) ──────────────────────────────────────────────
function renderHome(el) {
// Tool logos — domain used to build Brandfetch URL via applyLogos()
const toolLogos = [
['mail.google.com','Gmail'],['slack.com','Slack'],['github.com','GitHub'],['stripe.com','Stripe'],
['openai.com','OpenAI'],['anthropic.com','Anthropic'],['notion.so','Notion'],['atlassian.com','Jira'],
['discord.com','Discord'],['aws.amazon.com','AWS S3'],['salesforce.com','Salesforce'],['hubspot.com','HubSpot'],
['twilio.com','Twilio'],['shopify.com','Shopify'],['figma.com','Figma'],['linear.app','Linear'],
['asana.com','Asana'],['calendar.google.com','Calendar'],['microsoft.com','Teams'],['mongodb.com','MongoDB'],
];
const logosHtml = toolLogos.map(([domain,label]) => {
const bf = 'https://cdn.brandfetch.io/' + domain + '?c=1idiVFVAawYfs0vBpzR';
return `<div class="flex flex-col items-center gap-2 p-4"><img data-logo="${bf}" src="" alt="${label}" class="w-10 h-10 object-contain" onerror="this.parentElement.style.display='none'"><span class="text-xs text-gray-500 dark:text-gray-400 font-medium">${label}</span></div>`;
}).join('');
const remaining = Math.max(0, STATS.connectors - toolLogos.length);
// Category grid with icons
const catGrid = Object.entries(CATEGORIES).sort((a,b) => b[1]-a[1]).map(([cat, count]) => {
const c = CATEGORY_COLORS[cat] || 'gray';
return `<a href="#/connectors?category=${cat}" class="card-hover flex items-center gap-4 p-4 rounded-xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 hover:border-brand-400 hover:shadow-lg transition-all">
<div class="w-10 h-10 rounded-lg bg-${c}-100 dark:bg-${c}-900/30 text-${c}-600 dark:text-${c}-400 flex items-center justify-center flex-shrink-0">${catIcon(cat)}</div>
<div><div class="text-sm font-semibold">${CATEGORY_LABELS[cat] || cat}</div><div class="text-xs text-gray-400">${count} connectors</div></div>
</a>`;
}).join('');
el.innerHTML = `<div class="page-transition">
<!-- Section 1: Hero -->
<section class="text-center pt-12 pb-16 sm:pt-20 sm:pb-24">
<div class="flex justify-center mb-8">
<img src="logo.svg" alt="ToolsConnector" class="w-24 h-24 sm:w-28 sm:h-28 drop-shadow-lg">
</div>
<h1 class="text-5xl sm:text-6xl lg:text-7xl font-extrabold tracking-tight mb-6">
<span class="gradient-text">One library, every tool.</span>
</h1>
<p class="text-lg sm:text-xl text-gray-600 dark:text-gray-400 max-w-3xl mx-auto leading-relaxed mb-10">
Connect AI agents and Python apps to ${STATS.connectors}+ APIs through a single, standardized interface.
Open source. Self-hosted. Works everywhere.
</p>
<div class="flex flex-wrap justify-center gap-8 sm:gap-12 mb-10">
<div class="text-center"><div class="text-3xl sm:text-4xl font-bold text-brand-600">${STATS.connectors}</div><div class="text-xs font-medium text-gray-500 uppercase tracking-wider mt-1">Connectors</div></div>
<div class="text-center"><div class="text-3xl sm:text-4xl font-bold text-purple-600 dark:text-purple-400">${STATS.actions.toLocaleString()}</div><div class="text-xs font-medium text-gray-500 uppercase tracking-wider mt-1">Actions</div></div>
<div class="text-center"><div class="text-3xl sm:text-4xl font-bold text-emerald-600 dark:text-emerald-400">${STATS.categories}</div><div class="text-xs font-medium text-gray-500 uppercase tracking-wider mt-1">Categories</div></div>
</div>
<div class="flex flex-col sm:flex-row justify-center gap-3">
<a href="#/docs/quickstart" class="inline-flex items-center justify-center gap-2 px-7 py-3 rounded-xl bg-brand-700 hover:bg-brand-800 text-white font-semibold transition-colors shadow-lg">Get Started <svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M13.5 4.5L21 12m0 0l-7.5 7.5M21 12H3"/></svg></a>
<a href="#/connectors" class="inline-flex items-center justify-center gap-2 px-7 py-3 rounded-xl border border-gray-300 dark:border-gray-700 hover:border-brand-400 font-semibold transition-colors bg-white dark:bg-gray-900">Browse Connectors</a>
</div>
</section>
<!-- Section 2: The Problem -->
<section class="py-16 sm:py-20">
<div class="text-center mb-12">
<h2 class="text-2xl sm:text-3xl font-bold mb-3">Why this exists</h2>
<p class="text-gray-500 dark:text-gray-400">Three problems every developer building with APIs hits.</p>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 max-w-5xl mx-auto">
<div class="p-6 rounded-2xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900">
<div class="w-12 h-12 rounded-xl bg-red-50 dark:bg-red-900/20 flex items-center justify-center mb-4"><svg class="w-6 h-6 text-red-500" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M3.75 6A2.25 2.25 0 016 3.75h2.25A2.25 2.25 0 0110.5 6v2.25a2.25 2.25 0 01-2.25 2.25H6a2.25 2.25 0 01-2.25-2.25V6zM3.75 15.75A2.25 2.25 0 016 13.5h2.25a2.25 2.25 0 012.25 2.25V18a2.25 2.25 0 01-2.25 2.25H6A2.25 2.25 0 013.75 18v-2.25zM13.5 6a2.25 2.25 0 012.25-2.25H18A2.25 2.25 0 0120.25 6v2.25A2.25 2.25 0 0118 10.5h-2.25a2.25 2.25 0 01-2.25-2.25V6zM13.5 15.75a2.25 2.25 0 012.25-2.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-2.25a2.25 2.25 0 01-2.25-2.25v-2.25z"/></svg></div>
<h3 class="text-lg font-semibold mb-2">Fragmented SDKs</h3>
<p class="text-sm text-gray-600 dark:text-gray-400 leading-relaxed">Every tool has a different SDK, auth pattern, and error format. Managing 10 SDKs in one project is painful.</p>
</div>
<div class="p-6 rounded-2xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900">
<div class="w-12 h-12 rounded-xl bg-amber-50 dark:bg-amber-900/20 flex items-center justify-center mb-4"><svg class="w-6 h-6 text-amber-500" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.455 2.456L21.75 6l-1.036.259a3.375 3.375 0 00-2.455 2.456z"/></svg></div>
<h3 class="text-lg font-semibold mb-2">AI agents need tools</h3>
<p class="text-sm text-gray-600 dark:text-gray-400 leading-relaxed">LLMs can't call APIs directly. You need schemas, execution, retries, and rate limiting for every tool.</p>
</div>
<div class="p-6 rounded-2xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900">
<div class="w-12 h-12 rounded-xl bg-blue-50 dark:bg-blue-900/20 flex items-center justify-center mb-4"><svg class="w-6 h-6 text-blue-500" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"/></svg></div>
<h3 class="text-lg font-semibold mb-2">Build vs. Buy</h3>
<p class="text-sm text-gray-600 dark:text-gray-400 leading-relaxed">Hosted platforms lock you in. Raw APIs take weeks. There's no open-source middle ground.</p>
</div>
</div>
<div class="text-center mt-10">
<svg class="w-6 h-6 mx-auto text-gray-300 dark:text-gray-600 mb-3" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 13.5L12 21m0 0l-7.5-7.5M12 21V3"/></svg>
<p class="text-sm font-semibold text-brand-600 dark:text-brand-400">ToolsConnector solves all three.</p>
</div>
</section>
<!-- Section 3: How It Works -->
<section class="py-16 sm:py-20">
<div class="text-center mb-12">
<h2 class="text-2xl sm:text-3xl font-bold mb-3">How it works</h2>
<p class="text-gray-500 dark:text-gray-400">Three steps. From install to production.</p>
</div>
<div class="grid grid-cols-1 xl:grid-cols-3 gap-5 items-stretch">
<div class="flex flex-col rounded-2xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 overflow-hidden">
<div class="flex items-center gap-3 px-4 pt-4 pb-2"><div class="w-8 h-8 rounded-full bg-brand-600 text-white flex items-center justify-center text-sm font-bold flex-shrink-0">1</div><div><h3 class="text-lg font-semibold">Install</h3><p class="text-xs text-gray-400">Pick the connectors you need</p></div></div>
<div class="flex-1 px-4 pb-4"><pre class="bg-gray-900 text-gray-100 rounded-xl p-4 text-xs overflow-hidden h-full flex items-start leading-relaxed"><code><span class="text-emerald-400">$</span> pip install "toolsconnector[gmail]"
<span class="text-gray-500"># Or multiple connectors</span>
<span class="text-emerald-400">$</span> pip install "toolsconnector[gmail,slack]"
<span class="text-gray-500"># Or install everything</span>
<span class="text-emerald-400">$</span> pip install "toolsconnector[all]"</code></pre></div>
</div>
<div class="flex flex-col rounded-2xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 overflow-hidden">
<div class="flex items-center gap-3 px-4 pt-4 pb-2"><div class="w-8 h-8 rounded-full bg-brand-600 text-white flex items-center justify-center text-sm font-bold flex-shrink-0">2</div><div><h3 class="text-lg font-semibold">Connect</h3><p class="text-xs text-gray-400">One object, any number of tools</p></div></div>
<div class="flex-1 px-4 pb-4"><pre class="bg-gray-900 text-gray-100 rounded-xl p-4 text-xs overflow-hidden h-full flex items-start leading-relaxed"><code><span class="text-purple-400">from</span> <span class="text-emerald-400">toolsconnector.serve</span> <span class="text-purple-400">import</span> ToolKit
kit = ToolKit(
[<span class="text-amber-300">"gmail"</span>, <span class="text-amber-300">"slack"</span>],
credentials={
<span class="text-amber-300">"gmail"</span>: os.environ[<span class="text-amber-300">"GMAIL_TOKEN"</span>],
}
)</code></pre></div>
</div>
<div class="flex flex-col rounded-2xl border border-gray-200 dark:border-gray-800 bg-white dark:bg-gray-900 overflow-hidden">
<div class="flex items-center gap-3 px-4 pt-4 pb-2"><div class="w-8 h-8 rounded-full bg-brand-600 text-white flex items-center justify-center text-sm font-bold flex-shrink-0">3</div><div><h3 class="text-lg font-semibold">Use anywhere</h3><p class="text-xs text-gray-400">Python, MCP, or any AI framework</p></div></div>
<div class="flex-1 px-4 pb-4"><pre class="bg-gray-900 text-gray-100 rounded-xl p-4 text-xs overflow-hidden h-full flex items-start leading-relaxed"><code><span class="text-gray-500"># Execute directly</span>
kit.execute(<span class="text-amber-300">"gmail_list_emails"</span>, {})
<span class="text-gray-500"># MCP Server (Claude Desktop)</span>
kit.serve_mcp()
<span class="text-gray-500"># OpenAI / Anthropic schemas</span>
tools = kit.to_openai_tools()</code></pre></div>
</div>
</div>