{"id":17528759,"url":"https://github.com/jafb321/filelify","last_synced_at":"2025-03-29T01:22:08.926Z","repository":{"id":132903210,"uuid":"463041138","full_name":"JAFB321/Filelify","owner":"JAFB321","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-15T09:10:41.000Z","size":188,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T11:22:37.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/JAFB321.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":"2022-02-24T06:54:50.000Z","updated_at":"2022-02-25T16:15:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"d077b999-efaa-44d0-b601-7a834c448afa","html_url":"https://github.com/JAFB321/Filelify","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAFB321%2FFilelify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAFB321%2FFilelify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAFB321%2FFilelify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JAFB321%2FFilelify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JAFB321","download_url":"https://codeload.github.com/JAFB321/Filelify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122969,"owners_count":20726920,"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-10-20T15:44:53.602Z","updated_at":"2025-03-29T01:22:08.903Z","avatar_url":"https://github.com/JAFB321.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Electron with Typescript application example\n\nThis example show how you can use Next.js inside an Electron application to avoid a lot of configuration, use Next.js router as view and use server-render to speed up the initial render of the application. Both Next.js and Electron layers are written in TypeScript and compiled to JavaScript during the build process.\n\n| Part       | Source code (Typescript) | Builds (JavaScript) |\n| ---------- | ------------------------ | ------------------- |\n| Next.js    | `/renderer`              | `/renderer`         |\n| Electron   | `/electron-src`          | `/main`             |\n| Production |                          | `/dist`             |\n\nFor development it's going to run a HTTP server and let Next.js handle routing. In production it use `next export` to pre-generate HTML static files and use them in your app instead of running an HTTP server.\n\n## How to use\n\nExecute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:\n\n```bash\nnpx create-next-app --example with-electron-typescript with-electron-typescript-app\n# or\nyarn create next-app --example with-electron-typescript with-electron-typescript-app\n```\n\nAvailable commands:\n\n```bash\n\"build-renderer\": build and transpile Next.js layer\n\"build-electron\": transpile electron layer\n\"build\": build both layers\n\"dev\": start dev version\n\"dist\": create production electron build\n\"type-check\": check TypeScript in project\n```\n\n## Notes\n\nYou can create the production app using `npm run dist`.\n\n_note regarding types:_\n\n- Electron provides its own type definitions, so you don't need @types/electron installed!\n  source: https://www.npmjs.com/package/@types/electron\n- There were no types available for `electron-next` at the time of creating this example, so until they are available there is a file `electron-next.d.ts` in `electron-src` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjafb321%2Ffilelify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjafb321%2Ffilelify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjafb321%2Ffilelify/lists"}