{"id":19921942,"url":"https://github.com/drakkar-software/posthog-openapi-clients","last_synced_at":"2026-01-27T07:34:50.439Z","repository":{"id":210307565,"uuid":"726247210","full_name":"Drakkar-Software/posthog-openapi-clients","owner":"Drakkar-Software","description":"Posthog api client. Only typescript for now","archived":false,"fork":false,"pushed_at":"2024-09-10T19:24:22.000Z","size":474,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-01T19:15:21.663Z","etag":null,"topics":["openapi","posthog"],"latest_commit_sha":null,"homepage":"https://posthog.com/docs/api","language":"TypeScript","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/Drakkar-Software.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-12-01T21:22:32.000Z","updated_at":"2024-09-10T19:24:25.000Z","dependencies_parsed_at":"2024-04-16T12:38:07.343Z","dependency_job_id":"44d2e0a8-a4dc-4c7b-b0c0-00b6b690c789","html_url":"https://github.com/Drakkar-Software/posthog-openapi-clients","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":"0.32258064516129037","last_synced_commit":"44af4e2d08ceffe6e0a1bb12b009975582642345"},"previous_names":["drakkar-software/posthog-api","drakkar-software/posthog-openapi-client"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakkar-Software%2Fposthog-openapi-clients","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakkar-Software%2Fposthog-openapi-clients/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakkar-Software%2Fposthog-openapi-clients/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Drakkar-Software%2Fposthog-openapi-clients/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Drakkar-Software","download_url":"https://codeload.github.com/Drakkar-Software/posthog-openapi-clients/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252156692,"owners_count":21703327,"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":["openapi","posthog"],"created_at":"2024-11-12T22:08:52.592Z","updated_at":"2026-01-27T07:34:50.413Z","avatar_url":"https://github.com/Drakkar-Software.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Posthog OpenApi clients\n\n## Global configuration\n\n```\nexport POSTHOG_PERSONAL_API_KEY=YOUR_POSTHOG_API_KEY\nexport POSTHOG_BASE_URL=\"https://eu.posthog.com\" or export POSTHOG_BASE_URL=\"https://app.posthog.com\"\n```\n\n## Typescript [![NPM](https://img.shields.io/npm/v/posthog-openapi-client)](https://www.npmjs.com/package/posthog-openapi-client)\n\n### Install\n\n```\nnpm i posthog-openapi-client\nyarn add posthog-openapi-client\npnpm install posthog-openapi-client\n```\n\n### Setup\n\n```\npnpm install\npnpm build\n```\n\n### Usage\n\n```\npnpm start\n```\n\n## Developers\n\n### Regenerate client\n\nDownload the schema with an authenticated request:\n\n```\nwget https://app.posthog.com/api/schema/ -O schema.yaml\n```\n\nOR\n\n```\nwget https://eu.posthog.com/api/schema/ -O schema.yaml\n```\n\n#### Typescript\n\n```\npnpx openapi-typescript-codegen --input schema.yaml --output client/typescript --name PosthogAPIClient\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakkar-software%2Fposthog-openapi-clients","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrakkar-software%2Fposthog-openapi-clients","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrakkar-software%2Fposthog-openapi-clients/lists"}