{"id":13575239,"url":"https://github.com/CH563/gpts-url","last_synced_at":"2025-04-04T19:31:34.350Z","repository":{"id":208203971,"uuid":"717475698","full_name":"CH563/gpts-url","owner":"CH563","description":"ChatGPT GPTs Store, use Astro + Taiwindcss, and crawl the 6,876 GPTs SQL packet","archived":false,"fork":false,"pushed_at":"2025-01-13T06:28:27.000Z","size":1994,"stargazers_count":162,"open_issues_count":2,"forks_count":22,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T22:12:16.358Z","etag":null,"topics":["astro","chatgpt","gpts","gptstore","taiwindcss"],"latest_commit_sha":null,"homepage":"https://gtps-url.vercel.app","language":"Astro","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/CH563.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}},"created_at":"2023-11-11T15:32:58.000Z","updated_at":"2025-03-13T12:01:35.000Z","dependencies_parsed_at":"2023-11-20T10:34:53.639Z","dependency_job_id":"681151a6-ec44-41c1-a864-4bb661247360","html_url":"https://github.com/CH563/gpts-url","commit_stats":null,"previous_names":["ch563/gtps-url","ch563/gpts-url"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CH563%2Fgpts-url","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CH563%2Fgpts-url/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CH563%2Fgpts-url/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CH563%2Fgpts-url/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CH563","download_url":"https://codeload.github.com/CH563/gpts-url/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247237678,"owners_count":20906329,"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":["astro","chatgpt","gpts","gptstore","taiwindcss"],"created_at":"2024-08-01T15:00:59.285Z","updated_at":"2025-04-04T19:31:29.343Z","avatar_url":"https://github.com/CH563.png","language":"Astro","funding_links":["https://www.buymeacoffee.com/liwen563"],"categories":["Astro"],"sub_categories":[],"readme":"![GPTsURL](https://github.com/CH563/gtps-url/blob/main/public/logo.png)\n\n[👉掘金文章](https://juejin.cn/post/7303386068606648359)\n\n# GPTs URL\n\nDiscover the GPTs Store by OpenAI | GPTsURL - Share and search GPTs url to use ChatGPT\n\n*Logo used from ChatGPT DALL·E Designs*\n\n## 🚀 Project Structure\n\n🍿 Live preview: [https://www.gptsurl.com](https://www.gptsurl.com)\n\n![GPTsURL](https://github.com/CH563/gtps-url/blob/main/public/image-white.png)\n\n[PageSpeed Insights](https://pagespeed.web.dev/analysis/https-gptsurl-com/hnkd6k6hly?hl=en_US\u0026form_factor=desktop)\n\n![PageSpeed](https://github.com/CH563/gtps-url/blob/main/page-speed.png)\n\nYou'll see the following folders and files:\n\n```text\n/\n├── public/\n│   └── favicon.png\n|   └── robot.txt\n├── src/\n│   ├── components/\n│   │   └── Card.astro\n│   ├── layouts/\n│   │   └── Layout.astro\n│   └── pages/\n│       └── index.astro\n└── package.json\n```\n\nAny static assets, like images, can be placed in the `public/` directory.\n\n## Dependencies\n\n[Vercel:](https://vercel.com/) used for deploying website\n\n[Vercel Storage Postgres:](https://vercel.com/docs/storage/vercel-postgres) used for storing data.\n\n## Quick start\n\nClone project\n\n ```bash\n git clone https://github.com/CH563/gtps-url.git\n ```\n\n### Prepare data\n\n#### create table in your postgres database with sql:\n\n- gpts_list - Used to store GPTs application information\n ```sql\n CREATE TABLE \"public\".\"gpts_lists\" (\n    \"id\" int8 NOT NULL,\n    \"title\" varchar,\n    \"url\" varchar,\n    \"icon\" varchar,\n    \"author\" varchar,\n    \"description\" text,\n    \"content\" text,\n    \"twitter\" varchar,\n    \"youtube\" varchar,\n    \"category\" varchar,\n    \"weights\" int4 DEFAULT 0,\n    \"scores\" int4 DEFAULT 0,\n    \"created_titme\" timestamptz DEFAULT now(),\n    \"search_key\" varchar,\n    PRIMARY KEY (\"id\")\n);\n ```\n\n - categories - Used to store GPTs categories\n ```sql\n -- Sequence and defined type\nCREATE SEQUENCE IF NOT EXISTS categories_id_seq;\n\n-- Table Definition\nCREATE TABLE \"public\".\"categories\" (\n    \"id\" int4 NOT NULL DEFAULT nextval('categories_id_seq'::regclass),\n    \"categories_name\" varchar(255) NOT NULL,\n    PRIMARY KEY (\"id\")\n);\n ```\n\n - list_categories - Many-to-many relational table for storing GPTs application categorization\n```sql\nCREATE TABLE \"public\".\"list_categories\" (\n    \"list_id\" int4 NOT NULL,\n    \"category_id\" int4 NOT NULL,\n    CONSTRAINT \"list_categories_category_id_fkey\" FOREIGN KEY (\"category_id\") REFERENCES \"public\".\"categories\"(\"id\"),\n    CONSTRAINT \"list_categories_list_id_fkey\" FOREIGN KEY (\"list_id\") REFERENCES \"public\".\"gpts_lists\"(\"id\"),\n    PRIMARY KEY (\"list_id\",\"category_id\")\n);\n```\n\n#### Get the GPTs data of zip into your postgres database, Is include 6,876 GPTs\n\n`Data from \"site:chat.openai.com/g/ {keyword|category}\"`\n\n[Download](https://github.com/CH563/gtps-url/releases/tag/v1.0.0)\n\n\n### Running Locally\n\n1. Install dependencies\n```bash\npnpm install\n```\n\n2. Create .env in project\n```bash\nPOSTGRES_URL=\"postgres://default:xxx@xxx.postgres.vercel-storage.com/verceldb\"\n```\n\n3. Run the application, the local project runs on http://localhost:4321/\n```bash\npnpm run dev\n```\n\n## 🧞 Commands\n\nAll commands are run from the root of the project, from a terminal:\n\n| Command                   | Action                                           |\n| :------------------------ | :----------------------------------------------- |\n| `npm install`             | Installs dependencies                            |\n| `npm run dev`             | Starts local dev server at `localhost:4321`      |\n| `npm run build`           | Build your production site to `./dist/`          |\n| `npm run preview`         | Preview your build locally, before deploying     |\n| `npm run astro ...`       | Run CLI commands like `astro add`, `astro check` |\n| `npm run astro -- --help` | Get help using the Astro CLI                     |\n\n\n## Deploy\n\n### Deploy With Vercel\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FCH563%2Fgtps-url\u0026env=POSTGRES_URL\u0026envDescription=Vercel%20Storage%20Postgres%20Link%20Address)\n\n![Deplay Vercel](https://github.com/CH563/gtps-url/blob/main/vercel.png)\n\n### If you find anything wrong, give me an Issues\n\n[Give me the bugs](https://github.com/CH563/gtps-url/issues)\n\n## Thanks to\n\n[Astro](https://astro.build/) for deployment\n\ninspired credit to [GPTsHunter](https://www.GPTsHunter.com), [AllGPTs](https://allgpts.co/)\n\n### Else if this project is helpful to you, buy me a coffee😄\n\n\u003ca href=\"https://www.buymeacoffee.com/liwen563\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" style=\"height: 30px !important;width: 117px !important;\" \u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCH563%2Fgpts-url","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCH563%2Fgpts-url","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCH563%2Fgpts-url/lists"}