{"id":42980852,"url":"https://github.com/dieharders/example-tauri-python-server-sidecar","last_synced_at":"2026-01-31T01:44:33.268Z","repository":{"id":267049242,"uuid":"679535653","full_name":"dieharders/example-tauri-python-server-sidecar","owner":"dieharders","description":"An example desktop app built using the Tauri framework to bundle Next.js with a Python server.","archived":false,"fork":false,"pushed_at":"2024-12-08T00:13:01.000Z","size":157,"stargazers_count":61,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-08T00:21:47.267Z","etag":null,"topics":["desktop-app","fastapi","native-apps","nextjs","pnpm","python","scaffold-template","tauri-app"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dieharders.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-17T04:15:51.000Z","updated_at":"2024-12-08T00:13:05.000Z","dependencies_parsed_at":"2024-12-08T00:23:12.905Z","dependency_job_id":"3333dc01-33dc-46f5-bea5-33b8892d8da0","html_url":"https://github.com/dieharders/example-tauri-python-server-sidecar","commit_stats":null,"previous_names":["dieharders/example-tauri-python-server-sidecar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dieharders/example-tauri-python-server-sidecar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieharders%2Fexample-tauri-python-server-sidecar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieharders%2Fexample-tauri-python-server-sidecar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieharders%2Fexample-tauri-python-server-sidecar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieharders%2Fexample-tauri-python-server-sidecar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dieharders","download_url":"https://codeload.github.com/dieharders/example-tauri-python-server-sidecar/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dieharders%2Fexample-tauri-python-server-sidecar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28926499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T22:32:35.345Z","status":"ssl_error","status_checked_at":"2026-01-30T22:32:31.927Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["desktop-app","fastapi","native-apps","nextjs","pnpm","python","scaffold-template","tauri-app"],"created_at":"2026-01-31T01:44:33.182Z","updated_at":"2026-01-31T01:44:33.252Z","avatar_url":"https://github.com/dieharders.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example Tauri v1 app using Python sidecar\n\nA native app built with Tauri v1 that spawns a Python sub-process (sidecar) which starts a FastAPI server.\n\n![Python](https://img.shields.io/badge/-Python-000?\u0026logo=Python)\n![TypeScript](https://img.shields.io/badge/-TypeScript-000?\u0026logo=TypeScript)\n![Rust](https://img.shields.io/badge/-Rust-000?\u0026logo=Rust)\n\u003cbr\u003e\n![FastAPI](https://img.shields.io/badge/-FastAPI-000?\u0026logo=fastapi)\n![NextJS](https://img.shields.io/badge/-NextJS-000?\u0026logo=nextdotjs)\n![Tauri](https://img.shields.io/badge/-Tauri-000?\u0026logo=Tauri)\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e \u003cstrong\u003eTauri v2 example is now available 👇\n\u003e\n\u003e \u003ca href=\"https://github.com/dieharders/example-tauri-v2-python-server-sidecar\" style=\"color: #228be6\"\u003eexample-tauri-v2-python-server-sidecar\u003c/a\u003e\u003c/strong\u003e\n\u003e\n\u003e More features and documentation with example app.exe.\n\n\u003c!-- \u003ch2 align=\"center\" style=\"padding: 0.5rem; margin-bottom: 1rem; font-weight: bold; background-color: #fab005; color: black; width: 100%; height: auto; text-align: center;\"\u003e👀 🚨 Attention 🚨 👀\u003cbr/\u003eTauri v2 example is now available:\u003cbr/\u003e\u003ca href=\"https://github.com/dieharders/example-tauri-v2-python-server-sidecar\" style=\"color: #228be6\"\u003eexample-tauri-v2-python-server-sidecar\u003c/a\u003e\n\u003cp style=\"font-weight: normal\"\u003eMore features, build scripts, examples and documentation.\u003c/p\u003e\u003c/h2\u003e --\u003e\n\n![logo](extras/sidecar-logo.png \"python sidecar logo\")\n\n## Introduction\n\nThis example app uses Next.js as the frontend and Python (FastAPI) as the backend. Tauri is a Rust framework that orchestrates the frontend and backend(s) into a native app experience.\n\n## How It Works\n\n![python sidecar architecture](extras/diagram.png \"python sidecar architecture\")\n\nTauri takes your frontend UI written in html/javascript and displays it in a native webview. This makes the resulting file size smaller since it does not need to include a web browser.\n\n## Getting Started\n\n### Dependencies\n\nInstall dependencies for javascript:\n\n```bash\npnpm install\n```\n\nTo install python dependencies listed in requirements.txt:\n\n```bash\npnpm dev-reqs\n```\n\nIn case you dont have PyInstaller installed:\n\n```bash\npip install -U pyinstaller\n```\n\n### Run\n\nTo run the app in development mode with hot-reload (js):\n\n```bash\npnpm tauri dev\n```\n\n### Build\n\n#### Compile python sidecar\n\nRun this at least once before running `pnpm tauri dev` and each time you make changes to your python code. This command is also called by `pnpm tauri build`:\n\n```bash\npnpm build:fastapi\n```\n\n#### Build app for production:\n\n```bash\npnpm tauri build\n```\n\nThis creates an installer located here:\n\n- \\\u003cproject-dir\u003e\\src-tauri\\target\\release\\bundle\\nsis\n\n## Learn More\n\n- [Tauri Framework](https://tauri.app/) - learn about native app development in javascript and rust.\n- [NextJS](https://nextjs.org/docs) - learn about the popular react framework Next.js\n- [FastAPI](https://fastapi.tiangolo.com/) - learn about FastAPI server features and API.\n- [PyInstaller](https://pyinstaller.org/en/stable/) - learn about packaging python code.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieharders%2Fexample-tauri-python-server-sidecar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdieharders%2Fexample-tauri-python-server-sidecar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdieharders%2Fexample-tauri-python-server-sidecar/lists"}