npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@protreebarktermiteandpestcontrol/pest-control-2026

v0.1.0

Published

Pest control and termite treatment cost calculator for Southern California homeowners and property managers. Built by Treebark Termite and Pest Control.

Downloads

130

Readme

pest-control-2026

Free Pest Control & Termite Treatment Cost Calculator — Southern California

PyPI version npm version Crates.io Gem Version Hex.pm Maven Central Docker Hub Documentation License: MIT

A free, open-source pest control and termite treatment cost calculator for homeowners, property managers, and facility managers in Southern California. Built and maintained by Treebark Termite and Pest Control.


Table of Contents


Why This Exists

Pest control pricing in Southern California is opaque. Homeowners request quotes and get wildly different numbers with no way to compare. This calculator provides a transparent baseline using the same variables licensed pest control operators use: property size, pest type, treatment method, infestation severity, access difficulty, and regional labor rates.

Treebark Termite and Pest Control built this tool because transparent pricing benefits everyone. When homeowners understand the math behind a pest control quote, the conversation moves faster and trust is established before the first inspection.

What the Calculator Does

Enter your property details — type, square footage, pest problem, treatment preference, severity level, and location — and the calculator returns:

  • Per-treatment cost estimate
  • Annual cost projection (for recurring service plans)
  • Treatment method comparison (e.g., Treebark System vs. fumigation)
  • Cost per square foot breakdown
  • Labor / materials / margin transparency
  • Regional pricing adjustments for Orange County, Los Angeles County, and Riverside County
  • ROI of preventive vs. reactive treatment

Who It's For

  • Homeowners getting quotes for termite treatment, ant control, rodent control, or general pest service
  • Property managers budgeting annual pest control across multiple units
  • Real estate professionals estimating Section 1 termite clearance costs
  • Researchers analyzing pest control cost data in metropolitan Southern California

Quick Start

Run with Docker

docker pull treebarkpestcontrol/pest-control-2026
docker run -p 8000:8000 -p 8001:8001 treebarkpestcontrol/pest-control-2026

Open http://localhost:8000 in your browser.

Run Locally (PHP + Python)

# Start the Python calculation engine
cd engines/python && python engine.py --port 8001 &

# Start the PHP frontend
cd public && php -S localhost:8000

Install via Package Managers

# npm
npm install @treebark/pest-control-2026

# PyPI
pip install pest-control-2026

# Cargo
cargo add pest-control-engine

# RubyGems
gem install pest_control_2026

# Hex.pm
mix deps.get pest_control

# Maven Central
<!-- pom.xml -->
<dependency>
  <groupId>io.github.treebarkpestcontrol</groupId>
  <artifactId>pest-control-engine</artifactId>
  <version>0.1.0</version>
</dependency>

# Packagist
composer require treebark/pest-control-2026

How the Calculator Works

The calculator takes 8 input variables and applies industry-standard multipliers:

| Input | Options | | ------------------------ | ------------------------------------------------------------------------------------------------------------------------ | | Property Type | Single-family, multi-family, condo, commercial office, restaurant, warehouse | | Property Size (sqft) | 500 – 50,000 | | Pest Type | Subterranean termite, drywood termite, dampwood termite, ants, cockroaches, spiders, rodents, fleas, general, multi-pest | | Treatment Method | Liquid barrier (Treebark System), bait stations, fumigation, heat treatment, spot treatment, IPM, organic | | Infestation Severity | Preventive, light, moderate, severe | | Service Frequency | One-time, annual, quarterly, bi-monthly, monthly | | Access Difficulty | Standard, crawl space, attic, multi-story, slab drill | | Region | Orange County, Los Angeles County, Riverside County |

Calculation Formula

base_cost = pest_base_rate × property_sqft (minimum enforced by property type)
adjusted  = base_cost × treatment_mult × severity_mult × access_mult × regional_mult × seasonal_mult
labor     = adjusted × 0.65
materials = adjusted × 0.35
subtotal  = labor + materials
total     = subtotal × (1 + profit_margin) + addon_costs
annual    = total × frequency_discount × treatments_per_year

Treatment Cost Ranges (Typical Southern California Home, 2,000 sqft)

