{"id":26410671,"url":"https://github.com/mr-r0ot/roker.js_library","last_synced_at":"2026-07-02T07:31:40.353Z","repository":{"id":197969730,"uuid":"699773007","full_name":"mr-r0ot/roker.js_library","owner":"mr-r0ot","description":"Hello! We're here to make coding easier! We are here for a brighter future! Encryption, decryption, sending packets and requests, on-the-fly UI changes, client-side and server-side attacks, client-side storage (db), getting user information and many more features easily!","archived":false,"fork":false,"pushed_at":"2024-03-05T17:17:44.000Z","size":120,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-15T18:04:28.534Z","etag":null,"topics":["javascript","js-framework","js-library","roker"],"latest_commit_sha":null,"homepage":"https://mr-r0ot.github.io/roker.js_library/","language":null,"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/mr-r0ot.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,"zenodo":null}},"created_at":"2023-10-03T10:05:31.000Z","updated_at":"2025-02-06T09:52:49.000Z","dependencies_parsed_at":"2023-10-11T17:31:57.597Z","dependency_job_id":"d6a4e3db-1654-441d-b266-6057cf105cd8","html_url":"https://github.com/mr-r0ot/roker.js_library","commit_stats":null,"previous_names":["mr-r0ot/roker.js_library"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mr-r0ot/roker.js_library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-r0ot%2Froker.js_library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-r0ot%2Froker.js_library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-r0ot%2Froker.js_library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-r0ot%2Froker.js_library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mr-r0ot","download_url":"https://codeload.github.com/mr-r0ot/roker.js_library/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mr-r0ot%2Froker.js_library/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35038239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-02T02:00:06.368Z","response_time":173,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["javascript","js-framework","js-library","roker"],"created_at":"2025-03-17T20:19:00.524Z","updated_at":"2026-07-02T07:31:40.333Z","avatar_url":"https://github.com/mr-r0ot.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# roker.JS Library\nHello! We're here to make coding easier! We are here for a brighter future! Encryption, decryption, sending packets and requests, on-the-fly UI changes, client-side and server-side attacks, client-side storage (db), getting user information and many more features easily!\n\n\n# Import To Html Project (Replace the version you want to use with 3.3.3!)\n```\n\u003cscript src=\"https://mr-r0ot.github.io/roker.js_library/roker3.3.3/roker.js\"\u003e\u003c/script\u003e\n```\n\n\n# Running Python Code On Your JS Codes\n```\n//For Installing Python Compiler\n$install_python();\n\n\n//For Running Python Code\n$run_python('YOUR_PYTHON_CODE')\n\n// ||\n// ||\n// \\/\n\n$run_python('print(\"hello world!\")')\n//Or\n$run_python('exec(input(\"Enter Python Code: ))')\n```\n\n\n\n\n\n\n\n# Importing Script Or Css With Roker\n```\n$import_script('PATH_OR_URL_YOUR_SCRIPT');\n$import_style('PATH_OR_URL_YOUR_STYLE');\n$import_html('PATH_OR_URL_HTML_OR_FILE');\n```\n\n\n\n\n\n\n# Security\n```\nANTI functions:\n  Anti Robots:\n    //roker uses various methods such as captcha, browser check, connection and IP check, platform, etc. to identify and block them.\n    $anti_robot();\n\n  User Is Robot?\n    //look into it. It returns true if the user was a robot, and false if the user was not a robot.\n    $is_robot(); //false OR true\n\n  Anti Click From Site:\n    //It prevents the user from right clicking on the site.\n    $anti_click();\n\n  Anti Injection Code:\n    $anti_injection('INPUTING_USER');\n\n  Anti Copy From Site:\n    $anti_copy(text='is a text for copying after copying a text');\n    $anti_copy(code='Your Codes');\n\n  Anti Connect By HTTP:\n    $anti_http('YOUR_JS_CODE');\n    $anti_http('$go_url(\"403.html\")');\n\n  Anti Running On User System(LocalHost):\n    $anti_run_on_system('YOUR_JS_CODE');\n    $anti_run_on_system('$go_url(\"403.html\")');\n\n\n\n\n\nONLY functions:\n  Only WEb:\n    //Only those who visit the website through a safe browser are allowed to enter.\n    $only_web('YOUR_JS_CODE');\n    $only_web('$go_url(\"403.html\")');\n\n  Only HTTP:\n    //Only those who visit the website via http are allowed to enter.\n    $only_http('YOUR_JS_CODE');\n    $only_http('$go_url(\"403.html\")');\n\n  Only HTTPS:\n    //Only those who visit the website via https are allowed to enter.\n    $only_https('YOUR_JS_CODE');\n    $only_https('$go_url(\"403.html\")');\n\n  Only file(LOCAL):\n    //Only those who visit the website via file(LOCAL) are allowed to enter.\n    $only_file('YOUR_JS_CODE');\n    $only_file('$go_url(\"403.html\")');\n\n  Only platform:\n    //You can specify that only the platforms you want can visit your site.\n    $only_platform('YOUR_JS_CODE', 'android');\n    $only_platform('$go_url(\"403.html\")', 'windows');\n\n  Only browser:\n    //You can specify that only the browsers you want can visit your site.\n    $only_browser('YOUR_JS_CODE', 'firefox');\n    $only_browser('$go_url(\"403.html\")', 'chrome');\n\n  Only ip:\n    //You can specify that only the IPs you want can visit your site.\n    $only_ip('YOUR_JS_CODE', '127.0.0.1');\n    $only_ip('$go_url(\"403.html\")', '43.764.64.7');\n\n  Only only_onlion:\n    //You can specify that only users who are online at all can visit your site\n    $only_only_onlion('YOUR_JS_CODE');\n    $only_only_onlion('$go_url(\"403.html\")');\n\n  Only cookie_is_on:\n    //You can specify that only users who have cookies enabled in their browsers can visit your website.\n    $only_cookie_is_on('YOUR_JS_CODE');\n    $only_cookie_is_on('$go_url(\"403.html\")');\n\n  Only java_is_on:\n    //You can specify that only users who have run java enabled in their browsers can visit your website.\n    $only_java_is_on('YOUR_JS_CODE');\n    $only_java_is_on('$go_url(\"403.html\")');\n\n\n\n\n\nBLOCK:\n  Block a IP:\n    //You can block the desired IPs and prevent them from accessing the site.\n    $block_ip('YOUR_JS_CODE', '127.0.0.1');\n    $block_ip('$go_url(\"403.html\")', '0.0.0.0');\n\n  Block a platform:\n    //You can block the desired platforms and prevent them from accessing the site.\n    $block_platform('YOUR_JS_CODE', 'android');\n    $block_platform('$go_url(\"403.html\")', 'linux');\n\n  Block a browser:\n    //You can block the desired browsers and prevent them from accessing the site.\n    $block_browser('YOUR_JS_CODE', 'firefox');\n    $block_browser('$go_url(\"403.html\")', 'anonymous');\n\n\n```\n\n\n\n# Disable\n```\n$disable_ctrlKey();\n$disable_altKey();\n$disable_Keyboard();\n$disable_shiftKey();\n$disable_type();\n$disable_bubbles();\n$disable_Key(key)\n```\n\n\n\n# Encodeing And DEcodeing With Roker.js\n```\nEncoding JS Code:\n  $encode_JScode(text,power=2,end='base16')// (text) is your js code; power is your power encoding 2 is good; end is end encoding [base64, base32, base16, binary]\n\n\nMD5:\n  CryptoJS.MD5('text')  //Encodeing With MD5 Hash\n\n\nbase58:\n  $encode_base58('text')  //Encodeing With BASE58\n  $decode_base58('text encoded')  //Decodeing With BASE58\n\n\nbase85:\n  $encode_base85('text')  //Encodeing With BASE85\n  $decode_base85('text encoded')  //Decodeing With BASE85\n\n\nbase16:\n  $encode_base16('text')  //Encodeing With BASE16\n  $decode_base16('text encoded')  //Decodeing With BASE16\n\n\nbase32:\n  $encode_base32('text')  //Encodeing With BASE32\n  $decode_base32('text encoded')  //Decodeing With BASE32\n\n\nbase64++:\n  $encode_base64('text', key=5)  //Encodeing With BASE64 (Your Can Encodeing Text With A KEY And Decodeing With It KEY)\n  $decode_base64('text encoded', key=5)  //Decodeing With BASE64 (Your Can Encodeing Text With A KEY And Decodeing With It KEY)\n  $crack_key_base64('text encoded')  //Cracking And Hacking Key A Encode Text !\n  $compile_base64('js code encode with base64', key=5)  //Compile Encoded JS Code\n\n\nbinary:\n  $encode_binary('text') //Encodeing text to binary\n  $decode_binary('encoded text')\n\n\nAES:\n  $encode_AES('text') //Encodeing text to binary\n  $decode_AES('encoded text')\n\n\nSerpent:\n  $encode_Serpent('text') //Encodeing text to binary\n  $decode_Serpent('encoded text')\n\n\nTwofish:\n  $encode_Twofish('text') //Encodeing text to binary\n  $decode_Twofish('encoded text')\n\n\nSkipjack:\n  $encode_Skipjack('text') //Encodeing text to binary\n  $decode_Skipjack('encoded text')\n\n\n```\n\n\n\n\n\n\n# clintDB (Save Info In Database On System User)\n```\n\n$clintDB_add_data(name, data)  //Add A Data To Database\n$clintDB_get_data(name)  //Get Data By Name From Database\n$clintDB_remove_data(name)  //Remove A Data From Database\n$clintDB_clear_all_data()  //Clear All Data Database\n$clintDB_datas()  //Show All Data Database\n\n// Your Can Encodeing Data And Save In db\n$clintDB_add_data('username', $encode_base85('taha'))\n\n// Your Can Clear Data And Save In db\n$clintDB_add_data('username', $inti_injection(' \u003cscript\u003ealert(\"Bad Code!!!\")\u003c/script\u003e '))  //---\u003e username: scriptalertbadcodescript\n```\n\n\n\n\n# $is_new_user (Is the user visiting the site for the first time?)\n```\n$is_new_user() //true\n$is_new_user() //false\n```\n\n\n\n# Datas\n```\nData conversion:\n  $int(data)\n  $str(data)\n  $float(data)\n\n\nText management:\n  $lower('HEEllo') //Output: heello\n  $upper('he') //Output: HE\n```\n\n\n# Search With Roker\n```\nvar query='Roker.js Library'\n$search_google(query)\n$search_github(query)\n```\n\n\n# Clear Screen And Console\n```\n$clear_screen()  //Cleared Your Site Screen\n$clear_screen('\u003cp\u003e Cleared \u003c/p\u003e')  //Cleared Your Site Screen And Printed Code\n\n$clear_console()  ///Cleared Console\n```\n\n\n# Play Audio\n```\n$play_audio(' Audio URL ')\n```\n\n\n# Reload Page\n```\n$reload()\n```\n\n\n# Open URL\n```\n$go_url(url) //Go To A Url\n$open_url(url)  //Open URL In New TB\n$open_url_window(url, toolbar='yes', width='600', height='500', directories='yes', menubar='yes', scrollbars='yes') //OPen URl In New Windows\n```\n\n# Create Telegram Robots\n```\nSend Telegram Message To A ChatID:\n  $telegram_sendMessage(botToken, chatId, message)\n  //OR\n  $telegram_sendMessage_post(botToken, userId, text)\n\n\nSend Document To A ChatID:\n  $telegram_sendDocument(botToken, chatId, path_file)\n\nGet Info A User With UserID:\n  $telegram_getUserInfo(botToken,userId)\n\n\n========** Telegram Robot Compiler **========\n  $telegram_compile(botToken, messageList, run=false, log=true);\n\n\nEXM:\nconst botToken = 'YOUR_TELEGRAM_BOT_TOKEN';\nconst messageList =[\n  {\n    text: '/start',\n    code: \"$telegram_sendMessage('[//TOKEN//]', '[//USERID//]', 'hello [//TEXT//] Welcom!')\"\n  }\n]\n\nasync function mn_app(){\n  await $telegram_compile(botToken, messageList, run=true, log=true);\n}\nsetInterval(function mn_app, 1000);\n\n==========================================\n\n```\n\n\n\n\n# random\n```\nCreate Random Word:\n  $random_word(letters, number);\n  Exam:\n    $random_word('abcdefjhigklmnopqrstuvwxyz0123456789',8);\n\n\nCreate Random Number\n  $random_number(min, max);\n  Exam:\n    $random_number(5, 801) //Output: 56\n```\n\n\n\n# figlet\n```\n$figlet_base(inputText);\n\nExam:\n  $figlet_base('Roker Lib');\n// Output\n\" _____     ____    _   __  ______   _____            _        _____   ______   \n|  __ \\\\   / __ \\\\  | | / / |  ____| |  __ \\\\       | |      |_   _| |  ____|  \n| |__) \u003e | |  | | | |/ /  | |__    | |__) \u003e         | |        | |   | |__     \n|  _  \u003c  | |  | | |   \u003c   |  __|   |  _  \u003c          | |       _| |_  |___ \\\\    \n| |_) \u003e | |__| | | |\\\\ \\\\  | |____  | |_) \u003e         | |____  |_____|  ____/ /   \n|____/   \\\\____/  |_| \\\\_\\\\ |______| |____/          |______|         |_____/    \n\n```\n\n\n# UI\n```\n$UI_Create(code,type='p')\n\n\n//Your Can Create UI Elements With Down Code\n$UI_Create(code)\n\nExam:\n  $UI_Create('\u003cscript\u003ealert(\"Is $UI_Create !\");\u003c/script\u003e'); //run js\n  $UI_Create('\u003ch1\u003eIs $UI_Create !\u003c/h1\u003e'); //run html\n  $UI_Create('\u003cstyle\u003eh1{color:green}\u003c/style\u003e'); //run css\n```\n\n\n\n# take picture camer\n```\n$take_picture_camera()\n```\n\n\n# Boxs\n```\n$show_box(message)  //Show A Message\n$confirm_box(message)  //Select YES Or NO\n$ask_box(header='title message' ,message='dft message')  //Input Message\n```\n\n\n# Send Requests\n```\nSend Request Post:\n  $request_post(url,data=null)\n\nGet Requests:\n  $request_get(url, callback)\n\nGet Requests Plus:\n  $request_get_plus(url)\n\nSend Packet For Openning Url:\n  $request_get_openurl(url)\n\n\n\nSend Packet:\n  $send_packet_to(path, data_value, data_id, data_name, submit_id)\n\n```\n\n\n\n\n\n# Attack To Clint (Do not test on your own system only for legal attacks!)\n```\n1-  $attack_encode()  //Attack CPU Ecncodeing\n2-  $attack_open_pages(document.URL)  //Attack Opening Very TB\n3-  $attack_print_console()  //Attack Console Pyload Log\n4-  $attack_proc()  //Attack OPEN_PROS\n```\n\n\n\n\n\n\n# Browser Info\n```\nGet LOcation:\n  $browser_get_location()\n\nGet battery:\n  $browser_get_battery()\n\nGet IP:\n  $browser_get_ip(callback)\n  Test:\n    $browser_get_ip(function(ip){alert('Your IP: '+ip)} )\n\nInfo_from_ip:\n  $get_location_from_ip\n  Test:\n    $get_location_from_ip('8.8.8.8',function(info){alert(info)}\n\nGet battery:\n  $browser_platform()\n\nGet userAgent:\n  $browser_userAgent()\n\nGet cpu_info:\n  $browser_cpu_info()\n\nGet language:\n  $browser_language()\n\nScrenn Size:\n  $get_screen_height()\n  $get_screen_width()\n\n$browser_name()\n$browser_buildID()\n$browser_version()\n$browser_onlion()\n$browser_mode()\n$browser_javaEnabled()\n$browser_cookieEnabled()\n$browser_is_webdriver()\n$browser_pdfViewerEnabled()\n$browser_number_plugins_installed()\n$browser_devices()\n\n\n```\n\n\n\n\n\n# CK access\n```\n$access_open_page()  //false\n$access_clear_console()  //true\n```\n\n\n# $get_url_query(q)\n```\nhttps://YOURSITE.com?name=taha\n$get_url_query('name=')  //taha\n```\n\n\n\n\n# GET Code\n```\n// get data a htm\n$get_text_by_id(id)\n$get_text_by_tag(tag)\n$get_text_by_class(class_name)\n\n$get_html_by_id(id)\n$get_html_by_tag(tag)\n$get_html_by_class(class_name)\n\n$get_src_by_id(id)\n$get_src_by_tag(tag)\n$get_src_by_class(class_name)\n\n\n$get_baseURI()\n$get_cookie()\n$get_site_type()\n$get_domain()\n$get_domConfig()\n$get_lastModified()\n$get_readyState()\n$get_referrer()\n$get_siteURL()\n$get_hostname()\n$get_protocol()\n$get_data()\n$get_title()\n$get_body()\n$get_html()\n$get_embeds()\n$get_forms()\n$get_head()\n$get_images()\n$get_links()\n$get_scripts()\n```\n\n\n# SET Code\n```\n$set_text_by_id(id, text)\n$set_text_by_tag(tag, text)\n$set_text_by_class(class_name, text)\n\n$set_hidden_by_id(id)\n$set_hidden_by_tag(tag)\n$set_hidden_by_class(class_name)\n\n$set_show_by_id(id)\n$set_show_by_tag(tag)\n$set_show_by_class(class_name)\n\n\nSITE:\n  $set_title(title)\n  $set_cookie(cookie)\n  $set_body_background_color(color)\n```\n\n\n# Click\n```\n$click_text_by_id(id, text)\n$click_text_by_tag(tag, text)\n$click_text_by_class(class_name, text)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-r0ot%2Froker.js_library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmr-r0ot%2Froker.js_library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmr-r0ot%2Froker.js_library/lists"}