Updated

Technology · Code & frameworks

Goober

goober.js.org
Open source

What is Goober?

Goober is a CSS-in-JS library that lets you write component styles in JavaScript with a styled function, built to stay very small. It is free, open source software under the MIT license.[1][2]

Goober is a lightweight, CSS-in-JS styling solution for JavaScript applications. It offers a small footprint (less than 1KB gzipped) while providing features like nested selectors, media queries, and server-side rendering support. Goober is framework-agnostic and can be used with React, Preact, or vanilla JavaScript, making it a flexible choice for developers looking for a minimal yet powerful styling solution.

Goober belongs toJavaScript librariescategory.

What it is

A CSS-in-JS alternative with a familiar API[3]

API style

Inspired by Emotion's styled function[1]

License

MIT[2]

Maintained by

An open source project on GitHub[4]

65websites

use it — 2.6% of the 2,539 websites we scanned in the last 12 months

#15of 108

tools in its category seen in our scans (we recognize 253)

63public pages

on UptimeCard — open any of them to see how that site is doing

In short: a very small CSS-in-JS library with a familiar styled API; the one thing to watch is that you must call setup once before using it.[1][5]

8% of all websites we track run Goober

What is Goober used for?

In short, from the websites we scan

Styling components in JavaScript
Write CSS next to the component: styled returns a component for the tag you pass.[1]
Keeping the styling library small
Built as a smaller alternative to the established styled-components and Emotion libraries.[3]
Global styles and animations
Defines global styles as a component and shares keyframe animations across components.[10][11]
Server-side rendering
extractCss returns the rendered style tag so a server can send the styles with the page.[9]
Theming styles
A setup call can connect a theme so component styles read values from it.[5]
What it does
Goober is one of the javascript libraries tools websites use. In our scans it is #15 of the 108 we see.
On real websites
Among 36 public websites we scan that use it: styling components with CSS-in-JS (32 sites), keeping bundle sizes small (12 sites), building custom interactive widgets (11 sites), speeding up marketing pages (4 sites). Counted automatically from a short description of each site (one site can do several jobs), so read it as an estimate.
Used together with
It is often installed next to Google Tag Manager, HubSpot, Google Analytics.

Should you use Goober?

The 10-second version, from the vendor’s own pages and what we see in our scans

Goober fits if…

  • You want the styled pattern with as little JavaScript added to your bundle as possible[3][1]
  • You already know the styled function from Emotion or styled-components[1]

Look elsewhere if…

  • You want the larger Emotion toolbox, with source maps, labels and testing utilities[6]
setup must run once, in your entry file, before styled is used, and it needs your framework's element function[5][1]

Goober next to styled-components and Emotion

Three CSS-in-JS libraries. Statements come from each project's own page; website counts and speed are ours.

Gooberstyled-componentsEmotion
What each one says it is
What it isSmall CSS-in-JSan alternative with a familiar API[3]Styling for Reactfast and expressive[7]CSS with JavaScripta library for writing css styles[6]
LicenseMITfree and open source[2]MITfree and open source[7]MITfree and open source[8]
What we see in our scans
Websites running it652.6% of 2,539 scanned sites833.3% of 2,539 scanned sites973.8% of 2,539 scanned sites
Typical page load time4.0 s62 public sites2.5 s✓16 public sites3.2 s13 public sites
Typical page weight4.1 MBtypical home page2.7 MB✓typical home page5.6 MBtypical home page

Scan rows count public pages only; a tool needs at least 5 measured sites to appear.

  • styled-components: Styling for React components, written as CSS[7]
  • Emotion: A library for writing CSS styles with JavaScript[6]

Choose Goober if…

  • you want the styled pattern in a much smaller package[3]

Choose styled-components if…

  • you build React interfaces and want styling written as CSS for components[7]

Choose Emotion if…

  • you want source maps, labels and testing utilities for your styles[6]

Goober versions

The newest release, the series that still gets fixes, and what changed

Latest release

2.1.19[2][12]

Released 13 May 2026