| Treatment Method | Cost Range | Displacement? | Duration | | ------------------------------------ | ---------------- | -------------- | ----------- | | Fumigation / Tenting | $1,200 – $3,500 | Yes (2–3 days) | 48–72 hours | | Liquid Barrier (Treebark System) | $800 – $2,000 | No | Same-day | | Heat Treatment | $800 – $2,500 | No | 6–8 hours | | Bait Stations | $300 – $800/year | No | Ongoing | | Spot Treatment | $200 – $600 | No | 1–2 hours | | IPM (Integrated Pest Management) | $350 – $1,200 | No | Ongoing |


Pest Control in Southern California — What Homeowners Should Know

Southern California's Mediterranean climate creates year-round pest pressure unlike any other region in the United States. Warm, dry summers drive pests indoors seeking water. Mild winters mean there is no hard freeze to reset insect populations. Coastal humidity fuels termite colonies, and urban density allows rodent populations to thrive within connected sewer, utility, and landscaping networks.

If you own property anywhere from Riverside to the coast — Orange County, Los Angeles County, or the Inland Empire — pest management is not a matter of if but when.

Common Pests by Region

Orange County

Orange County's combination of coastal humidity and warm inland temperatures makes it ground zero for drywood termites. The cities of Orange, Newport Beach, and Dana Point see consistently high termite activity. The most common pests include:

  • Drywood termites — The number one structural pest in coastal Orange County. They infest roof eaves, window frames, door frames, and furniture. Unlike subterranean termites, drywood termites do not need ground contact. They swarm in late September through November and can establish colonies entirely within the wood they consume.
  • Argentine ants — The dominant ant species across all of Orange County. Colonies form supercolonies that span entire neighborhoods. They enter homes through the smallest gaps seeking water, especially during Santa Ana wind events in autumn.
  • Black widow spiders — Common in garages, storage areas, meter boxes, and block walls. Orange County's dry, warm climate is ideal for black widows. Bites are medically significant and require prompt attention.
  • German cockroaches — Indoor species found in kitchens and bathrooms of apartments, restaurants, and older commercial buildings. Extremely fast reproducers — a single egg case produces 30–40 nymphs.
  • Roof rats — Increasing in density across Orange County. They travel along utility lines, fence tops, and tree limbs to access attics and upper floors. Newport Beach and coastal cities see heavy roof rat activity due to mature landscaping and proximity to urban green spaces.

Los Angeles County

Los Angeles County's sheer geographic diversity — from beach communities to dense urban cores to foothill neighborhoods — produces a wide range of pest pressures:

  • Subterranean termites — The most destructive termite species in Los Angeles County. They build mud tubes from soil to wood and can cause catastrophic structural damage before detection. Older neighborhoods in Torrance, Pasadena, and downtown Los Angeles are heavily affected.
  • Western drywood termites — Second major termite species in LA County. Higher activity in older wood-frame construction.
  • Bed bugs — A persistent problem in multi-unit housing across Los Angeles. Dense apartment complexes, hotels, and even public transit create transmission vectors.
  • Oriental cockroaches — Thrive in the sewer systems and storm drains of Los Angeles. They emerge into ground-floor units and basements, especially in older buildings with compromised plumbing.
  • Norway rats — Ground-dwelling rats common in alleys, crawl spaces, and commercial districts. Los Angeles' extensive sewer network supports massive Norway rat populations.
  • Coyote-driven rodent displacement — As coyote populations expand into suburban LA neighborhoods, rodents that previously lived outdoors are permanently pushed into residential structures, increasing indoor rodent infestations.

Riverside County

The Inland Empire adds desert-adapted pests to the standard Southern California lineup:

  • Subterranean termites — Still the primary structural pest in Riverside, especially in irrigated residential areas where soil moisture levels support colonies.
  • Bark scorpions — Present in foothill and desert-edge communities. They enter homes through gaps under doors and around plumbing penetrations. Medically significant stings.
  • Harvester ants — Large outdoor colonies around foundations, driveways, and yards. Their mounds can undermine concrete slabs and walkways.
  • Ground squirrels — Burrow under foundations, retaining walls, and hillside properties. Their tunnels compromise structural integrity and provide entry points for other pests.
  • Rattlesnake-adjacent rodent problems — Areas with active rattlesnake populations also have dense rodent populations (their primary food source). Rodent control in these areas must account for the snake ecology.

Termite Treatment Methods Compared

Choosing the right termite treatment depends on the species, extent of infestation, property type, and tolerance for disruption. Here's a detailed comparison:

