{"id":13800767,"url":"https://github.com/sparsetech/pine","last_synced_at":"2025-09-08T14:49:14.719Z","repository":{"id":57742521,"uuid":"40020814","full_name":"sparsetech/pine","owner":"sparsetech","description":"Functional HTML5 and XML library for the Scala platform","archived":false,"fork":false,"pushed_at":"2020-12-10T15:32:52.000Z","size":1750,"stargazers_count":108,"open_issues_count":9,"forks_count":14,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-08-28T10:52:57.896Z","etag":null,"topics":["html5","manipulation","rendering","scala","scala-native","scalajs","web-development"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sparsetech.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":"2015-07-31T19:10:07.000Z","updated_at":"2025-05-16T02:09:35.000Z","dependencies_parsed_at":"2022-09-09T09:22:33.489Z","dependency_job_id":null,"html_url":"https://github.com/sparsetech/pine","commit_stats":null,"previous_names":["metastack-pl/metaweb"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/sparsetech/pine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Fpine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Fpine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Fpine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Fpine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sparsetech","download_url":"https://codeload.github.com/sparsetech/pine/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sparsetech%2Fpine/sbom","scorecard":{"id":840420,"data":{"date":"2025-08-11","repo":{"name":"github.com/sparsetech/pine","commit":"64fc19f9eafe1a915c683207bbc4184e190deece"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"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":"Code-Review","score":1,"reason":"Found 2/15 approved changesets -- score normalized to 1","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":"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":"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":"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":"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: 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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 28 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-23T20:21:18.592Z","repository_id":57742521,"created_at":"2025-08-23T20:21:18.592Z","updated_at":"2025-08-23T20:21:18.592Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274202044,"owners_count":25240362,"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-09-08T02:00:09.813Z","response_time":121,"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":["html5","manipulation","rendering","scala","scala-native","scalajs","web-development"],"created_at":"2024-08-04T00:01:16.056Z","updated_at":"2025-09-08T14:49:14.672Z","avatar_url":"https://github.com/sparsetech.png","language":"Scala","funding_links":[],"categories":["File Formats and Parsers"],"sub_categories":[],"readme":"# \u003cimg src=\"http://sparse.tech/icons/pine.svg\" width=\"50%\"\u003e\n[![Build Status](https://travis-ci.org/sparsetech/pine.svg?branch=master)](https://travis-ci.org/sparsetech/pine)\n[![Build Status](http://ci.sparse.tech/api/badges/sparsetech/pine/status.svg)](http://ci.sparse.tech/sparsetech/pine)\n[![Maven Central](https://img.shields.io/maven-central/v/tech.sparse/pine_2.12.svg)](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22tech.sparse%22%20AND%20a%3A%22pine_2.12%22)\n\nPine is a functional HTML5 and XML library for the Scala platform. It supports parsing, manipulating and rendering of HTML. Pine provides type-safe bindings for HTML5 generated from [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element). Tree nodes are immutable and can be constructed from compile-time or runtime HTML/XML content. The tree may be manipulated and rendered back as HTML or as a browser node.\n\n## Features\n* Immutable and typed trees\n* Type-safe bindings, generated from MDN\n* Support for custom elements and attributes\n* HTML5 and XML parser based on recursive descent\n* Macros for compile-time HTML string/file parsing\n* Tree manipulation\n* Rendering as HTML strings\n* DSL for common operations\n* Unit and property-based tests\n* Few dependencies\n\n### JavaScript back end\n* Rendering as DOM nodes\n* Updating nodes in DOM\n* DSL for attaching/detaching events\n\n## Compatibility\n| Platform     | Platform version | Scala versions               |\n|:-------------|:-----------------|:-----------------------------|\n| JVM          |                  | 2.11 (T), 2.12 (T), 2.13 (L) |\n| Scala.js     | 1.0              | 2.12 (T), 2.13 (L)           |\n| Scala Native | 0.4.0-M2         | 2.11 (T)                     |\n\n* (T): Typelevel Scala\n* (L): Lightbend Scala\n\n## Examples\n```scala\nimport pine._\n\nval url  = \"http://github.com/\"\nval root = html\"\u003ca href=$url\u003eGitHub\u003c/a\u003e\"\n\nprintln(root.toHtml)  // \u003ca href=\"http://github.com/\"\u003eGitHub\u003c/a\u003e\n```\n\n### JavaScript\n```scala\nimport pine.dom._\nprintln(root.toDom)  // [object HTMLAnchorElement]\n```\n\n## sbt\nPine makes use of a language extension called *literal types*, see [SIP-23](http://docs.scala-lang.org/sips/pending/42.type.html). For Scala 2.11 and 2.12, only [Typelevel Scala](https://github.com/typelevel/scala) implements this feature. However, it is available in Lightbend Scala from 2.13 onwards.\n\n### 2.13 onwards\n```scala\nscalaVersion := \"2.\u003cversion\u003e\"\nlibraryDependencies += scalaOrganization.value % \"scala-reflect\" % scalaVersion.value\n```\n\n### \u003c 2.13\n```scala\nscalaVersion      := \"2.12.4-bin-typelevel-4\"  // or \"2.11.11-bin-typelevel-4\"\nscalaOrganization := \"org.typelevel\"\nscalacOptions     += \"-Yliteral-types\"\n\nlibraryDependencies += scalaOrganization.value % \"scala-reflect\" % scalaVersion.value\n```\n\n#### Scala.js settings\n```scala\nlibraryDependencies := libraryDependencies.value.filterNot(_.name == \"scalajs-compiler\") \naddCompilerPlugin(\"org.scala-js\" % \"scalajs-compiler\" % scalaJSVersion cross CrossVersion.patch)\n```\n\n#### Scala Native settings\n```scala\nlibraryDependencies := libraryDependencies.value.filterNot(_.name == \"nscplugin\")\naddCompilerPlugin(\"org.scala-native\" % \"nscplugin\" % nativeVersion cross CrossVersion.patch)\n```\n\n### Dependencies\n```scala\nlibraryDependencies += \"tech.sparse\" %%  \"pine\" % \"\u003cversion\u003e\"  // JVM\nlibraryDependencies += \"tech.sparse\" %%% \"pine\" % \"\u003cversion\u003e\"  // JavaScript, Native\n```\n\n## Links\n* [Documentation](http://sparse.tech/docs/pine.html)\n* [ScalaDoc](https://www.javadoc.io/doc/tech.sparse/pine_2.12/)\n\n## Licence\nPine is licensed under the terms of the Apache v2.0 licence.\n\n## Contributors\n* Tim Nieradzik\n* Matt Hicks\n* Anatoliy Kmetyuk\n* Keven Wright\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparsetech%2Fpine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsparsetech%2Fpine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsparsetech%2Fpine/lists"}