Maintained series

2

What Goober sites add on top

How many of the 65 Goober sites we scanned also run each tool, grouped by what the tool does

Marketing

HubSpot
92%60 sites

Tag manager

Google Tag Manager
92%60 sites

Analytics

Google Analytics
83%54 sites
HubSpot Analytics
63%41 sites
Linkedin Insight Tag
55%36 sites

Live chat

HubSpot Chat
28%18 sites

Page builder

Webflow
22%14 sites

Cookie consent

HubSpot Cookie Policy Banner
19%12 sites

The full bar means every Goober site. A site can run several tools for one job, so the shares of tools in one group can add up to more than 100%.

How Goober sites protect themselves

Share of the 65 sites we scanned that run each protection

HSTS91% · 59 sites

HTTP Strict Transport Security (HSTS) informs browsers that the site should only be accessed using HTTPS

Cloudflare Bot Management32% · 21 sites

Cloudflare bot management solution identifies and mitigates automated traffic to protect websites from bad bots

Protections add up, they do not replace each other: a site can run all of them.

What sites use Goober for

An estimate from UptimeCard's technology map of 36 public sites

Runs the whole site32 sites

ansarada.com · b2c2.com · bureau.id

Runs the marketing site4 sites

bettyblocks.com · dracoon.com · riege.com

Rough guide, not a measurement: each description is written automatically from the site’s technology stack and the site has not confirmed it. A site is counted once, in the first group its description fits (shop, help and docs, blog, marketing site; otherwise the whole site). Descriptions that only guess (“likely”, “may”) are left out.

The speed trap: what fast Goober sites do differently

62 public Goober sites we measured, split by how fast their page loads

Fastest quarter

1.9 stypical page load time

2.3 MB page · 109 requests

Slowest quarter

7.7 stypical page load time

5.2 MB page · 174 requests

What differs between the two groups

Extras on the site
HubSpot CMS Hub60%13%
jQuery47%80%
Webflow13%40%
Piwik PRO Core53%33%
Google Analytics93%73%
Microsoft Advertising47%33%
Read this as a pattern, not a cause. The sites in the slower group more often add the extras above. Goober itself is not what separates the two groups.

At a glance

UptimeCard's own scans and tests of 2,539 websites · refreshed weekly

How Goober sites scoreout of 100 · hover or tap a score for details

45PerformancePooraverage site: 5192AccessibilityGoodaverage site: 9180Best practicesGoodaverage site: 9692SEOGoodaverage site: 92

Page load time

Loads about 14% slower than the average site

Goober sites
4.0 s
All sites
3.5 s

Most Goober sites load in 2.8–5.4 s. Home page weight: 4.1 MB vs 3.4 MB for all sites. 62 public sites measured.

Where are they hosted?

Mostly Cloudflare and Amazon Web Services

  • Cloudflare44%
  • Amazon Web Services21%
  • Fastly3%
  • Framer B.V3%
  • Other29%
United States 56%Canada 19%Netherlands 10%

Who uses it?

Technology and Software is the biggest group

Technology and Software59%
Business Services14%
Software as a Service (SaaS)1.4× avg8%
E-commerce5%

Share of 63 classified public sites. “× average” compares with all 961 public sites.

How Goober sites are built

Closest partners. The number says how many times more often the tool runs on Goober sites than on an average website. Hover a partner for its share of sites.

HubSpot Cookie Policy Banner23×HubSpot CMS Hub15×HubSpot Chat12×HubSpot Analytics10×HubSpot9×Webflow6×Piwik PRO Core6×Hotjar6×DoubleClick Floodlight5×

Stacks we see most. Tools that tend to run together with Goober on the same websites. The percentage is the share of all 65 Goober sites that run the whole stack.

8 stacks · swipe, drag or use the arrows
#1

Goober + HubSpot CMS Hub + HubSpot Cookie Policy Banner

13.8%9 of 65 sites
#2

Goober + jsDelivr + cdnjs

9.2%6 of 65 sites
#3

