Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/html-extract/hext-on-websockets
Websocket Server for Hext. Hext is a domain-specific language for extracting structured data from HTML documents.
https://github.com/html-extract/hext-on-websockets
async beast boost boost-asio cpp cpp17 seccomp ssl websockets
Last synced: 22 days ago
JSON representation
Websocket Server for Hext. Hext is a domain-specific language for extracting structured data from HTML documents.
- Host: GitHub
- URL: https://github.com/html-extract/hext-on-websockets
- Owner: html-extract
- License: apache-2.0
- Created: 2019-03-19T18:12:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-04T12:43:56.000Z (7 months ago)
- Last Synced: 2024-06-04T14:20:36.601Z (7 months ago)
- Topics: async, beast, boost, boost-asio, cpp, cpp17, seccomp, ssl, websockets
- Language: C++
- Homepage: https://hext.thomastrapp.com
- Size: 38.1 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hext on Websockets
[Hext](https://hext.thomastrapp.com/) is a domain-specific language for extracting structured data from HTML documents.
This is the websocket server behind the "[Try Hext in your Browser!](https://hext.thomastrapp.com)" section.
## Dependencies
* CMake
* OpenSSL
* Boost
* RapidJSON
* [Hext](https://github.com/html-extract/hext)
* Optional: libseccomp
* Testing: websocat, jq## Build
```
cd build
cmake -DCMAKE_BUILD_TYPE=Release .. && make -j8
ls -lh ./hextws
```Build with seccomp enabled (see the list of allowed system calls in [SetupSeccomp.cpp](ws/SetupSeccomp.cpp), YMMV):
```
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DHEXTWS_SECCOMP=On .. && make -j8
ls -lh ./hextws
```## Usage
```
\
./hextws
```## License
All source code of this project is released under the Apache License v2.0.