{"id":18438659,"url":"https://github.com/seapagan/link-page","last_synced_at":"2025-10-14T01:12:41.099Z","repository":{"id":252817190,"uuid":"840624452","full_name":"seapagan/link-page","owner":"seapagan","description":"A landing page to show your homepage, github, social media etc. Written using FastAPI and Jinja2 templates","archived":false,"fork":false,"pushed_at":"2025-10-08T09:35:16.000Z","size":344,"stargazers_count":1,"open_issues_count":16,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T11:35:42.546Z","etag":null,"topics":["fastapi","jinja2","landing-page","linktree","python"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/seapagan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2024-08-10T07:28:28.000Z","updated_at":"2024-11-08T11:34:41.000Z","dependencies_parsed_at":"2024-08-12T19:05:22.537Z","dependency_job_id":"c7481fb0-4420-4966-94ac-e8e0e0f46729","html_url":"https://github.com/seapagan/link-page","commit_stats":null,"previous_names":["seapagan/link-page"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/seapagan/link-page","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seapagan%2Flink-page","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seapagan%2Flink-page/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seapagan%2Flink-page/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seapagan%2Flink-page/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seapagan","download_url":"https://codeload.github.com/seapagan/link-page/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seapagan%2Flink-page/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017454,"owners_count":26086081,"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-10-13T02:00:06.723Z","response_time":61,"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":["fastapi","jinja2","landing-page","linktree","python"],"created_at":"2024-11-06T06:21:03.455Z","updated_at":"2025-10-14T01:12:41.060Z","avatar_url":"https://github.com/seapagan.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Link Page \u003c!-- omit in toc --\u003e\n\nA Python FastAPI app to create a link page for social media profiles, Homepage,\nGitHub, etc.\n\nThe use-case that prompted this is to have a configurable target for a static\nlink in a QR code on a business card. The page is deliberately simple and static\nto ensure that it loads quickly and is easy to maintain.\n\nIn addition:\n\n- It's an example of using FastAPI with Jinja2 templates. This allows having\na simple web site, but still able to access config files, databases and API's.\n- It shows how to hook into the 'uvicorn' logger so we can add our own logs to\nthat and take advantage of the same formatting and colors as the rest of the\nuvicorn logging.\n- Shows how to use a `TOML` configuration file for your FastAPI applications.\nShameless plug - it uses my\n[simple-toml-settings](https://github.com/seapagan/simple-toml-settings)\nlibrary.\n\nI may build this into a complete 'linktree' type clone later with database use\nand user login etc. Just for fun :grin:\n\n\u003c!-- vim-markdown-toc GFM --\u003e\n\n- [Working Example](#working-example)\n- [Configuration](#configuration)\n- [Development setup](#development-setup)\n- [License](#license)\n- [Credits](#credits)\n\n\u003c!-- vim-markdown-toc --\u003e\n\n## Working Example\n\nA working example of this app can be found at\n[https://me.seapagan.net](https://me.seapagan.net).\n\n## Configuration\n\nThis app uses a `TOML` configuration file. This is stored in the `config.toml`\nfile in the root of the project. There are a few settings that can be changed\nin this file:\n\n```toml\n[linkpage]\nname=\"Grant Ramsay\" # put your name here\nrole=\"Python and Full-Stack Developer\" # put your role here\ngithub_user=\"seapagan\" # put your GitHub username here\nschema_version = \"none\"\n\n[linkpage.homepage]\nurl=\"https://www.gnramsay.com\" # put your homepage URL here\ntitle=\"My Homepage\" # put the title of your homepage here\n\n[linkpage.social]\ntwitter=\"gnramsay_dev\" # put your Twitter username here\nlinkedin=\"gnramsay\" # put your LinkedIn username here\nyoutube=\"seapagan\" # put your YouTube username here\nmedium=\"seapagan\" # put your Medium username here\ndevto=\"\" # put your Dev.to username here\ntwitch=\"\" # put your Twitch username here\n```\n\nIf any of the social media profiles are not used, then leave the value as an\nempty string or remove the line from the configuration file.\n\n\u003e [!NOTE]\n\u003e If you are serving your app using a gunicorn service etc, you will need to\n\u003e restart the service to pick up the changes to the configuration file.\n\n## Development setup\n\nI have recently changed the development setup to use\n[uv](https://docs.astral.sh/uv/) for python version control and virtual\nenvironments instead of `poetry`\n\nInstall the dependencies using `uv`:\n\n```console\nuv sync\n```\n\nThen, activate the virtual environment:\n\n```console\nsource .venv/bin/activate\n```\n\nYou can use the poe task runner to easily run uvicorn:\n\n```console\npoe serve\n```\n\n\u003e [!IMPORTANT]\n\u003e This is the recommended way to run the app in development but **NOT\n\u003e in production**. For production, you should use a proper ASGI server like\n\u003e `gunicorn` to run the 'uvicorn' server, usually behind a reverse proxy like\n\u003e `nginx`.\n\nThese is also a browser-sync task that will start a browser-sync server to\nreload the browser when changes are made to the templates or static files,\nwhich should be run in a separate terminal:\n\n```console\npoe show\n```\n\nThe latter will automatically open your default browser to the correct URL, and\nreload when required.\n\n## License\n\nThis project is licensed under the MIT License.\n\n```pre\nThe MIT License (MIT)\nCopyright (c) 2024 Grant Ramsay\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\nDAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE\nOR OTHER DEALINGS IN THE SOFTWARE.\n```\n\n## Credits\n\nThe original Python boilerplate for this program was created using my\n[Pymaker](https://github.com/seapagan/py-maker) application.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseapagan%2Flink-page","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseapagan%2Flink-page","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseapagan%2Flink-page/lists"}