{"id":26689396,"url":"https://github.com/t2ym/hooked-app","last_synced_at":"2025-08-10T21:06:32.777Z","repository":{"id":283436094,"uuid":"951170161","full_name":"t2ym/hooked-app","owner":"t2ym","description":"Application Template for thin-hook","archived":false,"fork":false,"pushed_at":"2025-04-01T09:26:43.000Z","size":269,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-22T01:46:21.412Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/t2ym.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2025-03-19T09:13:39.000Z","updated_at":"2025-04-01T09:26:47.000Z","dependencies_parsed_at":"2025-03-20T08:46:28.926Z","dependency_job_id":null,"html_url":"https://github.com/t2ym/hooked-app","commit_stats":null,"previous_names":["t2ym/hooked-app"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/t2ym/hooked-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fhooked-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fhooked-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fhooked-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fhooked-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/t2ym","download_url":"https://codeload.github.com/t2ym/hooked-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/t2ym%2Fhooked-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269787335,"owners_count":24475720,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"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":[],"created_at":"2025-03-26T14:34:27.432Z","updated_at":"2025-08-10T21:06:32.748Z","avatar_url":"https://github.com/t2ym.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Hooked App\n\nApplication Template for [Thin Hook Preprocessor](https://github.com/t2ym/thin-hook)\n\n\n## Table of Contents\n\n- [Hooked App](#hooked-app)\n  - [Table of Contents](#table-of-contents)\n  - [Features](#features)\n  - [Getting Started](#getting-started)\n  - [Customization \\\u0026 Configuration](#customization--configuration)\n    - [Switch to the Lit + TypeScript app](#switch-to-the-lit--typescript-app)\n    - [Change the app hostname](#change-the-app-hostname)\n    - [Change the app version](#change-the-app-version)\n  - [Notes](#notes)\n  - [License](#license)\n\n## Features\n\n- App Template for [Thin Hook Preprocessor](https://github.com/t2ym/thin-hook)\n- Apps\n  - React app in TypeScript\n  - Lit app in TypeScript\n  - Lit app in JavaScript (default)\n\n## Getting Started\n\n1. Prerequisites\n\n- Linux OS (Ubuntu recommended)\n- Node.js (\u003e=18 LTS)\n- GCC compiler (g++)\n- Google Chrome for Linux\n- openssl\n- nginx (for test)\n\n2. Clone the Repo\n\n```sh\ngit clone https://github.com/t2ym/hooked-app\n\n```\n\n3. Install Dependencies\n\n```sh\ncd hooked-app\nnpm run pack # download packages via npm pack\nnpm install \nnpm install # optional dependencies\n```\n\n4. Install Certificates\n\nOptionally, you can copy trusted certificates for an existing thin-hook project to `keys/demoCA/` instead of generating and installing them\n\n```sh\nnpm run build:monitor # build the monitor mode server\n# Input an empty password for the generated client certificate\n\ngoogle-chrome \u0026\n# Navigate to chrome://settings/certificates\n# Import the generated demo root CA\n#   hooked-app/keys/demoCA/demoCA.crt \n# at Authorities tab in Manage Certificates pane\n# Import the generated client certificate \n#   hooked-app/keys/demoCA/client.pfx \n# at Your certificates tab in Manage Certificates pane\n\nnpm run start:monitor # start the monitor mode server\n# Open https://localhost:8080/ and \n# Check if the certificate for the site is trusted\n# Ctrl-C to shutdown the monitor server\n```\n\n5. Test\n\n```sh\n# Start the monitor mode server\nnpm run start:monitor\n```\n- In another terminal\n```sh\nnpm run test:browser\n# Chrome browser opens\n# Click ▶ to start the test\n# Close the browser to quit the test:browser script\n```\n```sh\n# Non-interactive test\nnpm test\n```\n\n6. Build\n\n```sh\nnpm run build\n```\n\n7. Start the Server\n\n```sh\nnpm start\n```\n\n8. Open the App\n\n```sh\ngoogle-chrome https://localhost:8080/ \u0026\n```\n\n9. Open the empty skeleton of Validation Console\n\n```sh\ngoogle-chrome https://localhost:8082/ \u0026\n# Select the client certificate\n```\n\n## Customization \u0026 Configuration\n\n### Switch to the Lit + TypeScript app\n- Change the value of `this.path.raw` as `raw-lit` by setting the array index from `2` to `0`\n\n### Change the app hostname\n- Set the environment variable `SERVER_HOST` as the server hostname in FQDN\n  - If the variable is not defined, the default hostname is `localhost`\n\n### Change the app version\n- Update the value of `this[\"generate-version\"].version`, or\n- Select the version generation scheme at `this[\"generate-version\"].scheme`\n\n## Notes\n- The example modular access policies at `config/policy/` are still experimental\n  - Monolithic policies are recommended\n- The UI libraries at `compat-lib` are old and have to be updated\n\n## License\n\n[BSD-2-Clause](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft2ym%2Fhooked-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ft2ym%2Fhooked-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ft2ym%2Fhooked-app/lists"}