{"id":15661255,"url":"https://github.com/thaddeusjiang/aier","last_synced_at":"2025-07-24T14:38:38.049Z","repository":{"id":182584646,"uuid":"615107181","full_name":"ThaddeusJiang/AIer","owner":"ThaddeusJiang","description":"Train AI with your own data, for PKM, Second Brain and etc.","archived":false,"fork":false,"pushed_at":"2024-05-07T03:54:18.000Z","size":10823,"stargazers_count":28,"open_issues_count":4,"forks_count":3,"subscribers_count":2,"default_branch":"dev","last_synced_at":"2025-04-26T09:17:10.284Z","etag":null,"topics":["ai","gpt-4","nextjs","pkm","react","second-brain","stripe","supabase"],"latest_commit_sha":null,"homepage":"https://aier.vercel.app/","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/ThaddeusJiang.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-03-17T00:56:24.000Z","updated_at":"2025-03-17T12:05:02.000Z","dependencies_parsed_at":"2024-05-07T04:46:22.112Z","dependency_job_id":null,"html_url":"https://github.com/ThaddeusJiang/AIer","commit_stats":null,"previous_names":["thaddeusjiang/aier"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThaddeusJiang%2FAIer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThaddeusJiang%2FAIer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThaddeusJiang%2FAIer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThaddeusJiang%2FAIer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThaddeusJiang","download_url":"https://codeload.github.com/ThaddeusJiang/AIer/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251342700,"owners_count":21574242,"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":["ai","gpt-4","nextjs","pkm","react","second-brain","stripe","supabase"],"created_at":"2024-10-03T13:26:41.667Z","updated_at":"2025-04-28T15:51:04.624Z","avatar_url":"https://github.com/ThaddeusJiang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AIer\n\nAIer is a web application that allows you to create and share AI Avatars with your friends. It is built with Next.js, Supabase and OpenAI.\n\n## Demo\n\n[https://aier.app/](https://aier.app/)\n\n## Screenshots\n\n1. write memo and train AI Avatar\n\n![Memo](./docs/assets/memo-page.png)\n\n2. chat with AI Avatar\n\n![Chat](./docs/assets/chat-page.png)\n\n## Memo\n\n2023-06-05: I have decided to use Next.js Page Router and client-side data fetching to build this app, I won't upgrate to Next.js App Router by myself.\n\nIf you want to use Next.js App Router and server-side data fetching, pull request is welcome.\n\n## Features\n\n- Create AI Avatars\n- Train AI Avatars with your own data, like your tweets, your blog posts, your notes, etc.\n- Share AI Avatars\n- Chat with AI Avatars who are trained with real people's data\n\n## Development\n\n1. install dependencies\n\n```bash\nnpm install\n```\n\n2. setup env vars\n\n```bash\ncp .env-vercel.local.example .env.local\n# modify env vars\n```\n\n3. run\n\n```bash\nnpm run dev\n```\n\n## Embedding\n\n1. modify env vars\n\n```bash\ncp .env-emb.local.example .env.local\n# modify env vars\n```\n\n2. download datasets from [AIer-data](https://github.com/ThaddeusJiang/AIer-data)\n\n3. run\n\n```bash\nnpm run embed:t\n```\n\n## Generate types from your Supabase database\n\n1. To install supabase cli\n\n```bash\nnpm install supabase --save-dev\n```\n\n2. Connect to supabase\n\n```bash\nnpx supabase login\n```\n\n3. Enter your access token. You can generate an access token from https://app.supabase.com/account/tokens\n4. Generate types\n\n```bash\nnpx supabase gen types typescript --project-id [YOUR-PROJECT-REF] --schema public \u003e types_db.ts\n```\n\n## sync vercel env vars\n\n1. install vercel cli\n\n```bash\nnpm i -g vercel\n```\n\n1. sync env vars\n\n```bash\nvercel login\nvercel link\n\nvercel env pull .env.local\n```\n\n# Self Hosting\n\n## Deploy with Vercel\n\nTo get started, click the \"Deploy with Vercel\" button below.\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnextjs-subscription-payments\u0026project-name=nextjs-subscription-payments\u0026repo-name=nextjs-subscription-payments\u0026demo-title=Next.js%20Subscription%20Payments%20Starter\u0026demo-description=Demo%20project%20on%20Vercel\u0026demo-url=https%3A%2F%2Fsubscription-payments.vercel.app\u0026demo-image=https%3A%2F%2Fsubscription-payments.vercel.app%2Fdemo.png\u0026integration-ids=oac_jUduyjQgOyzev1fjrW83NYOv\u0026external-id=nextjs-subscription-payments)\n\n[![Screenshot of Vercel deployment](./public/vercel-deploy.png)](https://vercel.com/new/git/external?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fnextjs-subscription-payments\u0026project-name=nextjs-subscription-payments\u0026repo-name=nextjs-subscription-payments\u0026demo-title=Next.js%20Subscription%20Payments%20Starter\u0026demo-description=Demo%20project%20on%20Vercel\u0026demo-url=https%3A%2F%2Fsubscription-payments.vercel.app\u0026demo-image=https%3A%2F%2Fsubscription-payments.vercel.app%2Fdemo.png\u0026integration-ids=oac_jUduyjQgOyzev1fjrW83NYOv\u0026external-id=nextjs-subscription-payments)\n\nOnce the project has deployed, continue with the configuration steps below.\n\nThe initial build will fail due to missing Stripe environment variables. After configuring Stripe, redeploy the application.\n\n## Configure Supabase Auth\n\n#### Setup redirect wildcards for deploy previews\n\nFor auth redirects (magic links, OAuth providers) to work correctly in deploy previews, navigate to the auth settings (i.e. `https://app.supabase.com/project/:project-id/auth/url-configuration`) and add the following wildcard URL to \"Redirect URLs\": `https://**vercel.app/*/*`.\n\nYou can read more about redirect wildcard patterns in the [docs](https://supabase.com/docs/guides/auth#redirect-urls-and-wildcards).\n\n#### [Optional] - Set up OAuth providers\n\nYou can use third-party login providers like GitHub or Google. Refer to the [docs](https://supabase.io/docs/guides/auth#third-party-logins) to learn how to configure these. Once configured you can add them to the `provider` array of the `Auth` component on the [`signin.tsx`](./pages/signin.tsx) page.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthaddeusjiang%2Faier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthaddeusjiang%2Faier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthaddeusjiang%2Faier/lists"}