{"id":26647694,"url":"https://github.com/ledouxm/dofus-sqlite","last_synced_at":"2025-09-10T12:36:34.657Z","repository":{"id":271445734,"uuid":"913099195","full_name":"ledouxm/dofus-sqlite","owner":"ledouxm","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-29T13:57:09.000Z","size":20746,"stargazers_count":19,"open_issues_count":0,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T16:09:37.135Z","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/ledouxm.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-07T03:09:03.000Z","updated_at":"2025-07-29T15:10:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"c4cb8f70-30e9-4c2a-8842-d71b919948e5","html_url":"https://github.com/ledouxm/dofus-sqlite","commit_stats":null,"previous_names":["ledouxm/dofus-sqlite"],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/ledouxm/dofus-sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledouxm%2Fdofus-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledouxm%2Fdofus-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledouxm%2Fdofus-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledouxm%2Fdofus-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ledouxm","download_url":"https://codeload.github.com/ledouxm/dofus-sqlite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ledouxm%2Fdofus-sqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274463215,"owners_count":25290113,"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-09-10T02:00:12.551Z","response_time":83,"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":[],"created_at":"2025-03-24T23:56:31.280Z","updated_at":"2025-09-10T12:36:34.603Z","avatar_url":"https://github.com/ledouxm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dofus-sqlite\n\n👨‍💻 **Up to date Dofus 3 data, in a convenient SQLite database**\n\n## How to use\n\n1. Go to the [Releases](../../releases) page\n2. Download the latest `dofus.sqlite` file\n3. That's it! The database is ready to use\n\n_Note: This repo contains the extraction code that creates these releases. If you just want the data, you don't need to clone this repository._\n\n## Usage with [kysely](https://github.com/kysely-org/kysely)\n\n1. Install dependencies\n\n```bash\npnpm i kysely better-sqlite3\npnpm i -D kysely-codegen @types/better-sqlite3\n```\n\n2. Pull TS types from database\n\n```bash\nkysely-codegen --dialect sqlite --url /path/to/dofus.sqlite --out-file /path/to/dofus.d.ts\n```\n\n3. Enjoy full type-safety\n\n```ts\nimport SQLite from \"better-sqlite3\";\nimport { Kysely, SqliteDialect } from \"kysely\";\nimport type { DB } from \"/path/to/dofus.d.ts\";\n\nconst database = new SQLite(\"/path/to/dofus.sqlite\");\nconst dialect = new SqliteDialect({ database });\n\nconst db = new Kysely\u003cDB\u003e({ dialect });\n\nconst potionRecipes = await db\n  .selectFrom(\"Items\")\n  .innerJoin(\"Recipes\", \"Recipes.resultId\", \"Items.id\")\n  .innerJoin(\"translations\", \"Items.nameId\", \"translations.id\")\n  .where(\"translations.value\", \"like\", \"%potion%\")\n  .where(\"translations.lang\", \"=\", \"fr\")\n  .select([\"translations.value as name\"])\n  .selectAll([\"Recipes\"])\n  .execute();\n```\n\n## Developer Instructions\n\n### Prerequisites\n\n- [pnpm](https://pnpm.io/installation)\n- Node.js v20\n- dotnet v7\n\n### Setup\n\n```bash\npnpm install\n```\n\nCopy the .env.dist file to a .env and fill your Dofus folder path\n\n### Available Scripts\n\n1. First executes `pnpm extract` to get convert game files to readable .json files\n2. Then runs `pnpm db` to generate a .sqlite file from .json files\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledouxm%2Fdofus-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledouxm%2Fdofus-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledouxm%2Fdofus-sqlite/lists"}