{"id":19520307,"url":"https://github.com/henryhale/create-unit","last_synced_at":"2026-04-16T10:01:55.123Z","repository":{"id":215799160,"uuid":"739806541","full_name":"henryhale/create-unit","owner":"henryhale","description":"🟡 Build your website in units.","archived":false,"fork":false,"pushed_at":"2024-10-15T08:20:41.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T05:37:08.796Z","etag":null,"topics":["henryhale","js","meta-framework","static-site-generator","static-website","unit-js"],"latest_commit_sha":null,"homepage":"https://henryhale.github.io/create-unit/","language":"CSS","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/henryhale.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-01-06T15:51:48.000Z","updated_at":"2024-10-15T08:20:45.000Z","dependencies_parsed_at":"2024-01-17T16:25:22.543Z","dependency_job_id":"96a125e0-3def-4808-8387-d254982ea783","html_url":"https://github.com/henryhale/create-unit","commit_stats":null,"previous_names":["henryhale/create-unit"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/henryhale/create-unit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fcreate-unit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fcreate-unit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fcreate-unit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fcreate-unit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henryhale","download_url":"https://codeload.github.com/henryhale/create-unit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henryhale%2Fcreate-unit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31880882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["henryhale","js","meta-framework","static-site-generator","static-website","unit-js"],"created_at":"2024-11-11T00:24:53.258Z","updated_at":"2026-04-16T10:01:55.100Z","avatar_url":"https://github.com/henryhale.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=center\u003e\n\n\u003cimg src=https://github.com/henryhale/create-unit/raw/master/starter/src/public/favicon.png /\u003e\n\n# Unit.js\n\nfocus - simplicity - productivity\n\n\u003c/div\u003e\n\n## Overview\n\nUnit.js is a lightweight HTML-first static site generator designed to bring focus, simplicity, and enhanced developer productivity to your projects.\nPowered by [Vite](https://vitejs.dev), Unit.js encourages a streamlined development experience with a unique approach to components.\n\nDefine state and components once, reuse them wherever.\n\n\u003e Note: ⚠️ This project is still under development.\n\n## Screenshot\n\n![](https://github.com/henryhale/create-unit/blob/master/screenshot.png)\n\nDemo link: [Click here](https://henryhale.github.io/create-unit/).\n\n## Key Features\n\n- [x] **Focus on Simplicity**: Unit.js embraces simplicity as a core principle, making it easy for developers to create and manage UI components effortlessly.\n\n- [x] **File-based Components**: Components in Unit.js are represented as files ending with the `.unit` extension. This convention simplifies organization and encourages a modular structure in your project. You can import `.unit` files into another `.unit` file.\n\n- [x] **HTML Build Output**: Generate fully-rendered pages of your website at build time.\n\n- [x] **Reactive by Choice**: Leverage the expressive syntax of reactivity-powered libraries like [Alpine.js](https://alpinejs.dev) to create components reactive at runtime.\n\n\u003e Note:\n\u003e Unit.js is powered by [Vite](https://vitejs.dev) and so most features\n\u003e can be used directly in your project for example asset handling.\n\n## Preresquites\n\nBasic understanding of HTML, CSS, JavaScript and Node.js ([npm](https://npmjs.org) or [pnpm](https://pnpm.io)) is required.\n\n## Getting Started\n\n1. **Installation**\n\n   Create a new project, `my_app` using your preferred package manager.\n\n   ```sh\n    npx create unit my_app\n    # pnpm dlx create-unit my_app\n    ```\n\n    Navigate to your project and install dependencies\n\n    ```sh\n    cd my_app\n    npm install\n    # pnpm install\n    ```\n\n2. **Create Your First Component**\n   \n   Start building your UI component by simply create a new file `hello.unit` under the `src/components/` folder. \n\n   ```html\n   \u003c!-- src/components/hello.unit --\u003e\n   \u003ch1\u003eHello, Unit.js!\u003c/h1\u003e\n   ```\n\n   Import it into the `src/pages/index.unit` and you're ready to go live.\n\n   ```html\n   \u003c!-- index.unit --\u003e\n   import Hello from \"../components/hello.unit\";\n\n   \u003cHello /\u003e\n   ```\n\n   Of course you can add props html attributes, for example:\n   ```html\n   ...\n   \u003cHello class=\"text-xl\" id=\"hello\" /\u003e\n   ```\n\n3. **Run the Development Server**\n   \n   Start the development server to see your changes in real-time.\n\n   ```sh\n   npm run dev\n   # pnpm dev\n   ```\n\n4. **Build for Production**\n   \n   When you're ready to deploy your application, build for production to optimize and minimize your code.\n\n   ```sh\n   npm run build\n   # pnpm build\n   ```\n\n5. **Deployment**\n   \n   After building your project, production files exist in the `dist` folder at the root of your project. Check out [Vite's deployment guide](https://vitejs.dev/guide/static-deploy.html).\n\n## File Structure\n\n- `.vscode/`: contains settings and recommended extensions for [Visual Studio Code](https://code.visualstudio.com/) users\n- `src/`: all your project source files here\n- `src/components/`: contains reusable `.unit` files\n- `src/data/`: contains composable and state scripts\n- `src/pages/`: contains only `.unit` files for corresponding html pages\n- `src/public/`: contains assets to be served at the root like _favicon.png_\n- `src/template.html`: used to generate html pages from every `.unit` file in `src/pages/` folder on build time\n- `src/main.js`: common script for all pages placed in the `src/template.html`. \n  For a different script per page, create another script and add a script tag in the corresponding `.unit` file under the `src/pages/` folder\n- `src/global.css`: Shared CSS styles\n\n## Contributing\n\nContributions are welcome to make Unit.js even better! Feel free to open issues or submit pull requests.\n\n## License\n\nUnit.js is released under the [MIT License](https://github.com/henryhale/create-unit/blob/master/LICENSE.txt).\n\nCopyright \u0026copy; 2024-present, [Henry Hale](https://github.com/henryhale)\n\n---\n\n_Enjoy the focus, simplicity, and increased productivity that Unit.js brings to your UI development!_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryhale%2Fcreate-unit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenryhale%2Fcreate-unit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenryhale%2Fcreate-unit/lists"}