{"id":20252647,"url":"https://github.com/streamdal/prisma-extension-streamdal","last_synced_at":"2026-02-13T21:33:58.949Z","repository":{"id":213126314,"uuid":"731746473","full_name":"streamdal/prisma-extension-streamdal","owner":"streamdal","description":"Add code native data pipelines to any prisma query operation","archived":false,"fork":false,"pushed_at":"2024-04-25T15:58:41.000Z","size":309,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-10T23:32:41.029Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamdal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2023-12-14T19:28:21.000Z","updated_at":"2025-01-22T17:36:07.000Z","dependencies_parsed_at":"2023-12-18T16:59:43.037Z","dependency_job_id":"6466882d-a555-4421-911e-440082fc4923","html_url":"https://github.com/streamdal/prisma-extension-streamdal","commit_stats":null,"previous_names":["streamdal/prisma-extension-streamdal"],"tags_count":10,"template":false,"template_full_name":"prisma/prisma-client-extension-starter","purl":"pkg:github/streamdal/prisma-extension-streamdal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamdal%2Fprisma-extension-streamdal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamdal%2Fprisma-extension-streamdal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamdal%2Fprisma-extension-streamdal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamdal%2Fprisma-extension-streamdal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamdal","download_url":"https://codeload.github.com/streamdal/prisma-extension-streamdal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamdal%2Fprisma-extension-streamdal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29418539,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2024-11-14T10:17:47.976Z","updated_at":"2026-02-13T21:33:58.930Z","avatar_url":"https://github.com/streamdal.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"./assets/streamdal-logo-dark.png#gh-dark-mode-only\"\u003e\u003cimg src=\"./assets/streamdal-logo-light.png#gh-light-mode-only\"\u003e\n\n[![GitHub](https://img.shields.io/github/license/streamdal/prisma-extension-streamdal)](https://github.com/streamdal/prisma-extension-streamdal)\n[![Discord](https://img.shields.io/badge/Community-Discord-4c57e8.svg)](https://discord.gg/streamdal)\n\n\u003c/div\u003e  \n\n# Streamdal Prisma Client Extension \n\n### Code native data pipelines for Prisma query operations\n\nUse Streamdal's code native data pipelines to observe, transform,\nand secure data before it enters or exists the database. \n\nRead more about Streamdal here: [Streamdal](https://www.streamdal.com).\nRead more about Prisma client extensions here: [Prisma docs](https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions).\n\n### Prerequisites\n\nYou must have the Streamdal platform running. To bring it up locally, you can use docker compose:\n\n`docker compose up`\n\nAlternatively you can deploy it to your environment, see here for details:\n```\nhttps://github.com/streamdal/streamdal/tree/main/docs/install\n```\n\n\n### Install\n```\nnpm install @streamdal/prisma-extension-streamdal\n```\n\n### Configure\n\nYou can configure the extension via env variables or code. The configuration\nvariables you provide will point to the Streamdal platform you ran just above.\n\nIf your app supports `.env` files, add the following there:\n\n```\nSTREAMDAL_URL=\"localhost:8082\"\nSTREAMDAL_TOKEN=\"1234\"\nSTREAMDAL_SERVICE_NAME=\"prisma-user-service\"\nSTREAMDAL_QUIET=true\n```\n\nOr export them:\n\n```\nexport STREAMDAL_URL=\"localhost:8082\"\nexport STREAMDAL_TOKEN=\"1234\"\nexport STREAMDAL_SERVICE_NAME=\"prisma-user-service\"\n```\n\nOr via code: see and uncomment configuration code in the example app:\n\n```\nhttps://github.com/streamdal/streamdal-eamples/blob/main/prisma-extension/index.ts\n```\n\nRun your app as normal and all your Prisma operations will be mapped by \nStreamdal automatically and you can view them and pipelines to them \nin the Streamdal console at `http://localhost:8080` or wherever\nyou installed it in the install step above.\n\n\n##### Run the Example App\n\nClone the examples repository:\n\n```shell\ngit clone git@github.com:streamdal/streamdal-examples.git\n```\n\n```shell\ncd streamdal/examples/prisma-extension\nnpm install\nnpx prisma db push\nnpm run dev\n```\n\nThis will fire up the example app running the Streamdal Prisma Extension that inserts and fetches\nrandom users continuously. \n\nGo to `http://localhost:8080` and you will see the above operations were automatically \ninstrumented and you are now able to create and add pipelines to them.\n\n![Console](./console-screenshot.png)\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamdal%2Fprisma-extension-streamdal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamdal%2Fprisma-extension-streamdal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamdal%2Fprisma-extension-streamdal/lists"}