diff --git a/client-pure/src/about.html b/client-pure/src/about.html index 02633fc..4fdcd65 100644 --- a/client-pure/src/about.html +++ b/client-pure/src/about.html @@ -3,7 +3,8 @@
The Streaming API offered by Companies House makes it possible to listen for changes to the companies register.
-It uses a long-running HTTP endpoint, similar to Server Sent Events (SSE).
+The Streaming API offered by Companies House makes it possible to listen for changes to the companies + register.
+It uses a long-running HTTP endpoint, similar to Server Sent + Events (SSE).
Related links:
A non-technical interface for this data can be found at - Find and update company information. + Find and update company + information.
- Companies House offers multiple data products, which can be used by software developers to extract useful datasets about UK companies. - More information about each of their data products can be found on CH Guide, - which I started to collect related information about the data products. At a high level, there are three main ways to access Companies House data: + Companies House offers multiple data products, which can be used by software developers to extract useful + datasets about UK companies. + More information about each of their data products can be found on CH Guide, + which I started to collect related information about the data products. At a high level, there are three main + ways to access Companies House data:
This website was created by Brian Evans in January 2021.
-Brian Evans is a software developer with a focus on the JavaScript/TypeScript languages, and has used the Companies House data products since late 2020.
+Brian Evans is a software developer with a focus on the JavaScript/TypeScript languages, and has used the + Companies House data products since late 2020.
- I've worked with all the major Companies House public data products including their bulk data products, the REST API and the Streaming API. + I've worked with all the major Companies House public data products including their bulk data products, the REST + API and the Streaming API.
Statistics of the events that come through on the Companies House streaming API. This is to help design better systems for consuming the Streaming APIs.
diff --git a/client-pure/vite.config.ts b/client-pure/vite.config.ts index 51d8887..013d7f0 100644 --- a/client-pure/vite.config.ts +++ b/client-pure/vite.config.ts @@ -19,7 +19,7 @@ const pages = await readdir("src").then(ps => ps.filter(p => p.endsWith(".html") const sitemap = pages.map(p => p.replace("index.html", "")).map(p => `https://companies.stream/${p.slice(0, -5)}`).join("\n") await writeFile("src/public/sitemap.txt", sitemap) -const useLocalBackend = false +const useLocalBackend = true const backendHttpUrl = useLocalBackend ? "http://localhost" : "https://companies.stream" export default defineConfig({ @@ -38,6 +38,7 @@ export default defineConfig({ "/events/health": backendHttpUrl, "/events/downloadHistory": backendHttpUrl, "/events/stats": backendHttpUrl, + "/events/visitors": backendHttpUrl, "/events": { ws: true, target: "ws://localhost/events" } // can't be proxied to companies.stream } }, @@ -46,7 +47,7 @@ export default defineConfig({ format: "es" }, optimizeDeps: { - esbuildOptions : { + esbuildOptions: { target: "es2020" } }