{"id":15018091,"url":"https://github.com/tknf/miujs","last_synced_at":"2025-10-23T15:31:29.580Z","repository":{"id":65522253,"uuid":"484535643","full_name":"tknf/miujs","owner":"tknf","description":"A Node.js framework for development of fast, simple, lightweight website.","archived":false,"fork":false,"pushed_at":"2022-09-30T13:28:07.000Z","size":1033,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-30T19:11:29.729Z","etag":null,"topics":["framework","html","javascript","nodejs","nunjucks","typescript","website"],"latest_commit_sha":null,"homepage":"https://www.miujs.com","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/tknf.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}},"created_at":"2022-04-22T18:34:06.000Z","updated_at":"2022-06-19T07:43:41.000Z","dependencies_parsed_at":"2023-01-27T06:01:02.006Z","dependency_job_id":null,"html_url":"https://github.com/tknf/miujs","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknf%2Fmiujs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknf%2Fmiujs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknf%2Fmiujs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknf%2Fmiujs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tknf","download_url":"https://codeload.github.com/tknf/miujs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237852296,"owners_count":19376649,"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":["framework","html","javascript","nodejs","nunjucks","typescript","website"],"created_at":"2024-09-24T19:51:26.482Z","updated_at":"2025-10-23T15:31:28.861Z","avatar_url":"https://github.com/tknf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MiuJS Web Framework\n\nA simple and minimal web framework using the JavaScript and Node.js.\n\nFeaturing:\n- builtin server\n- multiple deploy target\n  - node\n  - vercel\n  - netlify\n- scoped css\n- live reload\n- no dependencies in client bundle\n- TypeScript support\n\n## Getting Started\n```bash\nnpx create-miu@latest\n```\n\n## Minimal example:\n### Input\n```js\n// src/routes/index.js\nimport { render } from \"miujs/node\";\n\nexport const get = ({ createContent }) =\u003e {\n  const html = createContent({\n    layout: \"default\",\n    sections: [\n      { name: \"index\" }\n    ],\n    metadata: { title: \"homepage\" },\n    data: {\n      title: \"My first website\",\n      content: \"Thanks for visiting!\"\n    }\n  });\n  return render(html, {\n    status: 200\n  });\n};\n```\n\n```html\n\u003c!-- src/layouts/default.njk --\u003e\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003cmeta charset=\"utf-8\"\u003e\n    \u003cmeta name=\"viewport\" content=\"width=device-width,initial-scale=1.0\"\u003e\n    \u003ctitle\u003e{{ metadata.title }}\u003c/title\u003e\n    \u003c!-- style --\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\n    \u003c!-- content --\u003e\n    \u003c!-- assets --\u003e\n    \u003clive-reload\u003e\u003c/live-reload\u003e\n  \u003c/body\u003e\n\u003c/html\u003e\n```\n\n```html\n\u003c!-- src/sections/index.njk --\u003e\n\u003cstyle scoped lang=\"scss\"\u003e\n  .root:scope {\n    display: block;\n    width: 100%;\n    position: relative;\n\n    .title {\n      margin-top: 0;\n      font-size: 2.8rem;\n    }\n  }\n\u003c/style\u003e\n\n\u003cdiv class=\"root\"\u003e\n  \u003ch1 class=\"title\"\u003e\n    {{ data.title }}\n  \u003c/h1\u003e\n  \u003cp\u003e\n    {{ data.description }}\n  \u003c/p\u003e\n\u003c/div\u003e\n```\n\n## Documentation\nLearn more about MiuJS on [our website](https://www.miujs.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknf%2Fmiujs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftknf%2Fmiujs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknf%2Fmiujs/lists"}