Ahoy
purgecss
Our great sponsors
Ahoy | purgecss | |
---|---|---|
15 | 51 | |
4,048 | 7,638 | |
- | 0.4% | |
7.7 | 8.1 | |
2 months ago | 7 days ago | |
Ruby | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Ahoy
-
Ahoy Captain: a full-featured, mountable analytics dashboard
A full-featured, mountable analytics dashboard for your Rails app, which is a blatant rip-off of heavily inspired by Plausible Analytics, powered by Ahoy. Open source, though lots of changing parts: https://github.com/joshmn/ahoy_captain
-
Best rails tools to automatically handle logging of things like all a user's actions, or changes to a record in a module - primarily for audit purposes.
For logging which functions were used you can use ahoy
-
How would you build an audit log in Rails for a high-throughput API?
Ahoy may be worth a try https://github.com/ankane/ahoy
-
Italian watchdog bans use of Google Analytics
I've slowly started ripping Google Analytics out of my Rails projects and replacing it with https://github.com/ankane/ahoy.
It's so much better! I can just use SQL to see what's going in and not get overwhelmed with 100's of visualizations and complicated dashboards.
-
Cookie-based tracking is dead
I did server-side tracking test in a rails app, where I implemented a tracking gem called ahoy and blazer for visualization. It is very easy to set up, but a bit hard to use. Blazer can do a very basic visualization of the data if you know your SQL queries.
-
Rails application boilerplate for fast MVP development
ahoy, ahoy_email and blazer for business intelligence
-
Active Analytics Ruby Gem
This gem could be considered as a new alternative to Ahoy https://github.com/ankane/ahoy
-
The Ruby Unbundled Series: Track How Customers Use New Features
After starting Rails and logging in, we can use Blazer to see our user metrics. Browse to our mount point, which on my development environment is at http://localhost:3000/blazer. Querying the ahoy_visits table shows us relevant information about the user and their session. We can also save this query as a shortcut to run it again later. After browsing to the page twice, I ran the following query on the events table. It gave the following results. Note that both events come from the same visit, which is equivalent to a session. We have seen how to track events on the server-side. Now let's look at how to accomplish this from the frontend in Javascript. To do this, we need to enable the Ahoy api in the config/initializers/ahoy.rb file, as shown below. Note that Ahoy also supports geocoding so that you can see where your users are located. We will not explore that feature in this article, but it is a nice capability from a metrics perspective.
- Simple and Free Web Analytics
purgecss
-
Optimize CSS with SAT Solving
As a starting point, Tailwind used to use PurgeCSS [0] but I'm not sure what they use now.
-
Frontend development roadmap
PurgeCss
-
Removing unused CSS in a Django template-based project
When I searched online I couldn't find an "industry standard" solution to this problem. What I ended up doing was using the popular tool PurgeCSS along with a quick Python script to generate the appropriate command. What the PurgeCSS tool does is search for all your HTML files, gather all the CSS classes used, and then "purge" all the unused ones from the CSS file. You just need to declare all the HTML files you have.
-
23 of the best Eleventy Themes (Starters) for 2023
Skeleventy gives you a rock-solid foundation to build fast and accessible static websites, with clean, understated design. Features include a minimal build pipeline with Laravel Mix, the Sass-powered utility class generator Gorko, Purge CSS, an HTML minifier, SEO-friendly page metadata, image lazy loading, responsive navigation, and an XML sitemap.
- Eliminating unused selectors from Sass
-
Workplaces for digital nomads: the frontend
Unable to get rid of unused styles. Importing components individually and setting styles in SASS can greatly simplify builds, but several common unused styles can't be deleted using PurgeCSS and analogues due to dynamic class names.
-
Does My Website Look Big in This? Six Tips to Lower your Page Weight
If you’re hand-crafting your CSS, using only the exact classes you need, you’ll still probably find that your CSS file size grows as your site does. But it doesn’t need to grow too much — you can remove unused classes with tools like Purge CSS .
-
Artisanal Web Development
Joost interprets this approach as deliberately avoiding frameworks that ‘simplify’ code by including predefined classes and functions that are shipped client-side, even if they’re not used. In principle you’d think these frameworks would be helpful, and they certainly can be, on the development side. The trouble is, unless they’re pared back with additional tooling (like PurgeCSS, for example), even well designed and developed sites can bloat significantly.
-
How to improve the PageSpeed score of your Nuxt.js website in 6 steps
Purge CSS is another great option to keep your stylesheet size low and increase the PageSpeed score. It's especially useful if you're importing some 3rd party stylesheets and would like to use only what's required. The configuration usually takes a bit of tinkering to get right, but it's definitely worth the effort.
-
Remove unused CSS with PurgeCSS
Check out PrugeCSS
What are some alternatives?
vue-vite-starter-template - A single page app Vite starter template, created to easily bootstrap Vue.js 2 apps
cssnano - A modular minifier, built on top of the PostCSS ecosystem.
PostCSS - Transforming styles with JS plugins
Impressionist - Rails Plugin that tracks impressions and page views
esbuild-loader - Webpack loader for esbuild: Speed up your build ⚡️
snarkdown - :smirk_cat: A snarky 1kb Markdown parser written in JavaScript
purifycss - Remove unused CSS. Also works with single-page apps.
Legato - Google Analytics Reporting API Client for Ruby
twin.macro - 🦹♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
active_analytics - First-party, privacy-focused traffic analytics for Ruby on Rails applications.
Staccato - Ruby library to perform server-side tracking into the official Google Analytics Measurement Protocol
storybook - Storybook is a frontend workshop for building UI components and pages in isolation. Made for UI development, testing, and documentation.