{"id":39445469,"url":"https://github.com/sharethis-github/sharethis-angular","last_synced_at":"2026-01-18T04:24:30.545Z","repository":{"id":43418457,"uuid":"301476381","full_name":"sharethis-github/sharethis-angular","owner":"sharethis-github","description":null,"archived":false,"fork":false,"pushed_at":"2023-02-04T18:27:08.000Z","size":2299,"stargazers_count":2,"open_issues_count":10,"forks_count":4,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-04-18T04:10:39.328Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/sharethis-github.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}},"created_at":"2020-10-05T16:45:42.000Z","updated_at":"2024-04-18T04:10:39.329Z","dependencies_parsed_at":"2023-02-15T10:47:04.321Z","dependency_job_id":null,"html_url":"https://github.com/sharethis-github/sharethis-angular","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sharethis-github/sharethis-angular","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharethis-github%2Fsharethis-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharethis-github%2Fsharethis-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharethis-github%2Fsharethis-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharethis-github%2Fsharethis-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sharethis-github","download_url":"https://codeload.github.com/sharethis-github/sharethis-angular/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sharethis-github%2Fsharethis-angular/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28529521,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":"2026-01-18T04:24:30.483Z","updated_at":"2026-01-18T04:24:30.537Z","avatar_url":"https://github.com/sharethis-github.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sharethis Share Buttons - Angular\n\n## Demo\n\n[View the live demo here](https://sharethis-github.github.io/sharethis-angular/)\n\n## How to use it\n\n- Install the library using `npm install sharethis-angular`\n- Add the library module to your imports\n\n  ```js\n  import { BrowserModule } from \"@angular/platform-browser\";\n  import { NgModule } from \"@angular/core\";\n\n  import { AppComponent } from \"./app.component\";\n  import { SharethisAngularModule } from \"sharethis-angular\";\n\n  @NgModule({\n    declarations: [AppComponent],\n    imports: [BrowserModule, SharethisAngularModule],\n    providers: [],\n    bootstrap: [AppComponent],\n  })\n  export class AppModule {}\n  ```\n\n- There are four types of components: `st-inline-share-buttons`, `st-inline-follow-buttons`, `st-sticky-share-buttons` and `st-inline-reaction-buttons`.\n\n- All of the components receive a config param, for example:\n\n  ```js\n    \u003cst-inline-share-buttons [config]=\"inlineShareButtonsConfig\"\u003e\n  ```\n\n- Example of the InlineShareButtons implementation:\n\n  ```js\n  import { Component } from \"@angular/core\";\n  import { InlineShareButtonsConfig } from \"sharethis-angular\";\n\n  const inlineShareButtonsConfig: InlineShareButtonsConfig = {\n    alignment: \"center\", // alignment of buttons (left, center, right)\n    color: \"social\", // set the color of buttons (social, white)\n    enabled: true, // show/hide buttons (true, false)\n    font_size: 16, // font size for the buttons\n    labels: \"cta\", // button labels (cta, counts, null)\n    language: \"en\", // which language to use (see LANGUAGES)\n    networks: [\n      // which networks to include (see SHARING NETWORKS)\n      \"whatsapp\",\n      \"linkedin\",\n      \"messenger\",\n      \"facebook\",\n      \"twitter\",\n    ],\n    padding: 12, // padding within buttons (INTEGER)\n    radius: 4, // the corner radius on each button (INTEGER)\n    show_total: true,\n    size: 40, // the size of each button (INTEGER)\n\n    // OPTIONAL PARAMETERS\n    url: \"https://www.sharethis.com\", // (defaults to current url)\n    image: \"https://bit.ly/2CMhCMC\", // (defaults to og:image or twitter:image)\n    description: \"custom text\", // (defaults to og:description or twitter:description)\n    title: \"custom title\", // (defaults to og:title or twitter:title)\n    message: \"custom email text\", // (only for email sharing)\n    subject: \"custom email subject\", // (only for email sharing)\n    username: \"custom twitter handle\", // (only for twitter sharing)\n  };\n\n  @Component({\n    selector: \"app-root\",\n    templateUrl: '\u003cst-inline-share-buttons [config]=\"config\"\u003e',\n    styleUrls: [\"./app.component.css\"],\n  })\n  export class AppComponent {\n    config = inlineShareButtonsConfig;\n  }\n  ```\n\n## Development server\n\n- Run `ng build --project=sharethis-angular` to build the library\n- Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files on the demo app, if you change the library make sure you re-build it to get the latest updates.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Project structure\n\nThe project is divided into two folders: `sharethis-angular` and `demo` together with the common files. `demo` is the demo application that makes use of `sharethis-angular` like shown on the `how to use` section.\n\nThe library is a simple library with 4 components, a types declaration file and a file dedicated to the load script of sharethis content.\n\nThe application is a simple application with just one component that calls all of the `sharethis-angular` components.\n\nBoth projects support test, e2e test have their dedicated folder and unit and integration tests can be in a file with `*.spec.ts` as extension.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharethis-github%2Fsharethis-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsharethis-github%2Fsharethis-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsharethis-github%2Fsharethis-angular/lists"}