{"id":28456662,"url":"https://github.com/prisma/chat-with-policy","last_synced_at":"2025-06-29T10:31:00.815Z","repository":{"id":284273755,"uuid":"935691799","full_name":"prisma/chat-with-policy","owner":"prisma","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-07T15:59:42.000Z","size":171,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-06-22T01:46:58.389Z","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/prisma.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-19T21:26:09.000Z","updated_at":"2025-04-07T15:59:45.000Z","dependencies_parsed_at":"2025-03-25T03:47:52.592Z","dependency_job_id":"d548be2c-668f-4f0c-9745-302fee9d6af8","html_url":"https://github.com/prisma/chat-with-policy","commit_stats":null,"previous_names":["prisma/chat-with-policy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prisma/chat-with-policy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fchat-with-policy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fchat-with-policy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fchat-with-policy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fchat-with-policy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prisma","download_url":"https://codeload.github.com/prisma/chat-with-policy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prisma%2Fchat-with-policy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262577716,"owners_count":23331476,"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","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":"2025-06-06T23:08:26.498Z","updated_at":"2025-06-29T10:31:00.803Z","avatar_url":"https://github.com/prisma.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat With Policy\n\n## 0. Setup\n\n1. Clone this repository\n\n1. Run `pnpm install`\n\n## 1. Setup Prisma\n\n1. As usual, you need to get Prisma configured.\n\n1. Get your PPg URL and put it in `.env`.\n\n1. Migrate your database against the schema.\n\n## 2. Define your rules\n\nGo to `rules.ts` and define your rules.\n\n## 3. Deploy your rules\n\nRun `pnpm prisma rules deploy ...` to deploy your rules.\n\nTo make things simpler, we've created an npm script to deploy the rules.\n\n```sh\npnpm rules:deploy\n```\n\n\u003e Check out your `package.json` to see how it's done.\n\n\u003e On the first run it may take a bit of time, because the CLI is downloaded and cached.\u003cbr\u003e\n\u003e Subsequent runs will be faster, and will only redownload if a new version is available.\n\n## 4. Access your client\n\nThe previous step will return a JWT token, that we'll call `\u003cpublicKey\u003e`.\n\nGo to `App.tsx` and replace `\u003cpublicKey\u003e` with the token you received.\n\n## 5. Execute queries\n\nRun `pnpm dev` to execute your app and start sending queries.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fchat-with-policy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprisma%2Fchat-with-policy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprisma%2Fchat-with-policy/lists"}