{"id":21405365,"url":"https://github.com/karimsa/pad","last_synced_at":"2025-03-16T16:51:04.076Z","repository":{"id":149731026,"uuid":"90101166","full_name":"karimsa/pad","owner":"karimsa","description":"Write legal documents in JSON.","archived":false,"fork":false,"pushed_at":"2017-05-23T23:44:53.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T21:04:00.666Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","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/karimsa.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":"2017-05-03T02:50:23.000Z","updated_at":"2017-05-23T21:10:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9715d0f-4b8b-458f-bfca-f61f9361a51e","html_url":"https://github.com/karimsa/pad","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fpad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fpad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fpad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karimsa%2Fpad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karimsa","download_url":"https://codeload.github.com/karimsa/pad/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366259,"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":[],"created_at":"2024-11-22T16:24:47.221Z","updated_at":"2025-03-16T16:51:04.053Z","avatar_url":"https://github.com/karimsa.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pad\n\nWrite legal documents in JSON.\n\n**Motivation:** It's very difficult to manage ammendments to legal documents and\nstill manage to have them look the way you want them to. The idea is to separate the style\nof the document from its actual content. So you can write \u0026 manage your contracts/documents\nas JSON files, and then turn them into PDFs when needed.\n\n*I built this for internal use at my startups, so it's not really abstracted. But if you have\nan interest and want any features, let me know via the issues section.*\n\n## CLI Usage\n\n```\n$ pad doc.json doc.pdf\n```\n\nThis will open up a window with your document. Just fill in any blanks you need filled,\nand then hit the checkmark in the bottom right. This will produce a proper PDF for you\nto print/distribute.\n\n## How to write the docs\n\nYou can write in standard JSON, where the document is separated into sections and each\nsection has a title and a body.\n\nThe document should always be:\n\n```json\n{\n  \"title\": \"The Title of Your Document\",\n  \"body\": /* another section goes here */\n}\n```\n\nBodies can be arrays or objects. If it is an object, it is formatted as nested sections.\nIf it is an array, string elements are treated as clauses and object elements are treated\nas nested sections.\n\n### Blanks\n\nThere is built-in support for all variables/definitions that you may need, just use handlebars\nto define them. The name should be whatever the proper legal readable name is.\n\nFor example, in a doc where I need the company's name, I can do:\n\n```json\n{\n  \"title\": \"Contract\",\n  \"body\": [\n    \"{{ the \\\"Company\\\" }} is super cool.\"\n  ]\n}\n```\n\nThis will become:\n\n________________ (the \"Company\") is super cool.\n\n## License\n\nLicensed under MIT license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fpad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarimsa%2Fpad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarimsa%2Fpad/lists"}