{"id":21571071,"url":"https://github.com/treblle/treblle-strapi","last_synced_at":"2025-08-22T11:44:02.103Z","repository":{"id":129658068,"uuid":"595767736","full_name":"Treblle/treblle-strapi","owner":"Treblle","description":"The official Treblle SDK for Strapi. Seamlessly integrate Treblle to manage communication with your dashboard, send errors, and secure sensitive data.","archived":false,"fork":false,"pushed_at":"2024-12-20T20:00:09.000Z","size":151,"stargazers_count":13,"open_issues_count":2,"forks_count":4,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-08-08T23:27:28.809Z","etag":null,"topics":["api","api-monitoring","api-observability","backend","developer-tool","logging","nodejs","rest-api","restful-api","sdk","strapi","strapi-cms","strapi-sdk","strapi4","treblle","treblle-sdk"],"latest_commit_sha":null,"homepage":"https://www.treblle.com/","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/Treblle.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-31T19:13:54.000Z","updated_at":"2025-04-17T12:33:25.000Z","dependencies_parsed_at":"2024-12-15T21:18:48.807Z","dependency_job_id":"1ceb4224-054f-431d-b9b7-6476a76e0069","html_url":"https://github.com/Treblle/treblle-strapi","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/Treblle/treblle-strapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Ftreblle-strapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Ftreblle-strapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Ftreblle-strapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Ftreblle-strapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Treblle","download_url":"https://codeload.github.com/Treblle/treblle-strapi/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treblle%2Ftreblle-strapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271632766,"owners_count":24793744,"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-22T02:00:08.480Z","response_time":65,"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":["api","api-monitoring","api-observability","backend","developer-tool","logging","nodejs","rest-api","restful-api","sdk","strapi","strapi-cms","strapi-sdk","strapi4","treblle","treblle-sdk"],"created_at":"2024-11-24T11:14:48.833Z","updated_at":"2025-08-22T11:44:02.086Z","avatar_url":"https://github.com/Treblle.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \n# ⚠️ DEPRECATED PACKAGE\n\n**This SDK has been deprecated in favor of the new unified [Treblle Node.js SDK v2.0](https://www.npmjs.com/package/treblle)**\n\n[![New SDK](https://img.shields.io/badge/Migrate%20to-New%20SDK%20v2.0-blue?style=for-the-badge)](https://www.npmjs.com/package/treblle)\n\n\u003c/div\u003e\n\n---\n\n# ⚠️ DEPRECATED - Use New Treblle Node.js SDK v2.0\n\n\u003e **This package is deprecated and no longer maintained. Please migrate to the new unified [Treblle Node.js SDK v2.0](https://www.npmjs.com/package/treblle).**\n\n## 🚀 Migration to New SDK\n\nThe new Treblle Node.js SDK v2.0 provides better performance, more features, and unified support for all Node.js frameworks including Strapi.\n\n### Quick Migration\n\n**Old SDK:**\n```javascript\n// In config/middlewares.js\nmodule.exports = [\n  'plugin::treblle.treblle',\n]\n```\n\n**New SDK v2.0:**\n```javascript\n// middlewares/treblle/index.js\nconst { strapiTreblle } = require('treblle')\n\nmodule.exports = (strapi) =\u003e {\n  return {\n    initialize() {\n      strapi.app.use(strapiTreblle({\n        sdkToken: \"_YOUR_SDK_TOKEN_\",\n        apiKey: \"_YOUR_API_KEY_\"\n      }))\n    }\n  }\n}\n\n// config/middlewares.js\nmodule.exports = {\n  settings: {\n    treblle: {\n      enabled: true,\n    },\n  },\n}\n```\n\n### Benefits of New SDK\n- 🚀 **40-60% faster** API calls with optimized networking\n- 🧠 **50-70% reduction** in memory usage\n- ⚡ **80-90% faster** field masking\n- 🔧 **Strapi 4.x \u0026 5.x support**\n- 🛡️ **Enhanced security** with comprehensive field masking\n- 📊 **Better debugging** and error handling\n- 🎯 **Smart admin route filtering**\n\n### Installation\n```bash\nnpm install treblle@^2.0.0\n```\n\n## 📖 Documentation\n- [New SDK Documentation](https://docs.treblle.com/integrations/javascript/node/)\n- [npm Package](https://www.npmjs.com/package/treblle)\n\n---\n\n**This repository will be archived soon. Please update your projects to use the new SDK.**\n\n\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/58474b6d-f649-4b0f-b8eb-55abe7564c1e\"/\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\n# Treblle\n\n\u003ca href=\"https://docs.treblle.com/en/integrations\" target=\"_blank\"\u003eIntegrations\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"http://treblle.com/\" target=\"_blank\"\u003eWebsite\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"https://docs.treblle.com\" target=\"_blank\"\u003eDocs\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"https://blog.treblle.com\" target=\"_blank\"\u003eBlog\u003c/a\u003e\n\u003cspan\u003e\u0026nbsp;\u0026nbsp;•\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n\u003ca href=\"https://twitter.com/treblleapi\" target=\"_blank\"\u003eTwitter\u003c/a\u003e\n\u003cbr /\u003e\n\n  \u003chr /\u003e\n\u003c/div\u003e\n\nAPI Intelligence Platform. 🚀\n\nTreblle is a lightweight SDK that helps Engineering and Product teams build, ship \u0026 maintain REST-based APIs faster.\n\n## Features\n\n\u003cdiv align=\"center\"\u003e\n  \u003cbr /\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/184197ca-9ad8-42ab-9d72-3da2c8eafe6b\"/\u003e\n  \u003cbr /\u003e\n  \u003cbr /\u003e\n\u003c/div\u003e\n\n- [API Intelligance](https://treblle.com/product/api-intelligence)\n- [Auto-generated API Docs](https://treblle.com/product/api-documentation)\n- [API analytics](https://treblle.com/product/api-analytics)\n- [Treblle API Governance](https://treblle.com/product/api-governance)\n- [API Security](https://treblle.com/product/api-security)\n- [API Testing](https://treblle.com/product/aspen)\n- [API Assistant](https://treblle.com/product/alfred)\n\n## How Treblle Works\n\nOnce you've integrated a Treblle SDK in your codebase, this SDK will send requests and response data to your Treblle Dashboard.\n\nIn your Treblle Dashboard you get to see real-time requests to your API, auto-generated API docs, API analytics like how fast the response was for an endpoint, the load size of the response, etc.\n\nTreblle also uses the requests sent to your Dashboard to calculate your API score which is a quality score that's calculated based on the performance, quality, and security best practices for your API.\n\n\u003e Visit [https://docs.treblle.com](http://docs.treblle.com) for the complete documentation.\n\n## Security\n\n### Masking fields\n\nMasking fields ensure certain sensitive data are removed before being sent to Treblle.\n\nTo make sure masking is done before any data leaves your server [we built it into all our SDKs](https://docs.treblle.com/treblle/data-masking/#default-masked-fields).\n\nThis means data masking is super fast and happens on a programming level before the API request is sent to Treblle. You can customize exactly which fields are masked when you're integrating the SDK.\n\n\u003e Visit the [Masked fields](https://docs.treblle.com/treblle/data-masking/) section of the docs for the complete documentation.\n\n## Get Started\n\n1. Sign in to [Treblle](https://platform.treblle.com).\n2. Create [Workspace and your API](https://docs.treblle.com/guides/getting-started/).\n3. [Setup the SDK](https://docs.treblle.com/integrations/) for your platform.\n\n### Install the SDK\n\n```sh\nnpm i treblle --save\n```\n\nAfter installation set the following environment variables your `.env`\n\n\u003e You can find the values in your Treblle dashboard\n\n- `TREBLLE_API_KEY`\n- `TREBLLE_PROJECT_ID`\n\n`treblle` provides Strapi integration through middleware configuration.\n\n## Available SDKs\n\nTreblle provides [open-source SDKs](https://docs.treblle.com/en/integrations) that let you seamlessly integrate Treblle with your REST-based APIs.\n\n- [`treblle-laravel`](https://github.com/Treblle/treblle-laravel): SDK for Laravel\n- [`treblle-php`](https://github.com/Treblle/treblle-php): SDK for PHP\n- [`treblle-symfony`](https://github.com/Treblle/treblle-symfony): SDK for Symfony\n- [`treblle-lumen`](https://github.com/Treblle/treblle-lumen): SDK for Lumen\n- [`treblle-sails`](https://github.com/Treblle/treblle-sails): SDK for Sails\n- [`treblle-adonisjs`](https://github.com/Treblle/treblle-adonisjs): SDK for AdonisJS\n- [`treblle-fastify`](https://github.com/Treblle/treblle-fastify): SDK for Fastify\n- [`treblle-directus`](https://github.com/Treblle/treblle-directus): SDK for Directus\n- [`treblle-strapi`](https://github.com/Treblle/treblle-strapi): SDK for Strapi\n- [`treblle-express`](https://github.com/Treblle/treblle-express): SDK for Express\n- [`treblle-koa`](https://github.com/Treblle/treblle-koa): SDK for Koa\n- [`treblle-go`](https://github.com/Treblle/treblle-go): SDK for Go\n- [`treblle-ruby`](https://github.com/Treblle/treblle-ruby): SDK for Ruby on Rails\n- [`treblle-python`](https://github.com/Treblle/treblle-python): SDK for Python/Django\n\n\u003e See the [docs](https://docs.treblle.com/en/integrations) for more on SDKs and Integrations.\n\n## Other Packages\n\nBesides the SDKs, we also provide helpers and configuration used for SDK\ndevelopment. If you're thinking about contributing to or creating a SDK, have a look at the resources\nbelow:\n\n- [`treblle-utils`](https://github.com/Treblle/treblle-utils): A set of helpers and\n  utility functions useful for the JavaScript SDKs.\n- [`php-utils`](https://github.com/Treblle/php-utils): A set of helpers and\n  utility functions useful for the PHP SDKs.\n\n## Community 💙\n\nFirst and foremost: **Star and watch this repository** to stay up-to-date.\n\nAlso, follow our [Blog](https://blog.treblle.com), and on [Twitter](https://twitter.com/treblleapi).\n\nFollow our tutorials and other video material at [YouTube](https://youtube.com/@treblle).\n\n[![Treblle YouTube](https://img.shields.io/badge/Treblle%20YouTube-Subscribe%20on%20YouTube-F3F5FC?labelColor=c4302b\u0026style=for-the-badge\u0026logo=YouTube\u0026logoColor=F3F5FC\u0026link=https://youtube.com/@treblle)](https://youtube.com/@treblle)\n\n[![Treblle on Twitter](https://img.shields.io/badge/Treblle%20on%20Twitter-Follow%20Us-F3F5FC?labelColor=1DA1F2\u0026style=for-the-badge\u0026logo=Twitter\u0026logoColor=F3F5FC\u0026link=https://twitter.com/treblleapi)](https://twitter.com/treblleapi)\n\n### How to contribute\n\nHere are some ways of contributing to making Treblle better:\n\n- **[Try out Treblle](https://docs.treblle.com/en/introduction#getting-started)**, and let us know ways to make Treblle better for you.\n- Send a pull request to any of our [open source repositories](https://github.com/Treblle) on Github. Check the contribution guide on the repo you want to contribute to for more details about how to contribute. We're looking forward to your contribution!\n\n### Contributors\n\n\u003c!-- Replace link with the link of the SDK contributors--\u003e\n\u003ca href=\"https://github.com/Treblle/treblle-strapi/graphs/contributors\"\u003e\n  \u003cp align=\"center\"\u003e\n    \u003cimg  src=\"https://contrib.rocks/image?repo=Treblle/treblle-strapi\" alt=\"A table of avatars from the project's contributors\" /\u003e\n  \u003c/p\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreblle%2Ftreblle-strapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreblle%2Ftreblle-strapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreblle%2Ftreblle-strapi/lists"}