{"id":13539891,"url":"https://github.com/ascorbic/impala","last_synced_at":"2025-06-22T08:33:34.550Z","repository":{"id":147781378,"uuid":"618868343","full_name":"ascorbic/impala","owner":"ascorbic","description":"Very simple React and Preact static site generator","archived":false,"fork":false,"pushed_at":"2024-12-09T10:50:41.000Z","size":204,"stargazers_count":145,"open_issues_count":1,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-05-25T05:05:23.781Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/ascorbic.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":"2023-03-25T15:32:55.000Z","updated_at":"2025-05-17T15:52:58.000Z","dependencies_parsed_at":"2023-11-12T09:25:47.555Z","dependency_job_id":"93204bd7-18dd-4d95-86c8-aa4cc56ae534","html_url":"https://github.com/ascorbic/impala","commit_stats":{"total_commits":55,"total_committers":4,"mean_commits":13.75,"dds":0.2545454545454545,"last_synced_commit":"d435cf9f914ece181e59f20fc4aecfa9896d2b95"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/ascorbic/impala","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fimpala","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fimpala/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fimpala/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fimpala/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ascorbic","download_url":"https://codeload.github.com/ascorbic/impala/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ascorbic%2Fimpala/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261262477,"owners_count":23132457,"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-08-01T09:01:33.534Z","updated_at":"2025-06-22T08:33:29.536Z","avatar_url":"https://github.com/ascorbic.png","language":"TypeScript","readme":"# Impala\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/213306/227727009-a4dc391f-efb1-4489-ad73-c3d3a327704a.png\" width=\"100\" /\u003e\n\u003c/p\u003e\n\n\u003ch2 align=\"center\"\u003eVery simple React and Preact static site generator\u003c/h2\u003e\n\u003ch3 align=\"center\"\u003e\u003cpre\u003enpm create impala@latest\u003c/pre\u003e\u003c/h3\u003e\n\nImpala is a bare-bones static-site framework, powered by [Vite](https://github.com/vitejs/vite). It currently supports [React](https://react.dev) and [Preact](https://preactjs.com/). Features include:\n\n- SSG-only, MPA-only. It's iMPAla, not iSPAla.\n- File-based routing, with a syntax like [Astro](https://github.com/withastro/astro) and [Solid Start](https://github.com/solidjs/solid-start)\n- Static and dynamic routes\n- Astro and [Next.js](https://github.com/vercel/next.js/)-inspired data fetching in `getStaticPaths`, and `getRouteData`\n- Route-level code-splitting\n- Optionally JS-free\n\n## Usage\n\n## Routing\n\nCreate pages in `src/routes` and they will be available as routes in your site. For example, `src/routes/about.tsx` will be available at `/about`. You can also create dynamic routes, like `src/routes/blog/[slug].tsx`, but you'll need to add a `[slug].data.ts` file with a `getStaticPaths` function to tell Impala what paths to generate and the data to use.\n\nYou can also do catch-all routes, like `src/routes/blog/[...slug].tsx`, which also needs a `[...slug].data.ts` file with a `getStaticPaths` function.\n\n## Data fetching\n\nFor dynamic routes you should fetch data in `getStaticPaths`. For static routes you should fetch data in `getRouteData`. For example, if you have a route at `src/routes/blog/[slug].tsx`, you should create a `src/routes/blog/[slug].data.ts` file with a `getStaticPaths` function. This function should return an array of paths to generate, and the data to use for each path.\n\nSee the demo site for more.\n\n## FAQ\n\n### Why did you build this?\n\nMainly to learn, but also because there's no statically-rendered [create-react-app](https://github.com/facebook/create-react-app) equivalent. I often want a simple React site with static rendering but no SSR. Astro is awesome, but I want something that's more vanilla React.\n\n### Does it support SSR\n\nDeliberately not. If you want SSR, use Astro.\n\n### Does it support client-side navigation?\n\nDeliberately not. If you want client-side navigation, use one of the many other SPA frameworks.\n\n## License\n\nCopyright © 2023 Matt Kane. Licenced under the MIT licence.\n\nImpala logo created by [Freepik - Flaticon](https://www.flaticon.com/free-icons/impala)\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascorbic%2Fimpala","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fascorbic%2Fimpala","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fascorbic%2Fimpala/lists"}