{"id":30318339,"url":"https://github.com/altinn/digdir-chunker","last_synced_at":"2025-08-17T20:11:34.873Z","repository":{"id":291047290,"uuid":"964048632","full_name":"Altinn/digdir-chunker","owner":"Altinn","description":null,"archived":false,"fork":false,"pushed_at":"2025-08-06T16:12:57.000Z","size":215,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-06T18:15:55.089Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/Altinn.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}},"created_at":"2025-04-10T15:57:17.000Z","updated_at":"2025-08-06T16:13:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"148608cc-dc32-474f-a3f2-dc82290cef23","html_url":"https://github.com/Altinn/digdir-chunker","commit_stats":null,"previous_names":["altinn/digdir-chunker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Altinn/digdir-chunker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Fdigdir-chunker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Fdigdir-chunker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Fdigdir-chunker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Fdigdir-chunker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Altinn","download_url":"https://codeload.github.com/Altinn/digdir-chunker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Altinn%2Fdigdir-chunker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270899582,"owners_count":24664720,"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-08-17T02:00:09.016Z","response_time":129,"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-08-17T20:10:30.404Z","updated_at":"2025-08-17T20:11:34.848Z","avatar_url":"https://github.com/Altinn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# digdir-chunker\n\nThis application provides a JSON REST API and MCP tools for converting PDF and other documents to paginated and chunked Markdown.\n\nThe service takes a URL to a document as input and returns a document ID which can be used as a parameter for polling the conversion status and retrieving the converted and chunked document when it has been processed.\n\n## Development and deployment\n\nCreate an environment file and make any eventual configuration changes (e.g. change `APP_ENV` from `local` to `production` for deployment).\n\n```\ncp .env.example .env\n```\n\nStart the application and required services:\n\n```\ndocker-compose up -d\n```\n\nInstall dependencies:\n```\ndocker compose exec app composer install\n```\n\nSet the application key:\n\n```\ndocker compose exec app php artisan key:generate\n```\n\nRun database migrations:\n\n```\ndocker compose exec app php artisan migrate\n```\n\nRestart queues:\n```\ndocker compose exec app php artisan queue:restart\n```\n\nThe application should now be up and running on localhost port 80 by default.\n\n## MCP setup\n\nThe HTTP transport MCP server is available at http://localhost/mcp by default.\n\nThe MCP server can also be run locally using the stdio transport. Replace `\u003cpath-to-digdir-chunker\u003e` with the absolute path to this repo in this example config:\n\n```\n{\n    \"mcpServers\": {\n        \"digdir-chunker\": {\n            \"command\": \"/usr/local/bin/docker\",\n            \"args\": [\n                \"compose\",\n                \"-f\",\n                \"\u003cpath-to-digdir-chunker\u003e/docker-compose.yml\",\n                \"exec\",\n                \"-T\",\n                \"app\",\n                \"php\",\n                \"artisan\",\n                \"mcp:serve\",\n                \"--transport=stdio\"\n            ]\n        }\n    }\n}\n```\n\n\n## Common commands\n\nRestart the queue (required after code changes that affect jobs)\n\n```\ndocker compose exec app php artisan queue:restart\n```\n\nReset the database (delete tables, run migrations and seed the database with default data)\n\n```\ndocker compose exec app php artisan migrate:refresh --seed\n```\n\nList all available commands:\n\n```\ndocker compose exec app php artisan list\n```\n\n## REST API documentation\n\nAPI documentation is automatically generated and published at `/docs/api`.\n\n## Maintenance\n\nDependencies should be regularly updated by running:\n```\ncomposer update\nyarn upgrade\n```\n\nand committing changes in `composer.json` and `yarn.json`.\n\n## Tech stack\n\n- PHP (php-fpm)\n- Laravel framework\n- MariaDB\n- Nginx\n- [Marker](https://github.com/VikParuchuri/marker)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltinn%2Fdigdir-chunker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faltinn%2Fdigdir-chunker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faltinn%2Fdigdir-chunker/lists"}