[READ-ONLY] Mirror of https://github.com/flo-bit/bluesky-visualizers. visualizing bluesky live data in different ways flo-bit.dev/bluesky-visualizers/
bluesky svelte visualizations
0

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1 from flo-bit/main

small fixes

authored by

Florian and committed by
GitHub
(Nov 19, 2024, 3:32 AM +0100) a9dadc3b 501a7f9f

+11 -37
+5 -34
README.md
··· 1 - # sv 1 + # bluesky visualizers 2 2 3 - Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli). 3 + collection of visualizations for bluesky, using the bluesky api, tailwind, svelte and pixijs. 4 4 5 - ## Creating a project 5 + [trending hashtags](https://flo-bit.dev/bluesky-visualizers/trending) 6 6 7 - If you're seeing this, you've probably already done this step. Congrats! 7 + [wordcloud](https://flo-bit.dev/bluesky-visualizers/wordcloud) 8 8 9 - ```bash 10 - # create a new project in the current directory 11 - npx sv create 12 - 13 - # create a new project in my-app 14 - npx sv create my-app 15 - ``` 16 - 17 - ## Developing 18 - 19 - Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: 20 - 21 - ```bash 22 - npm run dev 23 - 24 - # or start the server and open the app in a new browser tab 25 - npm run dev -- --open 26 - ``` 27 - 28 - ## Building 29 - 30 - To create a production version of your app: 31 - 32 - ```bash 33 - npm run build 34 - ``` 35 - 36 - You can preview the production build with `npm run preview`. 37 - 38 - > To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment. 9 + [particles](https://flo-bit.dev/bluesky-visualizers/particles)
+5
src/app.html
··· 1 1 <!doctype html> 2 2 <html lang="en"> 3 + <script> 4 + !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host.replace(".i.posthog.com","-assets.i.posthog.com")+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys getNextSurveyStep onSessionId".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]); 5 + posthog.init('phc_1Q4q6SdTwvStnxFWbmdOIusLc5ve0u6Fk7WpsHPoAlD',{api_host:'https://eu.i.posthog.com', person_profiles: 'identified_only', persistence: 'memory'}) 6 + </script> 7 + 3 8 <head> 4 9 <meta charset="utf-8" /> 5 10 <link rel="icon" href="%sveltekit.assets%/favicon.png" />
-2
src/routes/+page.svelte
··· 1 1 <script> 2 - 3 2 import Credit from "$lib/Credit.svelte"; 4 - 5 3 </script> 6 4 <Credit showAll={false} /> 7 5
+1 -1
src/routes/trending/+page.svelte
··· 70 70 // check if we're up to date 71 71 72 72 const postTime = json.time_us; 73 - if (Date.now() > lastUpdateTime + 5000 && posts > 1000) { 73 + if (Date.now() > lastUpdateTime + 5000 && posts > 100) { 74 74 lastUpdateTime = Date.now(); 75 75 76 76 // update last update time