{"id":16736250,"url":"https://github.com/flexdinesh/drizzle-fastify-yoga","last_synced_at":"2026-07-14T08:31:07.641Z","repository":{"id":237478881,"uuid":"794507679","full_name":"flexdinesh/drizzle-fastify-yoga","owner":"flexdinesh","description":"An example repo to learn building REST and GraphQL endpoints using SQLite","archived":false,"fork":false,"pushed_at":"2024-05-01T11:13:18.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T04:34:12.363Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexdinesh.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":"2024-05-01T10:36:44.000Z","updated_at":"2024-05-01T11:13:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"1ba3de6d-4807-4e48-ad04-8716e0a0a471","html_url":"https://github.com/flexdinesh/drizzle-fastify-yoga","commit_stats":null,"previous_names":["flexdinesh/drizzle-fastify-yoga"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/flexdinesh/drizzle-fastify-yoga","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexdinesh%2Fdrizzle-fastify-yoga","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexdinesh%2Fdrizzle-fastify-yoga/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexdinesh%2Fdrizzle-fastify-yoga/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexdinesh%2Fdrizzle-fastify-yoga/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexdinesh","download_url":"https://codeload.github.com/flexdinesh/drizzle-fastify-yoga/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexdinesh%2Fdrizzle-fastify-yoga/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35453842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-14T02:00:06.603Z","response_time":114,"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":"2024-10-13T00:08:49.074Z","updated_at":"2026-07-14T08:31:07.620Z","avatar_url":"https://github.com/flexdinesh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example REST/GraphQL\n\nThis is a learning repo to build a simple REST/GraphQL API with data from SQLite database.\n\n## Stack\n\n- [Fastify server](https://fastify.dev/)\n- [SQLite database with Drizzle ORM BetterSqlite3 adapter](https://orm.drizzle.team/docs/get-started-sqlite#better-sqlite3)\n- [GraphQL Yoga server served as a fastify endpoint](https://the-guild.dev/graphql/yoga-server/docs)\n- Database is initialised with a base schema and seeded with data using [faker](https://fakerjs.dev/guide/)\n\n## Where do I start?\n\n- Explore the scripts in [package.json](/package.json)\n- `npm run dev` starts the server. Explore the available REST and GraphQL endpoints.\n- Explore [drizzle.config.ts](/drizzle.config.ts) to learn how [database schema](./src/db/schema.ts) is setup. If you change the schema, remember to run `npm run generate:migration` to generate the migration files and then `npm run migrate` to apply the migrations to the database.\n- Explore [the seeding script](./scripts/seed.ts) to learn how the database is seeded. This is already run but if you delete the database file, you should run it again.\n- [/rest/users](./src/routes/rest/users.ts) is an example endpoint\n- [/graphql](./src/routes/graphql.ts) is the graphql endpoint with an [example schema](./src/schema/schema.ts)\n\nGo crazy. 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexdinesh%2Fdrizzle-fastify-yoga","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexdinesh%2Fdrizzle-fastify-yoga","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexdinesh%2Fdrizzle-fastify-yoga/lists"}