{"id":13524837,"url":"https://github.com/lukeed/preact-starter","last_synced_at":"2025-04-07T07:13:01.872Z","repository":{"id":66007887,"uuid":"78304781","full_name":"lukeed/preact-starter","owner":"lukeed","description":"Webpack3 boilerplate for building SPA / PWA / offline front-end apps with Preact","archived":false,"fork":false,"pushed_at":"2018-11-23T18:48:47.000Z","size":698,"stargazers_count":386,"open_issues_count":3,"forks_count":38,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-31T06:03:31.528Z","etag":null,"topics":["boilerplate","offline","preact","progressive-web-app","pwa","spa","starter-kit","webpack","webpack3"],"latest_commit_sha":null,"homepage":"https://preact-starter.now.sh/","language":"JavaScript","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/lukeed.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}},"created_at":"2017-01-07T21:28:51.000Z","updated_at":"2024-12-21T21:50:33.000Z","dependencies_parsed_at":"2024-01-11T14:27:53.282Z","dependency_job_id":null,"html_url":"https://github.com/lukeed/preact-starter","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fpreact-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fpreact-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fpreact-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukeed%2Fpreact-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukeed","download_url":"https://codeload.github.com/lukeed/preact-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247608153,"owners_count":20965952,"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":["boilerplate","offline","preact","progressive-web-app","pwa","spa","starter-kit","webpack","webpack3"],"created_at":"2024-08-01T06:01:13.882Z","updated_at":"2025-04-07T07:13:01.832Z","avatar_url":"https://github.com/lukeed.png","language":"JavaScript","readme":"# preact-starter\n\n\u003e Webpack3 boilerplate for building SPA / PWA / offline front-end apps with :atom_symbol: [Preact](https://github.com/developit/preact)\n\nUsing `preact-starter` will kickstart your next application! :100: It is designed to fit the \"90% use-case\" for those who want to build offline-first web apps (see [features](#features) below).\n\n\u003e :triangular_flag_on_post: **Important:** This is meant for _client-side_ apps only; there is **no support** included for universal / server-side rendering. I plan to release my own SSR kit shortly!\n\n**Please note:** Boilerplate _does not_ incorporate the latest [\"css-in-js\" or \"css modules\" technique](https://github.com/MicheleBertoli/css-in-js). Instead, the more traditional approach is taken, wherein `styles` and `scripts` are kept separate. That said, you may **certainly and easily** take that route if desired. :white_check_mark:\n\n---\n\n\u003cp align=\"center\"\u003e:warning: Boilerplate \u0026 commands will evolve as my own development process does. :warning:\u003c/p\u003e\n\n---\n\n## Install\n\n```sh\ngit clone https://github.com/lukeed/preact-starter\ncd preact-starter\nnpm install\nnpm run build\nnpm start\n```\n\n\u003e :exclamation: **Pro Tip:** Use [Yarn](https://yarnpkg.com/) to install dependencies 3x faster than NPM!\n\n## Features\n\n* Offline Caching (via `serviceWorker`)\n* SASS \u0026 Autoprefixer\n* Asset Versioning (aka \"cache-busting\")\n* ES2015 (ES6) and ES2016 (ES7) support\n* Hot Module Replacement (HMR) for all files\n* Preact's [Developer Tools](#preact-developer-tools)\n* [Lighthouse](https://github.com/GoogleChrome/lighthouse) certified\n\n  ![lightouse](src/static/img/lighthouse.jpg)\n\n## Development\n\n### Commands\n\nAny of the following commands can (and should :wink:) be run from the command line.\n\n\u003e If using [Yarn](https://yarnpkg.com/), all instances of `npm` can be replaced with `yarn`. :ok_hand:\n\n#### build\n\n```\n$ npm run build\n```\n\nCompiles all files. Output is sent to the `dist` directory.\n\n#### start\n\n```\n$ npm start\n```\n\nRuns your application (from the `dist` directory) in the browser.\n\n#### watch\n\n```\n$ npm run watch\n```\n\nLike [`start`](#start), but will auto-compile \u0026 auto-reload the server after any file changes within the `src` directory.\n\n### Preact Developer Tools\n\nYou can inspect and modify the state of your Preact UI components at runtime using the [React Developer Tools](https://github.com/facebook/react-devtools) browser extension.\n\n1. Install the [React Developer Tools](https://github.com/facebook/react-devtools) extension\n2. [Import the `preact/devtools`](src/index.js#L23) module in your app\n3. Reload and go to the 'React' tab in the browser's development tools\n\n## License\n\nMIT © [Luke Edwards](https://lukeed.com)\n","funding_links":[],"categories":["Uncategorized"],"sub_categories":["Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeed%2Fpreact-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukeed%2Fpreact-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukeed%2Fpreact-starter/lists"}