{"id":23854969,"url":"https://github.com/ara-framework/hypernova-angular","last_synced_at":"2026-05-12T23:33:04.264Z","repository":{"id":48313841,"uuid":"189787506","full_name":"ara-framework/hypernova-angular","owner":"ara-framework","description":"Angular 5+ bindings for Hypernova.","archived":false,"fork":false,"pushed_at":"2021-08-02T05:58:10.000Z","size":15,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T10:59:26.241Z","etag":null,"topics":["angular","hypernova"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/hypernova-angular","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ara-framework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-01T23:49:14.000Z","updated_at":"2020-03-24T02:58:13.000Z","dependencies_parsed_at":"2022-08-20T07:40:12.390Z","dependency_job_id":null,"html_url":"https://github.com/ara-framework/hypernova-angular","commit_stats":null,"previous_names":["marconi1992/hypernova-angular"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ara-framework/hypernova-angular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ara-framework%2Fhypernova-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ara-framework%2Fhypernova-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ara-framework%2Fhypernova-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ara-framework%2Fhypernova-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ara-framework","download_url":"https://codeload.github.com/ara-framework/hypernova-angular/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ara-framework%2Fhypernova-angular/sbom","scorecard":{"id":204810,"data":{"date":"2025-08-11","repo":{"name":"github.com/ara-framework/hypernova-angular","commit":"399eae8a34e2716c373cbf39e6479bd9453d8b9f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T23:29:31.546Z","repository_id":48313841,"created_at":"2025-08-16T23:29:31.546Z","updated_at":"2025-08-16T23:29:31.546Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32961782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"ssl_error","status_checked_at":"2026-05-12T23:30:18.191Z","response_time":102,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["angular","hypernova"],"created_at":"2025-01-03T00:19:31.401Z","updated_at":"2026-05-12T23:33:04.250Z","avatar_url":"https://github.com/ara-framework.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hypernova-angular\n\n[Angular](https://angular.io/) bindings for [Hypernova](https://github.com/airbnb/hypernova).\n\nOn the server, wraps the component in a function to render it to a HTML string given its props.\n\nOn the client, uses the `HypernovaModuleFactory` to provide the metadata necessary to bootstrap the components.\n\n**Note**: `renderAngular` and `mountComponent` are not supported anymore. They were removed to move the boostrapping responsability to the library consumer in order to support AOT and JIT compiling.\n\n## Install\n\n```sh\nnpm install hypernova-angular\n```\n\n## Server Usage\n\nUses `renderAngular` to return hypernova bindings.\n\n```ts\nimport { renderAngular } from 'hypernova-angular/server'\n\nimport { ExampleModule } from './components/example/example.module'\nimport { ExampleComponent } from './components/example/example.component'\n\nhypernova({\n  getComponent (name) {\n    if (name === 'Example') {\n      return renderAngular(name, ExampleComponent, ExampleModule)\n    }\n  }\n}\n```\n\n## Browser Usage\n\nYou can use [Ara CLI](https://github.com/ara-framework/ara-cli) to create a service (Nova) with everything ready to start.\n\n```bash\nara new:nova -t angular\n```\n\nOr, you can use the following configurations.\n\n### App Module\n\nThe following code define a `AppModule` responsible of bootstrapping the Angular component in Hypernova placeholder.\n\n- `Hypernova.Name`: Name of the component to bootstrap.\n- `Hypernova.Node`: The placeholder where the component will be rendered.\n\n```ts\nimport { NgModule, Inject } from '@angular/core';\nimport { BrowserModule } from '@angular/platform-browser';\n\nimport { ExampleModule } from './components/example/example.module'\nimport { ExampleComponent } from './components/example/example.component';\n\nconst APP_ID = 'hypernova';\n\nconst components = {\n  'Example': ExampleComponent\n}\n\n@NgModule({\n  imports: [\n    ExampleModule,\n    BrowserModule.withServerTransition({ appId: APP_ID }),\n  ],\n  entryComponents: [ExampleComponent]\n})\nexport class AppModule {\n  constructor (\n    @Inject('Hypernova.Name') private name: string,\n    @Inject('Hypernova.Node') private node: HTMLElement\n    ){}\n\n  ngDoBootstrap(app) {\n    const Component = components[this.name]\n    if (Component) {\n      return app.bootstrap(Component, this.node)\n    }\n  };\n}\n```\n\nUse the `components` dictionary to support more components.\n\n```ts\nconst components = {\n  [Hypernova.Name]: AngularComponent\n}\n```\n\n### Browser JIT\n\n`browser.main.ts`\n```ts\nimport { platformBrowserDynamic } from '@angular/platform-browser-dynamic';\n\nimport { AppModule } from './app.module';\nimport { load, loadById, HypernovaModuleFactory } from 'hypernova-angular';\n\nimport { CompilerFactory, Compiler } from '@angular/core';\n\nconst platform = platformBrowserDynamic();\n\n// Compile module (JIT)\nconst compilerFactory: CompilerFactory = platform.injector.get(CompilerFactory);\n\nconst compiler: Compiler = compilerFactory.createCompiler([])\n\nconst moduleFactory = compiler.compileModuleSync(AppModule);\n\nconst render = (name: string, placeholder: any) =\u003e {\n\n  // Wrap module factory to provide necessary metadata to boostrap it.\n  const hypernovaModuleFactory = new HypernovaModuleFactory(moduleFactory, name, placeholder);\n\n  platform.bootstrapModuleFactory(hypernovaModuleFactory);\n}\n\n// Nova Bridge support\ndocument.addEventListener('NovaMount', (event) =\u003e {\n  const { name, id } = (\u003cCustomEvent\u003eevent).detail;\n\n  const placeholder = loadById(name, id);\n\n  if (placeholder) {\n    render(name, placeholder);\n  }\n})\n\n// Render in placeholders rendered by Hypernova Server\nload('Example').forEach(render.bind(this, 'Example'));\n```\n\n### Browser AOT\n\n`browser.aot.main.ts`\n```ts\nimport { platformBrowser } from '@angular/platform-browser';\nimport { AppModuleNgFactory } from './app.module.ngfactory';\nimport { load, loadById, HypernovaModuleFactory } from 'hypernova-angular';\n\nenableProdMode();\n\nconst render = (name: string, placeholder: any) =\u003e {\n  const hypernovaModuleFactory = new HypernovaModuleFactory(AppModuleNgFactory, name, placeholder);\n  platformBrowser().bootstrapModuleFactory(hypernovaModuleFactory);\n}\n\ndocument.addEventListener('NovaMount', (event) =\u003e {\n  const { name, id } = (\u003cCustomEvent\u003eevent).detail;\n\n  const placeholder = loadById(name, id);\n\n  if (placeholder) {\n    render(name, placeholder);\n  }\n})\n\nload('Example').forEach(render.bind(this, 'Example'));\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fara-framework%2Fhypernova-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fara-framework%2Fhypernova-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fara-framework%2Fhypernova-angular/lists"}