{"id":18469779,"url":"https://github.com/valen-h/livechat","last_synced_at":"2025-04-08T10:32:52.205Z","repository":{"id":143795685,"uuid":"163090148","full_name":"Valen-H/LiveChat","owner":"Valen-H","description":"LiveChat is a sytem built upon express4/socket.io/babel which offers chatting functionality over HTTP.","archived":false,"fork":false,"pushed_at":"2018-12-30T18:18:19.000Z","size":5343,"stargazers_count":5,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T11:33:12.480Z","etag":null,"topics":["babel","chat","express","nodejs","rooms","server","socket-io","websockets"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Valen-H.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-25T14:39:21.000Z","updated_at":"2021-08-23T07:50:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"43727ed7-dee8-4f8a-b1bc-5ad089e2a90b","html_url":"https://github.com/Valen-H/LiveChat","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FLiveChat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FLiveChat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FLiveChat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Valen-H%2FLiveChat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Valen-H","download_url":"https://codeload.github.com/Valen-H/LiveChat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247824283,"owners_count":21002242,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","chat","express","nodejs","rooms","server","socket-io","websockets"],"created_at":"2024-11-06T10:11:42.325Z","updated_at":"2025-04-08T10:32:52.199Z","avatar_url":"https://github.com/Valen-H.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿\n# LiveChat  \nLiveChat is a sytem built upon express4/socket.io/babel which offers chatting functionality over HTTP.  \n  \n## CLI  \nThe supported CLI commands are:  \n* exit - close server and exit cli  \n* quit - close cli but keep server open  \n* system comm - execute a system command  \n* restart - restart server and cli  \n* clear - clear cli output  \n* logs - view logs  \n* erase - erase logs  \n* say id msg - send message to a client identified by his socket.io id  \n* sayall msg - send message to all clients connected  \n* eval comm - send a command to be eval'd locally on client's pc  \n* refresh [clientId] - refresh all client browsers or a specific one  \n* help command - command(s) help  \n\u003e When no command is passed but a message is given, it's executed locally on the server  \n\u003e default commands prefix is '.', start all commands with this except the server-eval  \n  \n## Browser Commands  \nThere are several in-chat commands too:  \n* disconnect - Close WebSocket (which by default causes browser refresh in 5 seconds)  \n* admin pass - Login as admin through chat to unlock more commands  \n\u003e Current chat prefix is `!!`  \n\u003e *Inline commands also exist!!*  \n* `$bBOLD$b`, `$iItalic$i`, `$uUnderline$u`, `$USR`(username), `$d`(date)  \n\u003e escape them as `$\\b`  \n  \n## Other Features  \n* When the server main files are changed, the server automatically reloads unless the environmental variable BLOCKRELOAD is passed,  \nSimilarily, when `client/JS` files are edited they get converted to ES5 and served under `client/JS5`, they get minified and Flow-compiled aswell,  \nBlock the automatic rebuild with the BLOCKBUILD environmental variable.  \n* The default serving path can be changed from `./client` to a custom one through `config.json`  \n* You can force `babel` compilation with `npm run build` but this requires the package to be installed as `--save-dev` and default standards to be followed.  \n* The server works with the Node-builtin `cluster` module and communicates with each shard with an `ipc` socket (not redis!)  \n* The server auto-restarts on fatal/syntax errors and abnormal quits and catches globally unhandled errors.  \n* Serving the special `.htmx`/`.htmlx`/`.jsx`/`.cssx` files leads to the translation of `@@\\expression@@\\` expressions in them before serving. Appending a `\\` (escape sequence) after the `@@` escapes the whole expression from being evaluated (like this example).  \n* There are also the special `.xtml`/`.xtm`/`.xjs`/`.xcss` files that get processed once at launch-time.  \n\u003e Note that these evaluations happen server-side!!  \n* The history of the last 50 messages posted is kept but discarded upon server restart. The max history size can be adjusted from the `config.json` file together with the passwords.  \n* There's also a spam filter that disallows sending requests faster than 800ms, change threshold in `config.json`  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalen-h%2Flivechat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalen-h%2Flivechat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalen-h%2Flivechat/lists"}