{"id":15364679,"url":"https://github.com/venables/anthropic-stream-error-cf","last_synced_at":"2025-04-04T18:20:53.147Z","repository":{"id":232845515,"uuid":"757640782","full_name":"venables/anthropic-stream-error-cf","owner":"venables","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-14T19:31:48.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T03:28:31.746Z","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/venables.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}},"created_at":"2024-02-14T19:31:33.000Z","updated_at":"2024-02-14T19:31:52.000Z","dependencies_parsed_at":"2024-04-11T21:13:08.303Z","dependency_job_id":"1965fbeb-61bd-4980-bb58-d0f088ea0b92","html_url":"https://github.com/venables/anthropic-stream-error-cf","commit_stats":null,"previous_names":["venables/anthropic-stream-error-cf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venables%2Fanthropic-stream-error-cf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venables%2Fanthropic-stream-error-cf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venables%2Fanthropic-stream-error-cf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/venables%2Fanthropic-stream-error-cf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/venables","download_url":"https://codeload.github.com/venables/anthropic-stream-error-cf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226262,"owners_count":20904476,"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":"2024-10-01T13:13:02.815Z","updated_at":"2025-04-04T18:20:53.132Z","avatar_url":"https://github.com/venables.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anthropic-streaming-error\n\nA bare test for Anthropic on Cloudflare Workers\n\n```sh\nnpm run dev\n```\n\n```sh\ncurl http://localhost:8787\n```\n\n## Getting started\n\nFirst, run:\n\n```sh\npnpm run setup\n```\n\nRunning the server:\n\n```sh\npnpm run dev\n```\n\nThe API will be available at [http://localhost:8787](http://localhost:8787)\n\nSince this is an API-only project, it is helpful to use a tool like [HTTPie](https://httpie.io/) for local testing.\n\n## Environment variables\n\n### Defining Values\n\nEnvironment variables with CloudFlare workers are set up differently than a traditional node app.\n\nNon-secret variables are defined in `wrangler.toml`. These variables are safe to commit to source control and share.\n\nSecrets, on the other hand, require special treatment. Locally, secrets can be defined in `.dev.vars`, which is automatically created for you when you run the setup script.\n\nFor production and other environments, secrets should be set via the Cloudflare Dashboard or via `pnpm wrangler secret put SOME_KEY`\n\nWhen you add a new secret to development, you should add it to the `bin/setup` script.\n\nSee the Cloudflare Documentation for more information:\n\n- [Environment variables](https://developers.cloudflare.com/workers/configuration/environment-variables)\n- [Secrets](https://developers.cloudflare.com/workers/configuration/secrets/)\n\n### Type-Safety\n\nAll environment variables should be included in the Bindings defined in `src/env.d.ts`. This ensures the app knows about any variables that are bound to the Worker.\n\n## Testing\n\nThis project is set up to use Eslint, Oxlint, and Jest for linting and testing.\n\nTo run all checks, simply run:\n\n```sh\npnpm run check\n```\n\nThis will run the following:\n\n```sh\n# eslint\npnpm run lint\n\n# oxlint\npnpm run oxlint\n\n# prettier format check\npnpm run format:check\n\n# tests via jest\npnpm run test\n```\n\n## Production\n\n### Deploying\n\nTo deploy to production, just run:\n\n```sh\nnpm run deploy\n```\n\n### Logs\n\nTo tail the logs from your app, you can run\n\n```sh\npnpm wrangler tail --format=pretty\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenables%2Fanthropic-stream-error-cf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvenables%2Fanthropic-stream-error-cf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvenables%2Fanthropic-stream-error-cf/lists"}