{"id":31772074,"url":"https://github.com/inseefr/lunatic-pdf-api","last_synced_at":"2026-02-20T10:01:31.699Z","repository":{"id":310963379,"uuid":"1041919053","full_name":"InseeFr/lunatic-pdf-api","owner":"InseeFr","description":"A lightweight HTTP API powered by Lunatic library to generate PDF reports from questionnaires and collected data.","archived":false,"fork":false,"pushed_at":"2025-09-23T11:43:10.000Z","size":359,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-23T11:44:09.483Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/InseeFr.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-21T07:54:57.000Z","updated_at":"2025-09-23T11:42:54.000Z","dependencies_parsed_at":"2025-08-21T10:31:04.826Z","dependency_job_id":"208d124f-9338-4adc-8137-8a9073ae08e7","html_url":"https://github.com/InseeFr/lunatic-pdf-api","commit_stats":null,"previous_names":["inseefr/lunatic-pdf-api"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/InseeFr/lunatic-pdf-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Flunatic-pdf-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Flunatic-pdf-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Flunatic-pdf-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Flunatic-pdf-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InseeFr","download_url":"https://codeload.github.com/InseeFr/lunatic-pdf-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InseeFr%2Flunatic-pdf-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002601,"owners_count":26083426,"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-10T02:00:06.843Z","response_time":62,"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":[],"created_at":"2025-10-10T03:55:44.489Z","updated_at":"2025-10-10T03:55:47.520Z","avatar_url":"https://github.com/InseeFr.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lunatic PDF API\n\nThis project provides an **Express-based API** to generate **PDF summaries** of data collected via web forms, using the [Lunatic](https://github.com/InseeFr/lunatic) library. It is designed for seamless integration into web applications that require dynamic, customizable PDF outputs of user-entered data.\n\n## ✨ Features\n\n- Generate **PDF recaps** from Lunatic web survey data.\n- Based on **Lunatic library** for consistent rendering of survey components.\n- REST API built with **Express** and **TypeScript** for reliability and scalability.\n- Easy to integrate into existing web platforms.\n\n## 🚀 Tech Stack\n\n- **Node.js** (Express)\n- **TypeScript**\n- **[@inseefr/lunatic](https://github.com/InseeFr/lunatic)** for rendering and data handling\n- PDF generation tools integrated with Lunatic models\n\n## 📦 Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/InseeFr/lunatic-pdf-api.git\ncd lunatic-pdf-api\n\n# Install dependencies\npnpm install\n```\n\n## 🌐 Launch api-server\n\n```bash\n# launch api on port 8080\npnpm run dev\n```\n\n## 👩‍💻 Launch pdf preview (minimal React + Vite app)\n\nFor development purposes only, read [README](./src/preview/README.md).\n\n```bash\n# launch vite app on port 5173\npnpm run dev:preview\n```\n\n## 🐋 Docker\n\nYou can run the docker image: `inseefr/lunatic-pdf-api`.\n\nThe environment variable `APPLICATION_SCHEME` and `APPLICATION_HOST` are useful for swagger configuration. (default: `http` and `localhost:8080`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finseefr%2Flunatic-pdf-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finseefr%2Flunatic-pdf-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finseefr%2Flunatic-pdf-api/lists"}