{"id":22434698,"url":"https://github.com/wmartinmimi/spa-y","last_synced_at":"2026-04-29T18:34:45.310Z","repository":{"id":192391232,"uuid":"686637025","full_name":"wmartinmimi/spa-y","owner":"wmartinmimi","description":"A simple and lightweight js library for creating dynamic html from json endpoints using html templates.","archived":false,"fork":false,"pushed_at":"2023-09-03T13:14:31.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T08:22:05.333Z","etag":null,"topics":["html-templating","js","json","lightweight","mit-license"],"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/wmartinmimi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-09-03T13:06:40.000Z","updated_at":"2023-09-03T13:11:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"a3c79b08-c960-42de-8be3-e75facc3f147","html_url":"https://github.com/wmartinmimi/spa-y","commit_stats":null,"previous_names":["wmartinmimi/spa-y"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/wmartinmimi/spa-y","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmartinmimi%2Fspa-y","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmartinmimi%2Fspa-y/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmartinmimi%2Fspa-y/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmartinmimi%2Fspa-y/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wmartinmimi","download_url":"https://codeload.github.com/wmartinmimi/spa-y/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wmartinmimi%2Fspa-y/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32439295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"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":["html-templating","js","json","lightweight","mit-license"],"created_at":"2024-12-05T23:10:13.397Z","updated_at":"2026-04-29T18:34:45.306Z","avatar_url":"https://github.com/wmartinmimi.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# spa-y\n\nA simple and lightweight js library for creating dynamic html from json endpoints using html templates.\n\n```html\n\u003cdiv id=\"out\"\u003e\u003c/div\u003e\n\n\u003ctemplate id=\"template\"\u003e\n  \u003cp\u003e${body}\u003c/p\u003e\n\u003c/template\u003e\n\n\u003cscript\u003e\n  spay.get(\"/example.json\", \"#out\", \"#template\");\n\u003c/script\u003e\n```\n\n## Imports\n\n```html\n\u003c!-- this library uses jquery --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/gh/wmartinmimi/spa-y@1.0.0/spay.js\"\u003e\u003c/script\u003e\n```\n\n## Example usage\n\n```html\n\u003c!-- html to append in --\u003e\n\u003cdiv id=\"example\"\u003e\u003c/div\u003e\n\n\u003c!-- template to use --\u003e\n\u003c!-- uses string templating syntax --\u003e\n\u003c!-- avoid/escape backticks (`) --\u003e\n\u003ctemplate id=\"template\"\u003e\n  \u003ch2\u003e${header}\u003c/h2\u003e\n  \u003cp\u003e${body}\u003c/p\u003e\n\u003c/template\u003e\n\n\u003c!-- usage --\u003e\n\u003cscript\u003e\n  // spay.get( url, destination, template )\n  // IMPORTANT: JSON ENDPOINT SHOULD HAVE SANITIZED OUTPUT\n  spay.get(\"/example.json\", \"#example\", \"#template\");\n\n  /* example.json\n  {\n    \"header\": \"Hello dev\",\n    \"body\": \"Welcome to SPA-Y\"\n  }\n  */\n\n  /* outputs\n    \u003ch2\u003eHello dev\u003c/h2\u003e\n    \u003cp\u003eWelcome to SPA-Y\u003c/p\u003e\n  */\n\u003c/script\u003e\n```\n\nFor full html, see [/example.html](/example.html).\n\nFor more advanced usage, see [/advanced.html](/advanced.html).\n\n## Issues and Pull Requests\n\nAny issues or pull requests are welcomed.\n\n## License\n\nLicensed under ```MIT License```.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmartinmimi%2Fspa-y","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwmartinmimi%2Fspa-y","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwmartinmimi%2Fspa-y/lists"}