1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+
4+ < head >
5+ < meta charset ="UTF-8 ">
6+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7+ < title > Holo Bridge - Documentation</ title >
8+ < meta name ="description "
9+ content ="A type-safe TypeScript bridge between websites and Discord bots. REST API and WebSocket interface for full Discord bot capabilities. ">
10+ < link rel ="stylesheet " href ="styles.css ">
11+ </ head >
12+
13+ < body >
14+ < header >
15+ < div class ="container header-content ">
16+ < a href ="index.html " class ="logo "> Holo Bridge</ a >
17+ < nav >
18+ < a href ="index.html " class ="active "> Home</ a >
19+ < a href ="getting-started.html "> Getting Started</ a >
20+ < a href ="api-reference.html "> API Reference</ a >
21+ < a href ="websocket.html "> WebSocket</ a >
22+ < button class ="theme-toggle " onclick ="toggleTheme() "> Toggle Theme</ button >
23+ </ nav >
24+ </ div >
25+ </ header >
26+
27+ < main >
28+ < div class ="container ">
29+ < section class ="hero ">
30+ < h1 > Holo Bridge</ h1 >
31+ < p > A type-safe TypeScript bridge between websites and Discord bots. Provides a REST API and WebSocket
32+ interface for full Discord bot capabilities.</ p >
33+ < div class ="btn-group ">
34+ < a href ="getting-started.html " class ="btn btn-primary "> Get Started</ a >
35+ < a href ="api-reference.html " class ="btn btn-secondary "> API Reference</ a >
36+ </ div >
37+ </ section >
38+
39+ < section class ="features ">
40+ < div class ="feature-card ">
41+ < h3 > 🌐 REST API</ h3 >
42+ < p > Full REST API for all Discord operations including guilds, channels, messages, members, and
43+ roles.</ p >
44+ </ div >
45+ < div class ="feature-card ">
46+ < h3 > ⚡ WebSocket Events</ h3 >
47+ < p > Real-time event streaming via Socket.IO. Subscribe to guilds and receive Discord events
48+ instantly.</ p >
49+ </ div >
50+ < div class ="feature-card ">
51+ < h3 > 🔒 Type-Safe</ h3 >
52+ < p > Built with TypeScript and Zod validation. Every request and response is fully typed.</ p >
53+ </ div >
54+ < div class ="feature-card ">
55+ < h3 > 📦 Full Coverage</ h3 >
56+ < p > Guilds, Channels, Roles, Members, Bans, Timeouts, Messages, Reactions, Pins, and more.</ p >
57+ </ div >
58+ </ section >
59+
60+ < h2 > Quick Links</ h2 >
61+ < div class ="cards ">
62+ < a href ="getting-started.html " class ="card ">
63+ < h4 > 📚 Getting Started</ h4 >
64+ < p > Installation, configuration, and running the server.</ p >
65+ </ a >
66+ < a href ="api-reference.html " class ="card ">
67+ < h4 > 📖 API Reference</ h4 >
68+ < p > Complete REST API endpoint documentation.</ p >
69+ </ a >
70+ < a href ="websocket.html " class ="card ">
71+ < h4 > ⚡ WebSocket Events</ h4 >
72+ < p > Real-time event streaming documentation.</ p >
73+ </ a >
74+ < a href ="https://github.com " class ="card " target ="_blank ">
75+ < h4 > 💻 Source Code</ h4 >
76+ < p > View the source code on GitHub.</ p >
77+ </ a >
78+ </ div >
79+
80+ < h2 > Features Overview</ h2 >
81+ < h3 > Discord Operations</ h3 >
82+ < ul >
83+ < li > < strong > Guilds</ strong > - List guilds, get details, channels, roles, emojis, bans, invites</ li >
84+ < li > < strong > Channels</ strong > - Create, edit, delete channels and threads</ li >
85+ < li > < strong > Messages</ strong > - Send, edit, delete, bulk delete, reactions, pins</ li >
86+ < li > < strong > Members</ strong > - List, search, kick, ban, timeout, role management</ li >
87+ < li > < strong > Roles</ strong > - Create, edit, delete, permissions management</ li >
88+ </ ul >
89+
90+ < h3 > Real-Time Events</ h3 >
91+ < ul >
92+ < li > < strong > Message Events</ strong > - messageCreate, messageUpdate, messageDelete</ li >
93+ < li > < strong > Member Events</ strong > - guildMemberAdd, guildMemberRemove, guildMemberUpdate</ li >
94+ < li > < strong > Channel Events</ strong > - channelCreate, channelUpdate, channelDelete</ li >
95+ < li > < strong > Role Events</ strong > - roleCreate, roleUpdate, roleDelete</ li >
96+ < li > < strong > Voice Events</ strong > - voiceStateUpdate</ li >
97+ < li > < strong > Guild Events</ strong > - guildBanAdd, guildBanRemove</ li >
98+ </ ul >
99+ </ div >
100+ </ main >
101+
102+ < footer >
103+ < div class ="container ">
104+ < p > Holo Bridge © 2025 - MIT License</ p >
105+ </ div >
106+ </ footer >
107+
108+ < script >
109+ function toggleTheme ( ) {
110+ const html = document . documentElement ;
111+ const current = html . getAttribute ( 'data-theme' ) ;
112+ if ( current === 'dark' ) {
113+ html . setAttribute ( 'data-theme' , 'light' ) ;
114+ localStorage . setItem ( 'theme' , 'light' ) ;
115+ } else if ( current === 'light' ) {
116+ html . setAttribute ( 'data-theme' , 'dark' ) ;
117+ localStorage . setItem ( 'theme' , 'dark' ) ;
118+ } else {
119+ // First toggle - check what the current preference is
120+ const prefersDark = window . matchMedia ( '(prefers-color-scheme: dark)' ) . matches ;
121+ const newTheme = prefersDark ? 'light' : 'dark' ;
122+ html . setAttribute ( 'data-theme' , newTheme ) ;
123+ localStorage . setItem ( 'theme' , newTheme ) ;
124+ }
125+ }
126+
127+ // Load saved theme
128+ ( function ( ) {
129+ const saved = localStorage . getItem ( 'theme' ) ;
130+ if ( saved ) {
131+ document . documentElement . setAttribute ( 'data-theme' , saved ) ;
132+ }
133+ } ) ( ) ;
134+ </ script >
135+ </ body >
136+
137+ </ html >
0 commit comments