David Norton
All projects

2026

Garden

Helps gardeners choose the right plants for their garden and keep on top of jobs.

Project Overview

As a gardening enthusiast, I wanted to create a tool that would help me plan and manage my garden more effectively. Existing tools focus on the general design aspects of of garden, but not on the plants themselves. What plants will thrive in my garden? What plants do I need to have something flowering all year round? What jobs need to be done when?

This app allows users to design their garden, get recommendations on plants based on their based on environmental conditions, receive tailored care instructions and even visualise their garden space in 3D and see the month to month changes.

Key Features

  • Users can find their plot on the map and it will automatically fetch the property boundaries and environmental data including soil type, sunlight exposure and slope for that location.
  • Shade objects like houses, sheds, fences and trees can be drawn on the map to simulate the shadows they will cast on the garden at different times of the day and year. This can be visualised via both the 2D plan and the 3D view of the garden.
  • Plant beds can be added where plants can be added individually or in bulk. Beds can be moved, resized and rotated to fit the garden space. The app will automatically calculate the optimal planting density based on the size of the bed and the size of the plants.
  • Beds can be named and set to be a raised bed, reflected in the 3D view. Their colour, material, light level and soil type can all be overridden and the app will take this into account when recommending plants.
  • Based on the environmental conditions and bed settings, the app will recommend plants that will thrive in that location. If a plant is selected that will not thrive, the app will explain why.
  • Plants are catergorised by type; flowers, vegetables and fruits. They can be filtered by kind (e.g. perennials, bulbs, seeds), sun level, hardiness, flower colour and flowering period. Each plant has a profile page with information on its care requirements, flowering period and other useful information.
  • Selected plants will render on the both 2D and 3D views of the garden, showing their size, colour and position in the bed. The month to month changes are also visualised, showing the correct colour when flowering in the selected months, or just a brown marker when dormant for bulbs and deciduous plants.
  • A list of jobs is generated based on the selected plants and their care requirements. This includes sowing, planting, deadheading and harvesting tasks. The list is broken down by month so you can quickly see what needs to be done and when.
  • A full list of selected plants, broken down by bed and by plant is generated to give a quick overview of what has been selected and can be used for creating a shopping list. A timeline is also generated showing the flowering period and flower colour of each plant, and when fruit and vegetables will be ready to harvest. This is really useful for planning a garden to have something flowering all year round and to plan for a continuous supply of fruit and vegetables.

Technical Architecture & Stack

The application is built to be a highly performant single page application with a simple architecture optimized for type safety, efficient client-side rendering, and intensive calculations.

  • Framework & Core: Built using React 19 and TypeScript, managed with pnpm and vite plus.
  • Routing & Server Architecture: Powered by TanStack Start, TanStack Router and TanStack Query to handle asynchronous state synchronisation and server caching.
  • Graphics & Spatial Simulation: Built around Three.js using @react-three/fiber and @react-three/drei to manage the 3D graphics, object transformations, dynamic lighting, and matrix calculations.
  • Geospatial Mapping: Employs Leaflet for interactive 2D parcel mapping, coordinates parsing, and geographic vector drawing.
  • Styling & Forms: Designed using Tailwind CSS, with form validation enforced via TanStack Form and Zod.

Geospatial & API Integration

To construct an accurate baseline of a user's property, the backend orchestrates a multi-source GIS data pipeline that aggregates geospatial and environmental attributes asynchronously:

  • Geocoding & Address Resolution: Utilises OpenStreetMap Nominatim and the Photon Komoot API to handle reverse geocoding, resolving localized address search strings into exact latitude and longitude geometries.
  • Cadastral & Boundary Mapping: Interfaces with the HM Land Registry API to programmatically ingest property boundary arrays and local council administrative data.
  • Geological Subsurface Mapping: Streams Web Map Service (WMS) layers directly from the British Geological Survey (BGS) UK Soil Observatory (UKSO) server to fetch regional soil composition profiles, parent materials, and native pH baselines.
  • Topography & Elevation Modeling: Queries OpenTopoData (EUDEM 25m dataset) and the Open-Meteo Elevation API to compute precise slope angles and directional layout aspect.

Microclimate Simulation Engines

The application allows the user to set the month and time of day to simulate the sun's position and the resulting shadows cast by obstructions on the property. This can be used to determine the amount of sunlight a plant bed will receive in a given location, which is a key factor in determining which plants will thrive in that location.

  • Hourly Shadow Engine: The application implements a localized solar-positioning matrix by coupling spatial calculations with SunCalc. By interpreting latitude, longitude, and a user-selected timestamp, the engine calculates real-time azimuth and altitude vectors. This data updates the Three.js shadow maps dynamically, casting dimensionally accurate shadows from user-sketched obstructions—including houses, sheds, fences, hedges, and mature trees—across nearby planting zones.
  • Algorithmic Recommendation Engine: A specialized validation pipeline compares the calculated solar exposure indices and fetched soil profiles against the core botanical catalog. If a plant choice breaks environmental parameters, the engine yields an explicit breakdown explaining the precise environmental mismatch. Users are able to override parameters such as raised beds containing different soil types, immediately triggering a query invalidation and rendering update.

Horticultural Management

Plants can be added individually or in bulk to each plant bed. The application then aggregates all of the plant data and generates a month-by-month care schedule for the user, including sowing, planting, deadheading, and harvesting tasks.

  • Spatial Capacity Calculators: Automatically determines optimal planting density using bounding box coordinates calculated from the 2D canvas and structural plant maturity dimensions.
  • Phenological & Colour Matrix: Aggregates total property selections into a multi-series tracking grid. This maps month-by-month flower bloom durations, visual blossom colour palettes, and crop harvesting windows.
  • Lifecycle Visualizer: Modulates object attributes inside the 3D viewport based on temporal states. Plants shift colour, display seasonal blossoms, or transition into stark winter dormancy states according to the calendar selection slider.
  • Chronological Task Assembler: Synthesizes a structured, date-ordered workflow engine that generates localized plant care, sowing, and deadheading actions for the user's specific garden profile.