Fumigation / Tenting

  • Best for: Widespread drywood termite infestations, whole-structure treatment
  • Cost: $1,200 – $3,500 for an average single-family home (2,000 sqft)
  • Process: The entire structure is sealed under a tent and filled with sulfuryl fluoride gas (Vikane). All occupants, pets, and plants must vacate for 2–3 days.
  • Pros: Penetrates every void in the structure. 100% kill rate for active infestations within the treated space.
  • Cons: Expensive. Requires vacating. No residual protection — termites can reinfest immediately after treatment. Requires a licensed Branch 1 fumigator. Damages some electronics and medications if not properly removed.

Liquid Barrier Treatment (Treebark System / Chlorantraniliprole)

  • Best for: Subterranean and drywood termite prevention and treatment without tenting
  • Cost: $800 – $2,000 for a typical single-family home
  • Process: Chlorantraniliprole-based product is applied to soil trenches or injected into walls at termite entry points. No tenting, no displacement, no gas.
  • Pros: No need to vacate the home. Family-safe, pet-safe, plant-safe. Up to 10 years of residual protection. Applied in a single day.
  • Cons: May not reach isolated drywood termite colonies deep within roof framing (though Treebark's injection methods address most access points).

Bait Station Systems

  • Best for: Ongoing monitoring and subterranean termite colony elimination
  • Cost: $300 – $800 per year for monitoring and bait replacement
  • Process: Plastic stations containing cellulose bait laced with a slow-acting insect growth regulator are installed in the soil around the structure's perimeter.
  • Pros: Low disruption. Can eliminate entire subterranean colonies over time. Non-invasive.
  • Cons: Slow — takes weeks to months for full effect. Requires ongoing maintenance and inspection. Not effective against drywood termites.

Heat Treatment

  • Best for: Localized drywood termite infestations in accessible areas
  • Cost: $800 – $2,500 per treatment zone
  • Process: Portable heaters raise the wood temperature above 120°F (49°C), killing termites within the heated zone.
  • Pros: No chemicals. Can be done room by room. Same-day treatment.
  • Cons: Requires monitoring to avoid fire or heat damage. Cannot penetrate thick structural beams reliably. Risk of heat damage to electronics, wax-sealed items, and vinyl.

Spot / Localized Treatment

  • Best for: Small, isolated drywood termite infestations found during inspections
  • Cost: $200 – $600 per area
  • Process: Direct injection of termiticide into identified galleries via drill holes.
  • Pros: Cheapest option. Minimal disruption.
  • Cons: Only treats what is visible or detected. Misses hidden colonies. Not whole-structure protection.

Seasonal Pest Activity in Southern California

Understanding when pests are most active helps Southern California homeowners schedule preventive treatment:

| Season | Peak Pests | What to Watch For | | -------------------------------- | -------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | | Spring (March – May) | Subterranean termite swarmers, ant colonization, spiders | Swarm season for subterranean termites. Winged reproductives emerge after rain. Argentine ants ramp up. Spiders become active outdoors. | | Summer (June – August) | Cockroaches, fleas/ticks, rodents | Heat drives cockroaches indoors. Flea and tick peak activity on pets. Rodents seek water in irrigated areas. | | Fall (September – November) | Drywood termite swarmers, rodent intrusion | Drywood termite swarm season (September/October). Rodents move indoors as temperatures cool. | | Winter (December – February) | Indoor rodents, cockroaches | Reduced outdoor activity but continued indoor pressure. Best time for preventive treatment — lowest pricing, lowest pest load. |

Pro tip: The best time to schedule preventive pest treatment is winter (December through February). Prices are 5–15% lower, scheduling is easier, and you get a head start before spring swarm season.

Licensing and Compliance in California

All pest control operators in California must be licensed by the Structural Pest Control Board (SPCB):

  • Branch 1 — Fumigation: Required for any company performing structural fumigation. Only Branch 1 operators can apply fumigants like sulfuryl fluoride.
  • Branch 2 — General Pest: Covers general pest control (ants, cockroaches, spiders, rodents, fleas, bed bugs). Most routine pest control falls under Branch 2.
  • Branch 3 — Termite: Specifically for wood-destroying organism (WDO) treatment, WDI/WDO inspections (Section 1 and Section 2 reports), and preventive termite treatment.

Always verify:

  1. Active license status at the SPCB License Lookup
  2. General liability insurance (minimum $1M)
  3. Workers' compensation coverage
  4. Bond status (if applicable)
  5. IPM (Integrated Pest Management) training and compliance

Treebark Termite and Pest Control holds License #9342, covering Branch 2 and Branch 3 services.

Cost Factors by Location

Pest control costs vary across Southern California based on labor rates, housing stock, access conditions, and pest pressure:

| Location | Key Cost Drivers | | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Newport Beach / Coastal Orange County | Salt-air corrosion increases termite vulnerability. Premium property values. Older beachfront homes with complex access. Regional multiplier: 1.10× | | Orange, CA | Central Orange County hub. Mix of mid-century and new construction. Moderate termite pressure. Regional multiplier: 1.10× | | Dana Point / South Orange County | Coastal premium, hillside properties with challenging access. Marine-layer moisture supports drywood termite activity. Regional multiplier: 1.10× | | Los Angeles Metro | Competitive pricing due to volume, but traffic and parking add labor time. Older housing stock. Subterranean termite heartland. Regional multiplier: 1.05× | | Torrance / South Bay | Mix of 1950s–1970s housing with high termite susceptibility. Moderate pricing. Crawl-space-heavy construction. Regional multiplier: 1.05× | | Riverside / Inland Empire | Lower base cost, but desert pest overlap (scorpions, ground squirrels). Newer construction but irrigated soils support subterranean termites. Regional multiplier: 0.90× |


Dataset

The project includes a synthetic pest control cost dataset covering Southern California:

File: datasets/pest_control_costs_southern_california.csv

  • 5,200 rows of calculated pest control costs
  • Covers all pest types, treatment methods, severity levels, and regions
  • Geographic distribution: 50% Orange County, 35% Los Angeles County, 15% Riverside County
  • Pest distribution: ~40% termite, ~25% general pest, ~15% rodent, ~10% flea, ~10% multi-pest

Columns

| Column | Description | | ----------------------- | ----------------------------------------------- | | pest_type | Type of pest (10 categories) | | treatment_method | Treatment approach used | | property_type | Residential or commercial property type | | property_sqft | Square footage | | region | Orange County, Los Angeles County, or Riverside | | city | Specific city in the region | | per_treatment_cost | Calculated cost per treatment visit | | annual_total | Projected annual cost | | fumigation_comparison | Comparable fumigation cost (termites only) |

Explore the Data


About Treebark Termite and Pest Control

Treebark Termite and Pest Control has been protecting Southern California homes and businesses since 2016.

The Treebark System

Our proprietary treatment uses Chlorantraniliprole — a compound derived from natural compounds found in tree bark (hence our name). It's the same class of chemistry used to protect crops worldwide, adapted for structural pest control:

  • Low-toxicity — safe for families, pets, and plants
  • No tenting — no need to vacate your home
  • Long-lasting — up to 10 years of residual protection
  • Same-day treatment — most homes treated in a single visit
  • Environmentally responsible — minimal impact on non-target organisms

By the Numbers

| Fact | Detail | | -------------------- | --------------------------------------------------- | | Founded | 2016 | | Headquarters | Newport Beach, CA | | License # | 9342 | | Annual Plans | Starting at $360/year | | Pests Covered | 24+ common Southern California pests | | Service Area | Orange County, Los Angeles County, Riverside County | | Free Inspections | Included with every service call |

Contact


Services

| Service | Description | Link | | ----------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ | | Termite Treatment | Treebark System — no tenting, up to 10 years protection | treebarktermiteandpestcontrol.com/pest-control/termite-treatment/ | | Ant Control | Argentine ant, carpenter ant, fire ant treatment | treebarktermiteandpestcontrol.com/pest-control/ant-control/ | | Cockroach Control | German, American, and Oriental cockroach elimination | treebarktermiteandpestcontrol.com/pest-control/cockroach-control/ | | Spider Control | Black widow, brown recluse, and general spider treatment | treebarktermiteandpestcontrol.com/pest-control/spider-control/ | | Rodent Control | Rat and mouse exclusion, trapping, and sanitation | treebarktermiteandpestcontrol.com/pest-control/rodent-control/ | | Flea & Tick Control | Interior and exterior flea/tick treatment | treebarktermiteandpestcontrol.com/pest-control/flea-tick-control/ | | WDI/WDO Inspections | Wood Destroying Insect/Organism inspections (Section 1 & 2 reports) | treebarktermiteandpestcontrol.com/wdi-wdo-inspections/ | | Commercial Services | Restaurants, offices, warehouses, multi-unit | treebarktermiteandpestcontrol.com/pest-control/commercial-services/ |


Project Structure

pest-control-2026/
├── engines/
│   ├── python/          # Primary calculation engine (Python 3.9+)
│   ├── rust/            # High-performance engine (Rust)
│   ├── java/            # JVM engine (Java 17+)
│   ├── ruby/            # Gem engine (Ruby 3.0+)
│   ├── elixir/          # BEAM engine (Elixir 1.14+)
│   └── php/             # Packagist engine (PHP 8.1+)
├── public/              # PHP frontend + JS calculator
├── datasets/            # Synthetic cost dataset (5,200 rows)
├── notebooks/           # Jupyter cost analysis notebooks
├── docs/                # Sphinx documentation
├── kaggle/              # Kaggle competition kernel
├── observable/          # Observable HQ visualization
├── .github/workflows/   # CI/CD (GitHub Actions)
├── Dockerfile           # Docker image
├── README.md            # This file
└── README-homeowners.md # Simplified homeowner guide

Installation

Python

pip install pest-control-2026
from models import PEST_BASE_RATES, REGIONAL_MULTIPLIERS
from engine import calculate_cost

result = calculate_cost(
    property_type="single_family",
    property_sqft=2000,
    pest_type="drywood_termite",
    treatment_method="liquid_barrier",
    infestation_severity="moderate",
    service_frequency="one_time",
    access_difficulty="standard",
    region="orange_county",
)

print(f"Per treatment: ${result['per_treatment_cost']}")
print(f"Fumigation comparison: ${result['fumigation_comparison']}")

Rust

cargo add pest-control-engine

Ruby

gem install pest_control_2026
require 'pest_control_2026'

result = PestControl2026.calculate(
  property_type: "single_family",
  property_sqft: 2000,
  pest_type: "drywood_termite",
  treatment_method: "liquid_barrier",
  infestation_severity: "moderate",
  service_frequency: "one_time",
  access_difficulty: "standard",
  region: "orange_county"
)

puts "Per treatment: $#{result[:per_treatment_cost]}"

Docker

docker pull treebarkpestcontrol/pest-control-2026
docker run -p 8000:8000 treebarkpestcontrol/pest-control-2026

Contributing

See CONTRIBUTING.md for guidelines.

We welcome contributions in all supported languages (Python, Rust, Java, Ruby, Elixir, PHP). Bug reports, feature requests, and pull requests are all appreciated.


License

MIT — free to use, modify, and distribute.


Citation

If you use this calculator or dataset in research, please cite:

@software{treebark_pest_control_2026,
  author       = {{Treebark Termite and Pest Control}},
  title        = {Pest Control Cost Calculator — Southern California 2026},
  year         = {2025},
  publisher    = {GitHub},
  url          = {https://github.com/treebarktermiteandpestcontrol/pest-control-2026},
  version      = {0.1.0}
}

Links

| Platform | URL | | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | GitHub | github.com/treebarktermiteandpestcontrol/pest-control-2026 | | npm | npmjs.com/package/@treebark/pest-control-2026 | | PyPI | pypi.org/project/pest-control-2026 | | Crates.io | crates.io/crates/pest-control-engine | | RubyGems | rubygems.org/gems/pest_control_2026 | | Hex.pm | hex.pm/packages/pest_control | | Maven Central | central.sonatype.com | | Packagist | packagist.org/packages/treebark/pest-control-2026 | | Docker Hub | hub.docker.com/r/treebarkpestcontrol/pest-control-2026 | | ReadTheDocs | pest-control-2026.readthedocs.io | | Kaggle | kaggle.com/code/treebarkpestcontrol | | HuggingFace | huggingface.co/datasets/treebarkpestcontrol | | GitLab | gitlab.com/treebarkpestcontrol/pest-control-2026 | | Codeberg | codeberg.org/treebarkpestcontrol/pest-control-2026 | | SourceHut | git.sr.ht/~treebarkpestcontrol/pest-control-2026 | | Zenodo | zenodo.org |


Built with transparency by Treebark Termite and Pest Control — Newport Beach, CA — (714) 975-5267