{"id":21294627,"url":"https://github.com/trace2798/nextjs_clerk_appdir","last_synced_at":"2026-04-20T09:33:59.750Z","repository":{"id":187887202,"uuid":"677665421","full_name":"trace2798/nextjs_clerk_appdir","owner":"trace2798","description":"Example for integration Clerk authentication with Grafbase with Next.js app directory","archived":false,"fork":false,"pushed_at":"2023-08-15T11:43:54.000Z","size":1807,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-07T09:35:33.183Z","etag":null,"topics":["clerk","example","grafbase","nextjs","nextjs13approuter"],"latest_commit_sha":null,"homepage":"","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/trace2798.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-08-12T08:12:10.000Z","updated_at":"2023-08-15T11:39:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"fcf75464-f76c-4204-9569-77460642fba1","html_url":"https://github.com/trace2798/nextjs_clerk_appdir","commit_stats":null,"previous_names":["trace2798/nextjs_clerk_appdir"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/trace2798/nextjs_clerk_appdir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trace2798%2Fnextjs_clerk_appdir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trace2798%2Fnextjs_clerk_appdir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trace2798%2Fnextjs_clerk_appdir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trace2798%2Fnextjs_clerk_appdir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trace2798","download_url":"https://codeload.github.com/trace2798/nextjs_clerk_appdir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trace2798%2Fnextjs_clerk_appdir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32041534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["clerk","example","grafbase","nextjs","nextjs13approuter"],"created_at":"2024-11-21T14:00:01.587Z","updated_at":"2026-04-20T09:33:59.729Z","avatar_url":"https://github.com/trace2798.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Integrating Clerk with [Grafbase](https://grafbase.com) and using [Grafbase Next.Js Plugin](https://grafbase.com/docs/tools/nextjs-plugin).\n\n### This repo is for my submission for the [Grafbase](https://grafbase.com) X [Hashnode](https://hashnode.com) X [hackathon](https://hashnode.com/hackathons/grafbase) which took place from August 1 - August 15, 2023\n\n#### Hashnode article: [Integrating Clerk with Grafbase and using Grafbase Next.Js Plugin](https://shreyas-chaliha.hashnode.dev/integrating-clerk-with-grafbase-and-grafbase-nextjs-plugin) \n\n\n## Getting Started\n\n### Either fork the repo or directly clone it\n\n### Prerequisites\n\n**Node version 16.8 or later  \n**macOS, Windows (including WSL), and Linux are supported.\n\n### To directly clone the repo\n\n```shell\ngit clone https://github.com/trace2798/nextjs_clerk_appdir.git\n```\n\n### Install packages\n\n```shell\nnpm i\n```\n\n### Setup .env file\n\n```js\nNEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=\nCLERK_SECRET_KEY=\nCLERK_ISSUER_URL=\nNEXT_PUBLIC_CLERK_SIGN_IN_URL=/sign-in\nNEXT_PUBLIC_CLERK_SIGN_UP_URL=/sign-up\nNEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL=/\nNEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL=/\n\nNEXT_PUBLIC_GRAFBASE_API_URL=\nNEXT_PUBLIC_GRAFBASE_API_KEY=\n```\n\n### Start the app\n\n```shell\nnpm run dev\n```\nSince I am using the next.js plugin from Grafbase, I do not need to separately start the grafbase server.\n\n## Available commands\n\nRunning commands with npm `npm run [command]`\n\n| command         | description                              |\n| :-------------- | :--------------------------------------- |\n| `dev`           | Starts a development instance of the app |\n| `build`         | To build your application                |\n| `start`         | Starts a production  instance of the app |\n\n\n\n## For env value and functionality of this application I have written a very detailed article on [hashnode](https://shreyas-chaliha.hashnode.dev/integrating-clerk-with-grafbase-and-grafbase-nextjs-plugin)\n\n\nYoutube Demo Link: [Grafbase Clerk Integration with grafbase Next.js Plugin](https://youtu.be/nxkMpgaKnkE)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrace2798%2Fnextjs_clerk_appdir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrace2798%2Fnextjs_clerk_appdir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrace2798%2Fnextjs_clerk_appdir/lists"}