Goober + HubSpot CMS Hub + cdnjs

9.2%6 of 65 sites
#4

Goober + jsDelivr + Webflow + Google Hosted Libraries

6.2%4 of 65 sites
#5

Goober + jsDelivr + HubSpot CMS Hub

7.7%5 of 65 sites
#6

Goober + HubSpot CMS Hub + Marko

6.2%4 of 65 sites
#7

Goober + jsDelivr + CookieYes

6.2%4 of 65 sites
#8

Goober + Tailwind CSS + Next.js App Router

6.2%4 of 65 sites

Similar tools in its category

JavaScript libraries: 253 tools known, 108 seen in our scans

How websites combine Goober with other tools

Relationships found on the websites that use it, from the same map status pages show.

Complements another tool 26Integrates with another 18Needs another tool 9Overlaps with another 6Built on a platform 2

Websites using Goober

65 websites use Goober: 2.6% of the 2,539 websites we scanned in the last 12 months. A selection is shown below.

Scores are out of 100: P Performance · A Accessibility · B Best practices · S SEO. Green 80+, yellow 65–79, orange 50–64, red below 50. The dot shows whether our last scan found the site failing (red) or not (green); Red, amber or blue: an active incident on the site's status page (outage, degraded, maintenance) or a failing scan; amber also means a certificate ending within 30 days. Hover the dot for details.

Who is behind Goober

From its own pages and public records, with sources

Goober

since 2019[4]

Its story

  1. 2019

    The goober repository was created on GitHub. Its author wanted the styled pattern without the bundle cost of the larger libraries.[4][3]

  2. 2021

    Version 2.1.0 followed a run of small releases that cut bytes from the library, in line with its goal of staying tiny.[12]

  3. 2025

    Version 2.1.17 added Content Security Policy support, and 2.1.18 fixed it to apply the nonce attribute before the style element is added to the page.[12]

  4. 2026

    Version 2.1.19 moved the project's tooling from wmr to Vite and shaved more bytes from the library.[12]

Questions about Goober

What is Goober?
Goober is a CSS-in-JS library that lets you write component styles in JavaScript with a styled function, built to stay very small. It is free, open source software under the MIT license.
What is Goober used for?
Write CSS next to the component: styled returns a component for the tag you pass. Built as a smaller alternative to the established styled-components and Emotion libraries. Defines global styles as a component and shares keyframe animations across components. extractCss returns the rendered style tag so a server can send the styles with the page. A setup call can connect a theme so component styles read values from it. Goober is one of the javascript libraries tools websites use. In our scans it is #15 of the 108 we see. Among 36 public websites we scan that use it: styling components with CSS-in-JS (32 sites), keeping bundle sizes small (12 sites), building custom interactive widgets (11 sites), speeding up marketing pages (4 sites). Counted automatically from a short description of each site (one site can do several jobs), so read it as an estimate. It is often installed next to Google Tag Manager, HubSpot, Google Analytics.
How do I set up Goober?
Call setup once, in your project's entry file, with your framework's element function: React.createElement for React, or h for Preact.[5]
Does Goober work with server-side rendering?
Yes. extractCss returns the style tag rendered in a target, so the server can include it with the page.[9]
Can I add global styles and animations?
Yes. createGlobalStyles defines global styles as a component, and keyframes defines animations you can reuse across components.[10][11]
Which integrations does Goober list?
Babel plugins, Gatsby, a Preact CLI plugin and a CSS prop.[1]
Why was Goober made?
Its author wanted the styled pattern from larger libraries in a smaller package, so built a smaller alternative to those established APIs.[3]
How many websites use Goober?
We found Goober on 65 of the 2,539 websites we scanned in the last 12 months (2.6%). 63 of them have a public status page.
What are the alternatives to Goober?
Other javascript libraries tools we recognize include jQuery, core-js, Swiper, jQuery Migrate.

Is your website built with Goober?

Create a free status page that shows your visitors your site is up. It also gives your site its own public page where new people can discover it.

Example status page card