diff --git a/Makefile b/Makefile index c0203c3..9dac044 100644 --- a/Makefile +++ b/Makefile @@ -42,10 +42,15 @@ deploy_cloudflare_page: deploy: install build ensure_cloudflare_infra_exists deploy_cloudflare_page +seed: + node ./script/seed.js \ + --cloudflare-kv-binding-id "5df82e748f494385a2aeaf2912cbb359" \ + --seed-file "./data/seed.json" + clean: rm -rf .next/ .vercel/ build/ define add_cloudflare_secret chmod +x ./script/cloudflare/ensure-cloudflare-secret-exists.sh ./script/cloudflare/ensure-cloudflare-secret-exists.sh "$(1)" "$(2)" "$(3)" -endef \ No newline at end of file +endef diff --git a/README.md b/README.md index ed16e73..d30ae4e 100644 --- a/README.md +++ b/README.md @@ -26,4 +26,9 @@ make test To deploy the application, run the following command: ```bash make deploy +``` + +To seed the database, run the following command: +```bash +make seed ``` \ No newline at end of file diff --git a/data/seed.json b/data/seed.json new file mode 100644 index 0000000..355ae5f --- /dev/null +++ b/data/seed.json @@ -0,0 +1,526 @@ +{ + "last_updated_timestamp": "2024-01-09T06:49:32.375Z", + "length": 130, + "data": [ + { + "imageClass": "tench, Tinca tinca", + "description": "A tench, scientifically known as Tinca tinca, is a freshwater fish species that belongs to the family Cyprinidae. It is native to Europe and parts of Asia. Tench have a slender and elongated body covered in dark green or olive-colored scales. They have a pair of barbels near their mouth that helps them detect food in the muddy bottom of lakes and slow-flowing rivers. Tench prefer slow-moving or stagnant waters with lots of vegetation and mud. They can tolerate low oxygen levels and are known for their ability to survive in heavily fertilized and eutrophic waters. Tench are mostly known for their bottom-feeding habit, primarily feeding on worms, insects, snails, aquatic plants, and detritus.These fish are popular among anglers due to their challenging nature and strong fighting ability when hooked. Tench can grow up to around 3-4 pounds in weight and live for up to 15-20 years. They are also occasionally stocked in fishing ponds and lakes for recreational fishing." + }, + { + "imageClass": "goldfish, Carassius auratus", + "description": "A goldfish, Carassius auratus, is a freshwater fish species that is commonly kept as a pet. It belongs to the carp family, Cyprinidae, and is native to East Asia. Goldfish are known for their vibrant colors and long, flowing fins. They have been selectively bred for centuries to create a wide variety of color patterns and body shapes. Goldfish are typically small in size, with the average adult reaching about 6 to 8 inches (15 to 20 centimeters) in length, although some varieties can grow larger. They are peaceful and social animals that can be kept in aquariums or outdoor ponds. Goldfish are also popular as decorative fish in ornamental ponds and water gardens." + }, + { + "imageClass": "great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias", + "description": "A great white shark (Carcharodon carcharias) is a species of shark known for its large size and powerful jaws. It is one of the most recognized and feared predators in the ocean. Great white sharks are characterized by their grayish-white body coloration, a streamlined shape, and rows of sharp, serrated teeth. They inhabit coastal and offshore waters around the world, predominantly in temperate and cooler regions. Great white sharks are apex predators, meaning they are at the top of the ocean food chain. While they primarily feed on marine mammals such as seals and sea lions, they are opportunistic and may occasionally attack humans, leading to the terms 'man-eater' or 'man-eating shark.' However, such instances are rare, with the majority of encounters being non-fatal." + }, + { + "imageClass": "tiger shark, Galeocerdo cuvieri", + "description": "A tiger shark, scientifically known as Galeocerdo cuvieri, is a large and highly adaptable species of shark found in tropical and subtropical waters around the world. It is named for the characteristic dark, vertical stripes along its body, which resemble the pattern of a tiger. Tiger sharks are known for their voracious appetite and are often referred to as 'garbage cans of the sea' due to their reputation as opportunistic predators.Tiger sharks have a broad, stout body and can grow up to 16 feet in length, weighing over 1,400 pounds. They have a unique set of serrated, triangular teeth which help them to prey on a wide range of marine animals, including fish, sea turtles, seals, dolphins, and even other sharks. They are known to be curious and have been found with a variety of objects in their stomachs, earning them another nickname, 'wastebaskets of the sea.'These sharks have excellent senses, including a keen sense of smell and excellent vision. They are known for their ability to migrate long distances and inhabit various marine habitats, from shallow coastal waters to deep oceanic regions. Tiger sharks are also known for being both solitary and social animals, depending on the circumstances.While tiger sharks are apex predators, they also face various threats. Overfishing, habitat degradation, pollution, and accidental capture in fishing gear are some of the major challenges they confront. Conservation efforts are aimed at protecting their populations and the overall health of marine ecosystems." + }, + { + "imageClass": "hammerhead, hammerhead shark", + "description": "A hammerhead shark, often referred to as just 'hammerhead,' is a type of shark known for its distinctive head shape. The head of a hammerhead shark is flattened and broadened, forming a structure called a cephalofoil, which resembles a hammer or a 'T' shape. This unique head design provides the shark with several advantages, such as enhanced vision and improved maneuverability.The hammerhead, hammerhead shark you mentioned seems to be a repetition of the term 'hammerhead' in its name. There is no specific species called the 'hammerhead, hammerhead shark.' However, there are several different species of hammerhead sharks, such as the Great Hammerhead, Scalloped Hammerhead, and Smooth Hammerhead, among others. Each species varies in size, behavior, and distribution, but they share the characteristic hammer-shaped head." + }, + { + "imageClass": "electric ray, crampfish, numbfish, torpedo", + "description": "An electric ray, crampfish, numbfish, or torpedo is a type of fish that belongs to the family Torpedinidae. These rays are known for their ability to produce an electric discharge, which they use primarily for defense and stunning prey. They have specialized electric organs located on either side of their heads. When threatened or when hunting, electric rays can generate a strong electric shock that can immobilize or deter other animals.Electric rays have a flattened body and typically dwell on the seafloor in coastal waters. They are capable of delivering an electric shock ranging from a few volts to several hundred volts, depending on the species. This electric shock is not fatal to humans but can cause discomfort or muscle spasms.It's important to note that electric rays are distinct from the more well-known stingrays that use venomous spines for defense rather than electric shocks." + }, + { + "imageClass": "stingray", + "description": "A stingray is a type of marine fish that belongs to the same family as sharks. They have a flattened body with a long, whip-like tail that has a barbed stinger at the end. Stingrays use their stingers for self-defense when they feel threatened. These creatures are typically found in warm, shallow coastal waters around the world. They have a unique and fascinating appearance, often with a round or diamond-shaped body and distinctive patterns on their backs. Stingrays are known for their graceful swimming motion, gliding through the water by flapping their wing-like pectoral fins." + }, + { + "imageClass": "cock", + "description": "A 'cock' is a colloquial term used to refer to a rooster, which is a male chicken. The term can also be used informally to refer to the male organ of certain animals, particularly in reference to the male reproductive organ of a chicken. It's important to note that this term can be considered vulgar or offensive when applied to humans." + }, + { + "imageClass": "hen", + "description": "A hen is an adult female chicken. Chickens are domesticated birds that are typically raised for meat and eggs. Hens are known to lay eggs, making them an important source of food for humans. They are also social creatures and often live in flocks." + }, + { + "imageClass": "ostrich, Struthio camelus", + "description": "An ostrich, scientifically known as Struthio camelus, is a large flightless bird native to Africa. It is the largest living bird species, characterized by its long neck, long legs, and distinctive feathers. Ostriches are known for their ability to run at high speeds, making them the fastest birds on land. They have strong legs with two toes, where each foot has a powerful claw used for defense and attack. Ostriches have a unique feature in the avian world—they have the largest eyes of any land vertebrate, measuring around 2 inches (5 centimeters) in diameter. They primarily inhabit the savannas and desert regions of Africa and are well-adapted to survive in arid environments. Ostriches are also known for their reproductive behaviors, such as communal nesting, where multiple females lay eggs in a single nest. They have been domesticated in some parts of the world for their meat, feathers, and leather." + }, + { + "imageClass": "brambling, Fringilla montifringilla", + "description": "A brambling, scientifically known as Fringilla montifringilla, is a small passerine bird belonging to the finch family, Fringillidae. It is native to Eurasia and has a wide breeding range across northern Europe and Asia. Bramblings are migratory birds, typically spending the breeding season in northern Europe and Russia, then flying south to winter in parts of Europe and Asia.In terms of appearance, male bramblings have striking plumage during the breeding season featuring a black head, orange-buff chest, and white belly. They have a white rump and a distinctive white wing patch visible in flight. Outside of the breeding season, and in the case of females, bramblings have a more subdued appearance with buff-brown and streaked feathers.Bramblings are primarily ground-feeding birds, often found in flocks that forage for seeds and insects. They have a preference for birch and alder forests during breeding and coniferous or mixed forests during migration and wintering. Their diet mainly consists of seeds, including those from trees, grasses, and other plants.These birds are known for their spectacular long-distance migrations and are a common sight among birdwatchers in parts of Europe and Asia during the winter months. Their distinctive appearance and behaviors make them a fascinating species to observe." + }, + { + "imageClass": "goldfinch, Carduelis carduelis", + "description": "A goldfinch (Carduelis carduelis) is a small songbird that belongs to the finch family, Fringillidae. It is widely distributed across Europe, North Africa, and parts of Asia. The adult male goldfinch has a striking appearance, with a bright red face, black and white wings, and a golden yellow body. The female goldfinch has a similar pattern but is slightly duller in color. Goldfinches are known for their melodic song and acrobatic flight. They are primarily seed eaters and are particularly fond of thistle seeds. Goldfinches are also famous for their elaborate courtship displays. They are a common sight in gardens, parks, and woodland areas." + }, + { + "imageClass": "house finch, linnet, Carpodacus mexicanus", + "description": "A house finch, also known as a linnet (specifically Carpodacus mexicanus) is a small passerine bird that belongs to the finch family, Fringillidae. It is native to North America and widely distributed across the continent. House finches are known for their vibrant red or orange feathers on the males and duller brownish feathers on the females. They have a conical beak, ideal for cracking open seeds, which is their primary diet. House finches are adaptable and can be found in various habitats, including urban areas, gardens, and woodlands. They are social birds and often gather in flocks. Their melodic and warbling song is a popular sound in many neighborhoods. House finches primarily build cup-shaped nests in shrubs or trees, where the female lays and incubates eggs.It's worth mentioning that although house finches are commonly referred to as 'linnets,' true linnets belong to a different genus, Carduelis, and are typically found in Europe, Asia, and Africa." + }, + { + "imageClass": "junco, snowbird", + "description": "A 'junco, snowbird' refers to a specific bird species called the Dark-eyed Junco. It is also commonly known as the snowbird because it migrates south during the winter months, typically arriving in colder regions around the beginning of winter and returning to their breeding grounds in the spring. Juncos are small, sparrow-like birds with mostly gray or black plumage and a white belly. They are known for their winter presence, often seen hopping around on the ground in search of seeds and foraging for food during the colder months." + }, + { + "imageClass": "indigo bunting, indigo finch, indigo bird, Passerina cyanea", + "description": "An indigo bunting, indigo finch, indigo bird, or Passerina cyanea is a small songbird species native to North America. It belongs to the cardinal family, Cardinalidae. The male indigo bunting is known for its striking bright blue plumage, while the female is a more subdued brown or greenish color. These birds are known for their melodious and persistent songs, often heard during the breeding season. Indigo buntings primarily feed on seeds, berries, and insects. They are known for their migratory behavior, spending summers in the eastern and central parts of North America and winters in Central and South America." + }, + { + "imageClass": "robin, American robin, Turdus migratorius", + "description": "A robin, specifically the American robin (Turdus migratorius), is a bird species that is native to North America. It is known for its distinctive appearance and melodious song. The American robin is part of the thrush family and is one of the most well-known and common birds in the United States and Canada. The adult American robin has a reddish-orange breast, gray back, and a white lower belly. It is often seen hopping on lawns, foraging for worms and insects. Robins are migratory birds, with populations in North America typically migrating south during the winter and returning north in the spring." + }, + { + "imageClass": "bulbul", + "description": "A bulbul is a type of bird belonging to the family Pycnonotidae. They are small to medium-sized passerine birds found in Africa, Asia, and the Middle East. Bulbuls are known for their melodious songs and are often kept as pets or admired for their vocal abilities. They have a varied diet, feeding on fruit, nectar, insects, and even small vertebrates. Bulbuls are typically characterized by their vibrant plumage, crests, and distinctive calls." + }, + { + "imageClass": "jay", + "description": "A 'jay' is a colloquial term often used to refer to a naive or gullible person. It can also be used to describe someone who is foolish or lacks knowledge or experience in a particular area. The term comes from the bird species called the blue jay, which is known for its loud and sometimes aggressive behavior." + }, + { + "imageClass": "magpie", + "description": "A magpie is a type of bird that belongs to the crow family. It is known for its striking black and white plumage, with a long tail and a raucous call. Magpies are intelligent and highly adaptable birds, found in various parts of the world. They are known for their nest-building skills and their habit of collecting shiny objects, hence the saying, 'to be like a magpie,' referring to someone who has a liking for collecting or hoarding objects." + }, + { + "imageClass": "chickadee", + "description": "A chickadee is a small North American songbird known for its distinctive appearance and call. There are several species of chickadees, but the most common is the black-capped chickadee (Poecile atricapillus). It has a black cap and bib, with white cheeks and a grayish body. Chickadees are known for their friendly and curious nature, often approaching humans closely. They are highly vocal birds and have a distinct call that sounds like 'chick-a-dee-dee-dee,' which is how they got their name. Chickadees primarily feed on insects, seeds, and berries and are often seen at backyard bird feeders. They are year-round residents in many parts of North America and can withstand cold temperatures due to their ability to lower their body temperature at night to conserve energy." + }, + { + "imageClass": "water ouzel, dipper", + "description": "A water ouzel, or more commonly known as a dipper, is a small, stout songbird that belongs to the family Cinclidae. It is famous for its unique ability to dive and walk underwater in fast-flowing streams and rivers. Dippers are typically found in mountainous regions across Europe, Asia, and North America.These birds have several adaptations that help them thrive in aquatic environments. They have dense waterproof feathers, strong legs and wings for swimming and diving, and a specialized nasal valve that allows them to breathe under water. Dippers use their wings to 'fly' underwater, propelling themselves against strong currents while searching for food.Dippers primarily feed on aquatic invertebrates, such as insects, larvae, small fish, and crustaceans. They are capable of staying submerged for several seconds or even minutes, efficiently foraging for prey in their watery habitats.In terms of appearance, dippers usually have dark, slate-gray plumage to blend in with the rocks and fast-flowing water. They have short tails, round bodies, and distinctive bobbing movements as they walk underwater or on riverbanks.Overall, water ouzels or dippers are fascinating birds known for their fascinating adaptations and unique behavior in aquatic environments." + }, + { + "imageClass": "kite", + "description": "In the context of finance, a 'kite' refers to a fraudulent or illegal practice of artificially inflating the balance of funds in a bank account. It involves taking advantage of the time delay between depositing checks and the clearing process to create the illusion of a higher account balance. Typically, individuals engaging in kite activities write checks from one account to another, even though they may not have sufficient funds in their account. This process is repeated multiple times to maintain a false high balance and create the appearance of liquidity. Kite flying, on the other hand, refers to the recreational activity of flying a lightweight object (a kite) in the air using the wind." + }, + { + "imageClass": "bald eagle, American eagle, Haliaeetus leucocephalus", + "description": "A bald eagle, also known as the American eagle and scientifically referred to as Haliaeetus leucocephalus, is a bird of prey native to North America. It is most recognizable for its distinctive white-feathered head and tail contrasting with a dark brown body. The bald eagle is the national bird and symbol of the United States. It is famous for its impressive size, powerful flight, and keen eyesight. These eagles typically feed on fish but also consume small mammals and birds." + }, + { + "imageClass": "vulture", + "description": "A vulture is a large bird of prey that is typically known for feeding on carrion, or dead animals. They have a bald head and a sharp beak, which helps with scavenging. Vultures are often associated with circling in the sky and descending upon carcasses to feed. There are different species of vultures found around the world, and they play an important role in ecosystems by helping to clean up decaying matter." + }, + { + "imageClass": "great grey owl, great gray owl, Strix nebulosa", + "description": "The great grey owl, also known as the great gray owl with its scientific name Strix nebulosa, is a large owl species native to the Northern Hemisphere. It is primarily found in the boreal forests of North America and Eurasia, including regions like Alaska, Canada, Scandinavia, and Russia.The great grey owl is known for its distinctive appearance. It has a large head with a facial disk that helps funnel sound to its ears, enabling exceptional hearing. It has bright yellow eyes, a greyish-brown plumage, and white markings on its face, giving it a unique and striking appearance.This owl species is specially adapted for hunting in low-light conditions. It has excellent nocturnal vision and can spot prey, such as small mammals like voles and mice, beneath the snow. It hunts by perching on tree branches and silently swooping down to catch its prey using its sharp talons.Despite their impressive size, great grey owls are relatively calm and have a docile nature. They are known for being non-aggressive towards humans and are often regarded as having a gentle temperament.Great grey owls are also famous for their silent flight, owing to the unique structure of their feathers that helps reduce noise. These majestic owls are beloved by birdwatchers and nature enthusiasts for their beauty, elusive nature, and remarkable hunting abilities." + }, + { + "imageClass": "European fire salamander, Salamandra salamandra", + "description": "The European fire salamander, scientifically known as Salamandra salamandra, is a species of salamander found in various parts of Europe. It is one of the most recognizable and iconic species of salamanders due to its striking coloration. This amphibian typically has a black body with bright yellow or orange markings covering its skin. The patterns can vary greatly between individuals.European fire salamanders are usually found in moist habitats such as forests, woodlands, and caves. They are primarily nocturnal and spend much of their time hiding in damp places like leaf litter or under logs. These salamanders possess glandular skin on their back, which produces toxic secretions that act as a defense mechanism against predators. If threatened, they can excrete a milky substance containing toxins that can irritate or even be harmful to other animals.Feeding on a diet mainly consisting of various invertebrates like insects, spiders, worms, and small mollusks, European fire salamanders have a slow metabolism. They are also capable of regenerating lost body parts, including limbs, which is a unique feature among amphibians.These salamanders undergo a complex reproductive cycle. After mating, the female produces eggs, which she then deposits in a nearby water source like ponds or streams. The larvae hatch from the eggs and live in the water for several months before undergoing metamorphosis into the adult form.Due to their distinct appearance, European fire salamanders are popular among amphibian enthusiasts and are sometimes kept as pets. However, it is essential to ensure their proper care, including maintaining suitable habitat conditions and providing a diet that mimics their natural food sources, for their well-being." + }, + { + "imageClass": "common newt, Triturus vulgaris", + "description": "A common newt, Triturus vulgaris, is a species of amphibian belonging to the family Salamandridae. Commonly found across Europe, it is also known as the smooth newt or the European newt. It is a small to medium-sized newt, measuring around 8-12 cm in length as an adult.The common newt has a distinctively colored body; males have a bright orange underside with black spots, while females and juveniles are typically brown or olive-gray with lighter undersides. During the breeding season, males develop a wavy crest on their back and tail. They can often be found in and around freshwater habitats such as ponds, lakes, and slow-moving streams.Common newts are amphibious, spending part of their lives on land and part in the water. They are active mainly during the night and feed on a diet consisting of small invertebrates, including insects, worms, and larvae.Breeding takes place during the spring, where males perform elaborate courtship displays involving tail waving and undulating movements. After mating, females lay small eggs singly or in clusters attached to plants or other submerged objects in the water. The eggs hatch into aquatic larvae, called newt or eft tadpoles, who undergo metamorphosis and develop into adult newts.Common newts play an essential role in ecosystems by controlling aquatic invertebrate populations and serving as prey for larger animals. They are often kept as pets due to their attractive appearance and relatively low maintenance requirements." + }, + { + "imageClass": "eft", + "description": "I apologize for the confusion, but could you please provide more context or specify what you are referring to when you mention 'eft'? There are multiple possible meanings, such as:1. An acronym for 'Electronic Funds Transfer,' which is an electronic method of transferring money from one bank account to another.2. An acronym for 'Escape From Tarkov,' which is a popular online multiplayer video game.3. A reference to a juvenile stage of a newt, a type of amphibian.If none of these definitions align with what you are looking for, please provide more details so I can assist you better." + }, + { + "imageClass": "spotted salamander, Ambystoma maculatum", + "description": "A spotted salamander, Ambystoma maculatum, is a species of salamander found in North America. They are typically black with yellow spots or yellowish-green with black spots, hence the name. Spotted salamanders are medium-sized amphibians that inhabit forests and woodland areas, particularly near vernal pools or other temporary bodies of water where they breed. They have a unique life cycle that involves spending most of their lives underground and emerging during the breeding season to lay eggs in the water. These salamanders play an important role in ecosystem balance and are considered indicators of environmental health." + }, + { + "imageClass": "axolotl, mud puppy, Ambystoma mexicanum", + "description": "The axolotl, also known as the mud puppy, is a fascinating amphibian species belonging to the Ambystoma mexicanum family. Native to the lakes of Mexico, particularly Xochimilco and Chalco, it is commonly referred to as the Mexican walking fish or water monster, although it is not a fish.What makes the axolotl unique is its ability to retain its juvenile characteristics throughout its life, a phenomenon known as neoteny. Unlike most amphibians that undergo metamorphosis, axolotls remain in their aquatic larval form, retaining their gills and a finned tail into adulthood.These creatures have a striking appearance, with a squat body, feathery external gills protruding from the sides of their head, small eyes, and a wide, toothy grin. They are typically dark in color, ranging from brown to black, but albino axolotls with pale coloring and pinkish hue are also popular.Axolotls are fully aquatic, primarily inhabiting freshwater systems such as lakes, canals, and wetlands. They are skilled swimmers, utilizing their four limbs to navigate and their tail to propel themselves through the water. In terms of diet, axolotls are carnivorous and feed on various aquatic invertebrates, small fish, and even other axolotls.These remarkable creatures have become popular pets due to their unique biology and appearance. They can be kept in home aquariums and require a suitable aquatic environment with clean, cold water, proper filtration, and ample hiding spots. Axolotls are relatively hardy and easy to care for, making them a popular choice among amphibian enthusiasts.Unfortunately, axolotls face threats in their natural habitat, primarily due to habitat loss, pollution, and the introduction of non-native species. As a result, they are currently classified as critically endangered in the wild. Efforts are being made to preserve their populations through conservation programs and captive breeding.Overall, the axolotl is a fascinating amphibian with its unique characteristics and captivating appearance, making it an intriguing species to learn about and observe." + }, + { + "imageClass": "bullfrog, Rana catesbeiana", + "description": "A bullfrog, scientifically known as Rana catesbeiana, is a large, semi-aquatic frog species native to North America. They are typically green or brown in color and have a robust body with strong hind legs that enable them to leap long distances. Bullfrogs are known for their loud, deep croaking calls, which are often associated with warm summer nights. They inhabit freshwater habitats like ponds, lakes, and marshes, and are well-adapted for life both in water and on land. Bullfrogs are opportunistic predators, feeding on a variety of prey, including insects, small fish, other frogs, and even small birds or mammals. Due to their size, ecological impact, and distinct vocalizations, bullfrogs are often considered a charismatic and iconic species in North American amphibian fauna." + }, + { + "imageClass": "tree frog, tree-frog", + "description": "A tree frog, also known as a tree-frog, is a small amphibian that belongs to the family Hylidae. They are called tree frogs because they are typically found in trees, where they live and reproduce. These frogs have adapted to arboreal life, possessing specialized features such as adhesive toe pads that help them grip onto branches and leaves. Tree frogs often have vibrant colors and unique markings, which can serve as camouflage or serve as a warning to potential predators. They are known for their ability to produce a variety of vocalizations, especially during the breeding season when males use their calls to attract mates. Tree frogs can be found in many parts of the world, including tropical rainforests, temperate forests, and even deserts, depending on the species." + }, + { + "imageClass": "tailed frog, bell toad, ribbed toad, tailed toad, Ascaphus trui", + "description": "A 'tailed frog' is a nickname for the species Ascaphus truei, which is a type of aquatic frog that belongs to the Ascaphus genus. It is also known by other names such as 'bell toad', 'ribbed toad', or 'tailed toad'. Tailed frogs are unique and primitive compared to other frogs. They are mainly found in the Pacific Northwest of North America, particularly in the coastal regions of British Columbia, Canada, and the states of Washington and Oregon, United States.These frogs have some distinctive features that set them apart from other amphibians. They have a long, protruding tail, which is why they are called tailed frogs. The presence of this tail distinguishes them from most other frog species. Tailed frogs are primarily aquatic and inhabit fast-flowing streams and rivers with cool, clean water. They have adaptations that help them survive in these environments. For instance, their feet are fully webbed, which assists in swimming and clinging to rocks in swift water currents.These frogs have a unique reproductive strategy as well. Unlike many frogs, the males of this species have internal fertilization. They possess a specialized copulatory organ known as a 'copulatory pad' that helps in achieving internal fertilization. This adaptation is rare among frogs and is only shared with a few other species.Overall, tailed frogs are fascinating creatures and have several distinct characteristics that make them quite different from typical frogs." + }, + { + "imageClass": "loggerhead, loggerhead turtle, Caretta caretta", + "description": "A loggerhead, also known as a loggerhead turtle or by its scientific name Caretta caretta, is a species of sea turtle that belongs to the family Cheloniidae. It is one of the largest of all sea turtle species and is named after its large and sturdy head. Loggerhead turtles can be found in various oceanic habitats, particularly in the Atlantic, Indian, and Pacific Oceans.These turtles have a reddish-brown shell, or carapace, and their heads are often a pale yellow color. They have strong jaws that allow them to feed on a diet primarily consisting of bottom-dwelling invertebrates such as crabs, conchs, and jellyfish. Loggerheads are also known for their long migration patterns, often traveling thousands of miles between nesting and feeding areas.Loggerhead turtles are classified as an endangered species due to a variety of threats, including habitat loss, accidental capture in fishing gear, and pollution. Conservation efforts are underway to protect and restore their populations and nesting habitats, as these turtles play a crucial role in maintaining the health of marine ecosystems." + }, + { + "imageClass": "leatherback turtle, leatherback, leathery turtle, Dermochelys coriacea", + "description": "A leatherback turtle, also known as a leatherback, leathery turtle, or by its scientific name Dermochelys coriacea, is the largest species of sea turtle and is characterized by its distinct leather-like shell. It is named after its unique carapace, which is composed of a layer of tough, rubbery skin with a mosaic of bony plates underneath.Leatherback turtles are found in oceans around the world, including both warm and cold waters. They have a global distribution and are known to undertake extensive migrations across oceanic regions.These turtles are remarkable for their impressive size, with adults often reaching lengths of around 6-7 feet (1.8-2.1 meters) and weighing up to 2,000 pounds (900 kilograms). They are also known for their ability to dive to great depths, reaching depths of over 3,000 feet (910 meters) in search of their primary prey, which consists mainly of jellyfish.Leatherbacks have several unique adaptations that enable them to thrive in the marine environment. Their large front flippers are specially adapted for efficient swimming, and they possess a soft and flexible shell, unlike other turtles with hard shells, which allows them to dive deep and withstand the pressure at great depths.These turtles are of significant conservation concern due to various threats, including direct harvesting of their eggs and adult turtles, entanglement in fishing gear, habitat degradation, and climate change. Efforts are being made worldwide to protect leatherback turtles and their nesting grounds and reduce human impacts on their populations." + }, + { + "imageClass": "mud turtle", + "description": "A mud turtle is a type of small freshwater turtle that belongs to the genus Kinosternon. They are often found in North and Central America, living in rivers, streams, and shallow water bodies with muddy or sandy bottoms. Mud turtles get their name from their ability to burrow and hide in the soft mud when threatened, allowing only their head and limbs to remain exposed. They have distinct features such as a small size, a domed and keeled carapace (shell), and a yellowish-brown or dark brown coloration. Mud turtles are omnivorous and feed on a diet that includes various aquatic plants, insects, mollusks, crustaceans, and small fish." + }, + { + "imageClass": "terrapin", + "description": "A terrapin is a type of turtle that belongs to the Family Emydidae. Terrapins are generally smaller than other turtle species and are mostly found in freshwater or brackish habitats, such as marshes, swamps, and estuaries. They are highly adapted to life in water and have webbed feet for swimming. Terrapins can be herbivorous or omnivorous, feeding on plants, insects, crustaceans, and small fish. They are known for their distinct diamond-shaped shells, which vary in color and pattern depending on the species." + }, + { + "imageClass": "box turtle, box tortoise", + "description": "A box turtle, sometimes referred to as a box tortoise, is a type of turtle belonging to the family Emydidae. They are terrestrial turtles that are native to North America. Box turtles are well-known for their unique ability to retract their entire body, including their head, legs, and tail, into their shell, which offers them protection from predators. These turtles are named 'box turtles' because of their hinged lower shell, which allows them to completely close up their shell like a box. There are different species of box turtles, including the Eastern box turtle, the Western box turtle, the Three-toed box turtle, and the Gulf Coast box turtle, among others. Each species has distinct characteristics and may vary in their appearance, habitat preferences, and behavior.Box turtles are known for their longevity and can live for several decades. They have a varied diet, feeding on a combination of insects, earthworms, fruits, vegetables, and other small animals. These turtles are often kept as pets by reptile enthusiasts, but it's important to note that they require a specific habitat and care to thrive." + }, + { + "imageClass": "banded gecko", + "description": "A banded gecko refers to a type of small lizard that belongs to the family Gekkonidae. They are popular as pets due to their small size and relatively easy care requirements. Banded geckos get their name from the prominent bands or stripes that run across their bodies, which is a distinctive feature of their appearance. These geckos are typically nocturnal and are native to arid regions, such as desert areas in North America. They have adhesive toe pads that allow them to climb walls and other vertical surfaces, making them excellent climbers. Banded geckos are insectivores, primarily feeding on small insects such as crickets and mealworms." + }, + { + "imageClass": "common iguana, iguana, Iguana iguana", + "description": "A common iguana, scientifically known as Iguana iguana, is a large species of lizard that belongs to the family Iguanidae. These iguanas are native to Central and South America and have also been introduced to other regions as exotic pets.Common iguanas are known for their distinctive features, including a long tail, sharp claws, and a crest of spines along their back. They have excellent climbing abilities, with strong limbs and long, agile toes. These reptiles are primarily herbivorous, feeding on a variety of vegetation such as leaves, flowers, and fruits. They also require ample heat to regulate their body temperature, often basking in the sun to warm up.In terms of size, male common iguanas can reach lengths of up to 6 feet (1.8 meters) including their tail, whereas females are generally smaller. These reptiles can display a wide range of colors, including shades of green, gray, brown, and even blue as they age.As pets, common iguanas require specialized care, including a spacious enclosure with ample heat and UVB lighting, a proper diet consisting of greens and vegetables, and regular handling to ensure socialization. They have specific needs and can grow quite large, so it's important to thoroughly research their care requirements before considering them as pets." + }, + { + "imageClass": "American chameleon, anole, Anolis carolinensis", + "description": "An American chameleon, also known as an anole, refers to a species of small to medium-sized lizards belonging to the genus Anolis, specifically Anolis carolinensis. Despite the name, they are not true chameleons but rather a type of reptile found in parts of North America, particularly in the southeastern United States.Anoles are known for their ability to change color, similar to true chameleons, although their color-changing capabilities are limited compared to their distant relatives. They typically have a green-brown coloration but can darken or lighten their skin to some extent, often in response to environmental factors like temperature or mood.These lizards are arboreal, meaning they spend most of their time climbing and living in trees or shrubs. They have specialized toe pads that enable them to grip onto surfaces easily and efficiently. Anoles are insectivorous, primarily feeding on small invertebrates like insects and spiders.Anolis carolinensis is a common species of anole and is often kept as a pet due to its relatively small size and low maintenance requirements. They have become popular in the pet trade for their vibrant colors, interesting behaviors, and ease of care." + }, + { + "imageClass": "whiptail, whiptail lizard", + "description": "A whiptail lizard, also known as a whiptail, is a type of lizard belonging to the genus Aspidoscelis. They are primarily found in the Americas, particularly in the southwestern United States, Mexico, and Central America. Whiptail lizards are characterized by their long, slender bodies and long tails, which resemble a whip. They are diurnal reptiles, meaning they are active during the day, and are known for their agility and speed. Whiptail lizards are also notable for their reproductive behavior, as some species are all-female and reproduce via parthenogenesis, a process in which females can produce offspring without mating with males. Overall, whiptail lizards are fascinating creatures that have a unique place in the reptile world." + }, + { + "imageClass": "agama", + "description": "An agama is a type of lizard that belongs to the family Agamidae, which includes over 400 species. These lizards are known for their vibrant colors, display behaviors, and sometimes crests on their heads or spines on their backs. Agamas are found in various parts of the world, including Africa, Asia, and Australia. They are often found in warm climates and have adapted to diverse habitats such as deserts, forests, and grasslands. Agamas are diurnal, meaning they are active during the day, and many species are arboreal, spending much of their time in trees. They primarily feed on insects and other small invertebrates." + }, + { + "imageClass": "frilled lizard, Chlamydosaurus kingi", + "description": "The frilled lizard, scientifically known as Chlamydosaurus kingii, is a unique reptile native to Australia and New Guinea. It is also commonly referred to as the frill-necked lizard due to the impressive frill it can raise around its neck. Frilled lizards belong to the family Agamidae and are known for their distinct appearance and behavior. They have a slender body, a large triangular head, and a long tail. The most remarkable feature is their expandable frill, which is a flap of skin and cartilage that runs from the lizard's lower jaw to the sides of its body. When threatened or during courtship displays, the frilled lizard will extend this frill vertically, making it appear larger and more intimidating to potential predators or rivals.These arboreal lizards spend much of their time in trees, using their sharp claws and well-developed tail for climbing. They have excellent camouflage, with their coloring varying from gray-brown to reddish-brown, allowing them to blend in with the bark of trees or the forest floor.Frilled lizards are primarily insectivorous, feeding on a variety of invertebrates such as ants, termites, spiders, and small reptiles. They are ambush predators, staying well-hidden and waiting for their prey to come within striking distance.Although frilled lizards are not considered aggressive, they can display defensive behavior if threatened. In addition to their frills, they also hiss loudly, revealing their pink or yellow mouth, giving the appearance of being more dangerous than they actually are. If cornered, they may resort to biting or using their long tail to strike at predators or perceived threats.Overall, the frilled lizard is a fascinating and iconic species known for its unique frill, impressive displays, and natural habitat." + }, + { + "imageClass": "alligator lizard", + "description": "An alligator lizard refers to a type of lizard that belongs to the family Anguidae. These lizards are known for their similarities in appearance to alligators, particularly due to their stout bodies, short limbs, and rough, scaled skin. Despite the name, alligator lizards are not closely related to alligators or crocodiles. They are found in various parts of North and Central America, and are known for their agility and ability to adapt to different environments. Some popular species of alligator lizards include the Northern alligator lizard, Southern alligator lizard, and the Mexican alligator lizard." + }, + { + "imageClass": "Gila monster, Heloderma suspectum", + "description": "A Gila monster, scientifically known as Heloderma suspectum, is a species of venomous lizard found in the southwestern United States and northwestern Mexico. It is one of only two venomous lizards in the world, the other being its close relative, the Mexican beaded lizard.The Gila monster is known for its unique appearance, featuring a stocky body covered in black and orange or yellow-black patterned scales. It can grow up to 22 inches (56 cm) in length and has a stout tail and short, powerful limbs. The lizard has a relatively slow metabolism and is primarily active during the night.Gila monsters are venomous, possessing venom glands in their lower jaws. However, they are not aggressive and prefer to use their venom for hunting prey, such as small mammals, birds, eggs, and lizards. The bite of a Gila monster can cause painful swelling, but it is not usually lethal to humans, and no deaths have been reported since the development of antivenom.These lizards are considered a unique and fascinating species, protected in the wild due to their low population numbers and habitat destruction. They are found in desert and scrubland areas, usually seeking refuge in burrows or under rocks during extreme temperatures.Gila monsters have also gained popularity in the exotic pet trade, although their ownership is regulated, and potential owners are often required to obtain permits due to their protected status." + }, + { + "imageClass": "green lizard, Lacerta viridis", + "description": "A green lizard, also known as Lacerta viridis or the European green lizard, is a species of lizard belonging to the family Lacertidae. It is found primarily in Europe, ranging from western Europe through central and southeastern Europe, and is also native to parts of the Middle East. Green lizards are known for their vibrant green coloration, although males may exhibit blue patches and bright yellow throats during the mating season. They have slender bodies, long tails, and are typically around 30-40 centimeters in length. Green lizards are diurnal and often inhabit grasslands, meadows, wetlands, and gardens. They are insectivorous and feed on a variety of invertebrates." + }, + { + "imageClass": "African chameleon, Chamaeleo chamaeleon", + "description": "The African chameleon, scientifically known as Chamaeleo chamaeleon, is a species of chameleon native to the Mediterranean region, including parts of North Africa and southern Europe. It is commonly referred to as the common chameleon or Mediterranean chameleon. These reptiles are known for their distinct ability to change color, which they do for communication, camouflage, and thermal regulation. They have a unique appearance with their long, prehensile tail, independently moving eyes, and specialized feet for climbing. The African chameleon primarily feeds on insects and small invertebrates, catching their prey with their long, sticky tongue. They are fascinating creatures and are popular among reptile enthusiasts." + }, + { + "imageClass": "Komodo dragon, Komodo lizard, dragon lizard, giant lizard, Varanus komodoensis", + "description": "A Komodo dragon (scientifically known as Varanus komodoensis), also referred to as a Komodo lizard, dragon lizard, or giant lizard, is a species of reptile that belongs to the Varanidae family. It is native to the Indonesian islands of Komodo, Rinca, Flores, Gili Motang, and Padar.The Komodo dragon is the largest living lizard species, growing up to 10 feet (3 meters) in length and weighing up to 150 pounds (70 kilograms). These reptiles have a stout build, powerful limbs, sharp claws, and rough, scaly skin. They have a unique evolutionary trait called 'venomous blood' due to the presence of toxic proteins in their saliva, which aids in killing their prey.Komodo dragons are apex predators and mainly feed on carrion, but they are also capable of taking down large prey such as deer, pigs, and water buffalo. Despite their massive size, they are excellent swimmers and climbers. These lizards have a slow metabolic rate, enabling them to survive on as little as 12 meals per year.In terms of behavior, Komodo dragons are solitary and territorial animals. They have a keen sense of smell and can detect decaying flesh from miles away. Their bite is extremely powerful, delivering a mix of bacteria-loaded saliva, which can lead to a lethal infection in their prey over time.Komodo dragons are considered vulnerable species due to habitat loss, poaching, and limited distribution. Efforts are being made to conserve and protect them, with most of the population residing in the Komodo National Park. Many people find these unique creatures fascinating and visit the park to observe them in their natural habitat." + }, + { + "imageClass": "African crocodile, Nile crocodile, Crocodylus niloticus", + "description": "The African crocodile, also known as the Nile crocodile (scientific name: Crocodylus niloticus), is a large reptile found in many parts of Africa. It is one of the largest crocodile species and is known for its aggressive nature and powerful jaws. Nile crocodiles primarily inhabit freshwater habitats such as rivers, lakes, and marshes. They are excellent swimmers and hunters, feeding on a variety of prey including fish, birds, mammals, and occasionally even other crocodiles. Nile crocodiles are considered to be one of the most dangerous crocodile species, as they are responsible for several human fatalities each year. They have a distinctive appearance with a long body, powerful tail, and armored scales." + }, + { + "imageClass": "American alligator, Alligator mississipiensis", + "description": "The American alligator, scientifically known as Alligator mississippiensis, is a large reptile native to the southeastern United States. It is one of two living species of alligators and is closely related to the Chinese alligator. Known for its prehistoric appearance and formidable size, this species has a long and broad snout, a muscular body covered in armored plates, and a powerful tail.American alligators typically inhabit freshwater environments such as swamps, marshes, rivers, and lakes. They are excellent swimmers and can be found in both stagnant waters and flowing currents. These reptiles are carnivorous and primarily feed on fish, turtles, birds, mammals, and occasionally smaller alligators.Adult male alligators can reach lengths of up to 13 to 15 feet (4 to 4.5 meters), while females tend to be smaller, averaging around 9 to 10 feet (2.5 to 3 meters). They have a dark brown or black coloration, which provides excellent camouflage in their habitat. American alligators are known for their iconic bellowing calls and the ability to regulate their body temperature by basking in the sun.Conservation efforts over the years have been successful in recovering the American alligator population, which was once endangered due to habitat loss and hunting. Today, they are classified as a species of least concern and play a vital ecological role in their native ecosystems." + }, + { + "imageClass": "triceratops", + "description": "A Triceratops is a type of dinosaur that lived around 68 to 66 million years ago during the Late Cretaceous period. It was a herbivorous dinosaur and is widely recognized for its distinct appearance. Triceratops had a large body with a solid frill at the back of its head and three horns on its face. The horns consisted of one large horn above its beak and two smaller horns above each eye. Triceratops is one of the most well-known and iconic dinosaurs, often depicted in books, movies, and other media." + }, + { + "imageClass": "thunder snake, worm snake, Carphophis amoenus", + "description": "A thunder snake, also known as a worm snake, is a small non-venomous snake species called Carphophis amoenus. These snakes are found in the eastern United States and parts of Mexico. They are typically gray or brown in color, with smooth scales and a shiny appearance.Thunder snakes are relatively small, typically growing to be around 10-15 inches long. They have a slender body and a pointed head, which allows them to burrow into the soil and leaf litter where they spend most of their time.As their name suggests, worm snakes primarily feed on earthworms and other small invertebrates. They have specialized jaws and teeth that help them to capture and eat earthworms, which serve as their main source of food.These snakes are generally nocturnal and secretive, spending most of their time underground. Worm snakes do not pose any threat to humans and are relatively docile. If threatened, they may emit a musky odor or try to burrow into the ground for protection.Overall, the thunder snake or worm snake is a fascinating little creature that plays an important role in controlling populations of soil-dwelling invertebrates." + }, + { + "imageClass": "ringneck snake, ring-necked snake, ring snake", + "description": "A ringneck snake, also known as a ring-necked snake or ring snake, is a small non-venomous snake that is found in various parts of North America. They are known for the distinctive ring or collar around their neck, which can be yellow, orange, or red in color. Ringneck snakes are typically around 10-15 inches long and have smooth, shiny scales. They are secretive and usually active at night, feeding on small invertebrates such as worms, slugs, and insects. Despite their relatively small size, ringneck snakes have unique behavior where they sometimes display their bright belly scales when threatened, hoping to startle and confuse predators." + }, + { + "imageClass": "hognose snake, puff adder, sand viper", + "description": "A hognose snake, puff adder, and sand viper are all types of venomous snakes found in various parts of the world.1. Hognose Snake: The hognose snake is a type of non-aggressive snake found mostly in North America. It is known for its distinctive upturned snout, which it uses for digging in the ground. Hognose snakes are mildly venomous, but their venom is not harmful to humans.2. Puff Adder: The puff adder is a venomous snake found in sub-Saharan Africa and parts of the Middle East. It is known for its defensive behavior, where it puffs up its body and hisses when threatened. Puff adders have potent venom and are responsible for a significant number of snakebite fatalities in Africa.3. Sand Viper: A sand viper is a general term used to describe several species of venomous vipers that inhabit sandy habitats. These snakes are found in various parts of the world, including Africa, Asia, and the Middle East. Sand vipers have a specialized physiology allowing them to camouflage in their sandy surroundings and ambush prey. They possess potent venom primarily used for hunting small animals.It is important to note that while these snakes are venomous, they typically pose little threat to humans unless provoked or handled improperly. It's always best to exercise caution and avoid direct contact with any venomous snake species." + }, + { + "imageClass": "green snake, grass snake", + "description": "A green snake, specifically the grass snake, is a non-venomous snake species found in grassy areas of Europe, including the British Isles. It is known for its vibrant green coloration and slender body, which helps it blend in with its natural surroundings. Grass snakes are harmless to humans and primarily feed on amphibians, such as frogs and newts, as well as small fish and occasionally small mammals. They are an important part of the ecosystem and often play a role in controlling populations of these prey species." + }, + { + "imageClass": "king snake, kingsnake", + "description": "A king snake, or kingsnake, is a type of constrictor snake that belongs to the genus Lampropeltis. They are non-venomous and are found in various regions of North and Central America. King snakes are known for their vibrant and striking patterns, which can differ depending on the species and subspecies. They are popular as pets due to their relatively calm disposition and manageable size. King snakes are powerful predators, feeding on a diet consisting mainly of other snakes, lizards, small mammals, and sometimes birds or eggs." + }, + { + "imageClass": "garter snake, grass snake", + "description": "A garter snake and a grass snake refer to two different species of non-venomous snakes. 1. Garter Snake: Garter snakes are a type of snake that belong to the genus Thamnophis. They are found in North America and are named after the distinctive stripes or patterns on their bodies that resemble garters or belts. Garter snakes are relatively small and can vary in coloration depending on their location and subspecies. They are commonly found near water sources, such as ponds, streams, or gardens.2. Grass Snake: Grass snakes, also known as ringed snakes, belong to the genus Natrix. They are native to Europe and parts of Asia. Like garter snakes, they are non-venomous and can be identified by a yellowish-green or brownish color, with darker dorsal blotches or rings along their body. Grass snakes are primarily found in grasslands, meadows, marshes, and near freshwater habitats.Both garter snakes and grass snakes are harmless to humans and play important roles in their ecosystems by controlling populations of small mammals, amphibians, and insects." + }, + { + "imageClass": "water snake", + "description": "A water snake typically refers to a type of snake that is adapted to aquatic environments. While many species of snakes are known to swim, water snakes are specifically adapted for life in or near bodies of water such as rivers, lakes, ponds, or marshes. They have streamlined bodies, flattened tails, and are excellent swimmers. Water snakes can be found in various parts of the world and belong to different genera and species. Some examples include the common water snake, northern water snake, banded water snake, and cottonmouth (also known as a water moccasin). It's essential to note that not all snakes are adapted for life in water, and descriptions may vary depending on the specific species." + }, + { + "imageClass": "vine snake", + "description": "A vine snake is a type of non-venomous snake found in various forested regions of the world. These snakes are known for their slender body shape and remarkable camouflage that helps them blend in with their surroundings, particularly with vines and foliage. Their name 'vine snake' comes from their ability to mimic the appearance of vines, which aids in ambushing prey and avoiding predators. Vine snakes are typically green or brown in color, and some species have a Pointed and elongated snout, allowing them to navigate through dense vegetation. While their resemblance to vines is impressive, they are not actually capable of climbing like a true vine, but they do possess excellent climbing skills. These snakes feed primarily on small vertebrates and are harmless to humans unless provoked." + }, + { + "imageClass": "night snake, Hypsiglena torquata", + "description": "The night snake, scientific name Hypsiglena torquata, is a species of non-venomous snake found in North America. It belongs to the family Colubridae, which includes a diverse group of snakes. The night snake is relatively small, typically measuring around 10-20 inches in length. It has a slender body with smooth scales and is often gray, brown, or reddish-brown in color, featuring darker blotches or specks along its body. One of its distinctive features is a dark band or collar around its neck. As its name suggests, the night snake is primarily nocturnal, meaning it is most active during the night. During the day, it usually hides in crevices, rock piles, or under debris. Night snakes mainly feed on small reptiles, amphibians, and invertebrates, such as lizards, frogs, and insects. Despite their small size, night snakes are harmless to humans and generally prefer to avoid confrontation by quickly retreating or remaining motionless when threatened." + }, + { + "imageClass": "boa constrictor, Constrictor constrictor", + "description": "A boa constrictor, scientifically known as Constrictor constrictor, is a large, nonvenomous snake found in Central and South America. They are one of the largest snake species, with adults typically reaching lengths of 6-10 feet, although some individuals can grow much larger. Boa constrictors have a muscular body with a pattern of dark brown or black markings on a lighter background color.As their name suggests, boa constrictors are constrictors, which means they squeeze and suffocate their prey before swallowing them whole. They have a highly adaptable diet and can consume a wide range of animals, including small mammals, birds, and reptiles. Boa constrictors are ambush predators, spending much of their time hiding and waiting for suitable prey to pass by.In the pet trade, boa constrictors are quite popular due to their relatively calm temperament and manageable size compared to other large snake species. However, owning a boa constrictor as a pet requires proper care, space, and commitment as they can live for several decades." + }, + { + "imageClass": "rock python, rock snake, Python sebae", + "description": "A rock python, also known as a rock snake or scientifically named Python sebae, is a large and powerful non-venomous snake species native to sub-Saharan Africa. It is one of the largest snake species in the world, capable of reaching lengths of up to 20 feet (6 meters) and weighing over 150 pounds (70 kilograms).Rock pythons have a distinctive pattern of brown or olive-colored scales with dark blotches, providing effective camouflage in their natural habitat. They are excellent swimmers and competent climbers, possessing sharp teeth and powerful muscles to constrict their prey.These pythons are carnivorous and primarily feed on a variety of mammals such as antelopes, monkeys, rodents, and birds. They capture their prey by ambushing them and then using their body to suffocate and swallow them whole.Despite their large size, rock pythons are generally shy and will try to avoid confrontation with humans. However, if threatened or cornered, they can become aggressive and deliver a powerful bite or constrict with great force.Rock pythons have been heavily traded in the exotic pet industry, causing concern for their declining populations in the wild. They are also hunted for their skin, meat, and body parts, which are used in traditional medicine and fashion industries. As a result, they are listed as a vulnerable species by the International Union for Conservation of Nature (IUCN)." + }, + { + "imageClass": "Indian cobra, Naja naja", + "description": "The Indian cobra, scientifically known as Naja naja, is a highly venomous snake species found predominantly in the Indian subcontinent and parts of Southeast Asia. It is also referred to as the spectacled cobra due to the spectacle-like mark on the back of its hood. Indian cobras are medium-sized snakes, ranging in length from 4 to 7 feet (1.2 to 2.1 meters). They have a slender body, smooth scales, and a distinctive hood that they expand when threatened or trying to intimidate potential predators or prey. These cobras are known for their potent neurotoxic venom, which affects the nervous system of their victims. They primarily prey on small mammals, birds, and reptiles, using their venom to immobilize and digest their prey. Indian cobras are typically shy and will try to avoid humans, but when cornered or threatened, they can become highly aggressive and strike if provoked. Their venom can be fatal to humans, so they are generally considered dangerous and should be handled with caution." + }, + { + "imageClass": "green mamba", + "description": "A 'green mamba' refers to a species of venomous snake, specifically the Eastern Green Mamba (Dendroaspis angusticeps) and the Western Green Mamba (Dendroaspis viridis). These are highly agile and fast-moving snakes that are native to certain regions of Africa. Despite their name, the coloration of these snakes is usually bright green to olive green, though it can vary between individuals and subspecies. Green mambas are known for their potent venom, which they use primarily for hunting prey. They are generally considered shy and will usually avoid human contact, but they can be dangerous if cornered or threatened." + }, + { + "imageClass": "sea snake", + "description": "A sea snake is a kind of snake that has adapted to live in marine environments, primarily in the warm tropical waters of the Indian and Pacific Oceans. They belong to the subfamily Hydrophiinae and are known for their streamlined bodies, which are specially adapted for swimming in the ocean. Sea snakes have paddle-like tails, flattened bodies, and valves in their nostrils that allow them to stay submerged for extended periods. They are highly venomous, with venom developed for hunting and subduing prey such as fish and eels. Sea snakes are usually highly adapted to aquatic life and rarely come to land, if at all." + }, + { + "imageClass": "horned viper, cerastes, sand viper, horned asp, Cerastes cornutus", + "description": "A 'horned viper,' also known as cerastes, sand viper, horned asp, or scientifically named Cerastes cornutus, is a species of venomous snake native to arid regions of North Africa and the Middle East. It is characterized by its distinct horn-like projections above its eyes, which are actually modified scales. The horned viper is known for its excellent camouflage, blending in seamlessly with the sandy desert environment. It typically feeds on small rodents and lizards and uses its venom to immobilize its prey. When threatened, it can also make a loud hissing noise and strike rapidly to defend itself." + }, + { + "imageClass": "diamondback, diamondback rattlesnake, Crotalus adamanteus", + "description": "A diamondback, more specifically a diamondback rattlesnake, refers to a venomous species of rattlesnake known as Crotalus adamanteus. It is one of the largest venomous snakes found in North America and is named for the distinctive diamond-shaped pattern on its back. The diamondback rattlesnake is known for its venomous bite and its characteristic rattle, located at the end of its tail, which it uses as a warning signal when feeling threatened. It is important to exercise caution and avoid close contact with diamondback rattlesnakes, as their venom can be dangerous if bitten." + }, + { + "imageClass": "sidewinder, horned rattlesnake, Crotalus cerastes", + "description": "A sidewinder, horned rattlesnake, scientifically known as Crotalus cerastes, is a species of venomous snake found in the southwestern United States and northwestern Mexico. It is notable for its unique method of locomotion, known as sidewinding. The snake moves by rolling its body sideways and propelling itself using a series of lateral thrusts. This adaptation allows it to move efficiently across loose sand dunes, its preferred habitat.The name 'horned rattlesnake' refers to the small, horn-like scales above each eye, which are believed to assist in breaking the snake's outline, helping with camouflage. Like other rattlesnake species, Crotalus cerastes possesses a rattle at the end of its tail. The rattle is made up of interlocking segments and serves as a warning signal to potential threats.Overall, the sidewinder, horned rattlesnake is a fascinating snake, known for its unique movement style and impressive adaptations to survive in arid environments. However, it is important to remember that it is venomous, so caution should be exercised when encountering this species in the wild." + }, + { + "imageClass": "trilobite", + "description": "A trilobite is an extinct marine arthropod that lived during the Paleozoic Era, around 520 to 250 million years ago. They were one of the most successful and diverse groups of animals during that time, with over 20,000 known species. Trilobites had a hard exoskeleton, segmented bodies, and three distinct lobes, which gave them their name. These ancient creatures are notable for their complex eyes and wide range of body shapes and sizes. Trilobite fossils are highly prized by collectors and are important for understanding the evolution of life on Earth." + }, + { + "imageClass": "harvestman, daddy longlegs, Phalangium opilio", + "description": "A harvestman, also known as a daddy longlegs, is not a spider but belongs to the arachnid group known as Opiliones. Phalangium opilio is just one specific species within this group. Harvestmen have long, thin legs and a rounded body that somewhat resembles a spider but lacks a distinct waist. They are commonly found in gardens, forests, and other natural habitats around the world. Harvestmen are harmless to humans and mainly feed on small insects and decomposing matter. It's worth noting that the term 'daddy longlegs' can also refer to other organisms depending on the region, such as cellar spiders or craneflies, so there might be some confusion due to these alternative interpretations." + }, + { + "imageClass": "scorpion", + "description": "A scorpion is a type of arachnid that is known for its distinctive appearance, including a pair of pincers and a curved tail with a venomous stinger at the end. Scorpions are found in various parts of the world, mostly in arid regions. They are nocturnal creatures and are generally predatory, feeding on insects, spiders, and other small animals. Scorpions are more closely related to spiders and ticks than to insects, and they have been around for millions of years. While some scorpion species possess venom potent enough to harm or even be fatal to humans, most are not considered a significant threat to humans." + }, + { + "imageClass": "black and gold garden spider, Argiope aurantia", + "description": "A black and gold garden spider, scientifically known as Argiope aurantia, is a species of orb-weaving spider. It is also commonly referred to as the yellow garden spider, golden orb-weaver, or zipper spider. As the name suggests, these spiders have a distinct black and yellow or gold coloring, which helps them camouflage in gardens and meadows. They are known for their large and intricate orb-shaped webs that they build to catch flying insects. The females are larger and more vibrant in coloration than the males, with a characteristic zigzag pattern, or 'stabilimentum,' in their webs. The black and gold garden spider is harmless to humans and is considered beneficial as it helps control populations of pests in gardens." + }, + { + "imageClass": "barn spider, Araneus cavaticus", + "description": "A barn spider, scientifically known as Araneus cavaticus, is a species of spider belonging to the family Araneidae. It is commonly found in North America and is known for its distinctive orb-shaped web. Barn spiders typically inhabit areas such as barns, sheds, and other outdoor structures hence the name 'barn' spider. They are known for their skill in constructing intricate webs to catch insects, which they prey upon. Barn spiders typically have a brownish or yellow coloration, and females are known to be larger than their male counterparts. They are generally harmless to humans and play an essential role in controlling the population of insects in their habitats." + }, + { + "imageClass": "garden spider, Aranea diademata", + "description": "A garden spider, scientifically known as Araneus diadematus, is a common and widespread orb-weaving spider found in gardens and other outdoor spaces. It belongs to the family Araneidae, which includes numerous species of web-building spiders. The garden spider is known for its distinctive appearance. Females typically have a large abdomen patterned with white, yellow, and black markings resembling a cross or a diadem, hence the species name diadematus. The males are smaller and less colorful than females.These spiders construct large, intricate orb-shaped webs to capture flying insects as their primary food source. They typically stay within or near their webs, waiting patiently for prey to become entangled in the sticky silk. When something gets caught, the spider quickly immobilizes it with a venomous bite and wraps it in silk for later consumption.Despite their sometimes intimidating appearance, garden spiders are harmless to humans and play an essential role in natural pest control by reducing the population of insects in gardens and surrounding areas. They are fascinating creatures to observe and can contribute to the overall biodiversity of your outdoor space." + }, + { + "imageClass": "black widow, Latrodectus mactans", + "description": "A black widow, scientifically known as Latrodectus mactans, is a venomous spider species found in various parts of the world, particularly North America. It is known for its distinct black coloration and the red hourglass-shaped mark on the underside of its abdomen, although the hourglass can sometimes be yellow or orange.Female black widows are infamous for their potent neurotoxic venom, which they use to immobilize their prey. While they are not aggressive spiders, they can bite in self-defense if they feel threatened. Black widow venom contains a neurotoxin called latrotoxin, which affects the nervous system, leading to symptoms such as muscle pain, cramps, and in severe cases, difficulty breathing and abdominal pain. However, it is important to note that black widow bites are rarely fatal, especially with medical treatment.It's worth mentioning that male black widows are significantly smaller and less venomous than females. They also lack the distinct black body and red hourglass marking, making them harder to identify.Overall, while black widows may sound intimidating, they generally try to avoid confrontations with humans and are not aggressive unless provoked." + }, + { + "imageClass": "tarantula", + "description": "A tarantula is a type of large and hairy spider. They belong to the family Theraphosidae and are found in various parts of the world. Tarantulas are known for their distinctive appearance, with thick bodies and long legs covered in bristles. Although they may seem menacing, most tarantulas are relatively harmless to humans. They are usually solitary creatures and feed on insects, other spiders, and sometimes small vertebrates. It's important to note that a tarantula might look intimidating, but they typically prefer to avoid confrontation rather than attack." + }, + { + "imageClass": "wolf spider, hunting spider", + "description": "A wolf spider is a type of hunting spider that belongs to the family Lycosidae. They are found worldwide and are known for their agile hunting abilities. Wolf spiders possess large eyes that give them excellent vision, allowing them to actively pursue and capture prey. These spiders do not spin webs to catch their prey like other spiders; instead, they rely on their quickness and stealth. They often reside on the ground and hunt at night, but can also be found in various habitats such as grasslands, forests, and even inside homes.Wolf spiders are not considered aggressive towards humans, but they may bite if they feel threatened. Their bite, while painful and possibly causing localized swelling, is not generally dangerous to humans unless an allergic reaction occurs. Overall, wolf spiders play a beneficial role in controlling insect populations and are fascinating creatures in the world of arachnids." + }, + { + "imageClass": "tick", + "description": "In various contexts, 'tick' can refer to different things:1. Tick as a unit of time: A tick can be a unit of time measurement. In computing, it often refers to the smallest increment of time that a system clock can measure. It can vary depending on the system, but it is typically a fraction of a second.2. Tick as a checkmark: A tick is commonly represented as a small checkmark (√) used to indicate that an item or task has been completed, or as a symbol of approval or correctness.3. Tick as an insect: A tick is a small arachnid that is known for attaching itself to the skin of animals or humans in order to feed on blood. Ticks are often found in outdoor environments, and some species can transmit diseases.Without further context, it is difficult to determine exactly what you are referring to when mentioning a tick." + }, + { + "imageClass": "centipede", + "description": "A centipede is a type of arthropod that belongs to the class Chilopoda. It is characterized by its long, segmented body, which is typically brownish or reddish-brown in color. Centipedes have numerous pairs of legs, with each body segment usually bearing one pair. The number of legs can vary depending on the species, but they usually have around 15 to 177 pairs of legs. Despite their name, which means 'hundred legs,' most centipede species do not have exactly 100 legs.Centipedes are known for their predatory nature and are primarily nocturnal hunters. They feed on small insects, spiders, worms, and other invertebrates. These fascinating creatures are found in various habitats worldwide, including forests, deserts, caves, and even gardens or houses. While most centipedes are harmless to humans, some species possess venomous claws or forcipules that they use to capture prey or defend themselves. It's always a good idea to avoid handling centipedes unless you are knowledgeable about their species and know they are harmless." + }, + { + "imageClass": "black grouse", + "description": "A black grouse, scientifically known as Tetrao tetrix, is a bird species belonging to the grouse family. It is found in parts of Europe and Asia, inhabiting a variety of habitats such as forests, moorlands, and meadows. The male black grouse is known for its distinctive appearance, with glossy black feathers, a lyre-shaped tail, and a prominent red wattle above its eyes. Females, on the other hand, have a more camouflaged reddish-brown coloration. Black grouse are known for their elaborate courtship displays, which involve males gathering in leks, or traditional display grounds, to attract females. They are primarily herbivores, feeding on vegetation such as berries, shoots, leaves, and occasionally insects. Black grouse populations have faced some declines due to habitat loss and hunting pressures in certain regions, leading to conservation efforts to protect their populations." + }, + { + "imageClass": "ptarmigan", + "description": "A ptarmigan is a type of bird that belongs to the grouse family. They are found in arctic and subarctic regions of North America, Europe, and Asia. Ptarmigans are known for their unique feather coloring, which changes seasonally to blend with their surroundings. In winter, they have white plumage, and in summer, their feathers transition to brown or gray. These birds have well-adapted feet with feathers that help them walk on snow and dig through it to find vegetation to eat. Ptarmigans are herbivorous and primarily feed on buds, leaves, fruits, and seeds. They are known for their ability to withstand cold temperatures and harsh climates, making them a fascinating species to study." + }, + { + "imageClass": "ruffed grouse, partridge, Bonasa umbellus", + "description": "The ruffed grouse, also referred to as the partridge or Bonasa umbellus, is a bird species native to North America. It belongs to the family Phasianidae, which includes various game birds. The ruffed grouse is known for its distinctive appearance and behavior. It has mottled brown plumage that provides excellent camouflage in forested habitats. The bird's name comes from the ruff of black feathers on its neck, which can be raised as a display during courtship or territorial interactions.Ruffed grouse are primarily ground-dwelling birds, inhabiting forests and woodlands across their range. They are particularly adapted to dense, young forests with a mix of young trees, shrubs, and open spaces. These birds primarily feed on plant material, including buds, leaves, fruits, and seeds.During the breeding season, male ruffed grouse perform a drumming display by rapidly beating their wings against the air, creating a distinctive sound. This drumming is used to establish territory and attract females. The female builds a nest on the ground, typically concealing it under dense vegetation, and incubates a clutch of 9-12 eggs.Ruffed grouse have significant cultural and ecological importance. They are a popular game bird for hunting enthusiasts in North America and contribute to recreational activities and local economies. Additionally, they play a role in forest ecosystems by dispersing seeds and creating habitat through their foraging and nest-building activities." + }, + { + "imageClass": "prairie chicken, prairie grouse, prairie fowl", + "description": "A prairie chicken, prairie grouse, or prairie fowl refers to several species of birds that belong to the grouse family (Tetraonidae) and are native to the grasslands of North America. These birds are specifically adapted to live in prairies, hence their name. The most well-known species of prairie chicken is the greater prairie chicken (Tympanuchus cupido), which is found in tallgrass and mixed-grass prairies of the central United States. They are known for their elaborate courtship displays, where males gather in open areas and perform booming calls and unique dances to attract females. Greater prairie chickens are considered an iconic bird of the prairies and an important indicator of the health of their grassland habitats.Another species, the lesser prairie chicken (Tympanuchus pallidicinctus), inhabits the shortgrass prairies of the southern Great Plains. While similar in appearance to the greater prairie chicken, it is smaller in size.Both greater and lesser prairie chickens have experienced population declines due to habitat loss and fragmentation caused by agricultural development and human activities. As a result, they are considered species of conservation concern, and efforts are being made to protect and restore their natural habitats.Overall, prairie chickens, prairie grouse, or prairie fowl are fascinating birds that have adapted to the unique grassland ecosystems of North America." + }, + { + "imageClass": "peacock", + "description": "A peacock is a large and colorful bird known for its extravagant plumage. The male peacock, called a peafowl, has a distinctive fan-shaped tail covered in shimmering, iridescent feathers. These feathers are typically blue or green in color with vibrant eye-like patterns. Peafowl are native to South Asia and are often found in parks, gardens, and zoos around the world due to their striking appearance. They are celebrated for their impressive displays, where the male spreads his tail feathers and dances to attract a mate. The female, known as a peahen, has less vibrant coloring and a smaller tail." + }, + { + "imageClass": "quail", + "description": "A quail is a small to medium-sized bird that belongs to the family Phasianidae. There are many different species of quail, but they are generally characterized by their round bodies, short beaks, and strong legs. Quails are known for their distinctive calls, which can range from gentle chirping to melodious whistling. They are found in various habitats worldwide, including grasslands, forests, and deserts. Some quail species are hunted for sport or raised for their eggs and meat, while others are kept as pets or for ornamental purposes." + }, + { + "imageClass": "partridge", + "description": "A partridge refers to a bird belonging to the genus Perdix, which includes different species found across Europe, Asia, and Africa. They are small to medium-sized birds known for their chunky build, short wings, and rounded bodies. Partridges typically have a reddish-brown plumage with intricate patterns, helping them blend into their natural surroundings. They are known for their distinctive call and are often sought after for their game meat. Additionally, partridges are associated with the holiday season, particularly the Christmas carol 'The Twelve Days of Christmas,' which includes the line 'a partridge in a pear tree.'" + }, + { + "imageClass": "African grey, African gray, Psittacus erithacus", + "description": "An African grey, also known as an African gray or by its scientific name Psittacus erithacus, is a species of parrot that originates from the rainforests of West and Central Africa. They are highly intelligent birds known for their exceptional talking and mimicking abilities. African greys are medium-sized with a predominantly grey plumage, a red tail, and a black beak. They are popular pets and are often sought after for their ability to learn and imitate human speech." + }, + { + "imageClass": "macaw", + "description": "A macaw is a type of colorful parrot native to the forests of Central and South America. They are known for their vibrant plumage, with feathers ranging from bright reds and blues to yellows and greens. Macaws are highly intelligent birds and renowned for their ability to mimic sounds and human speech. They are social creatures and often form strong bonds with their owners, making them popular pets. In the wild, macaws play an important role in seed dispersal as they feed on fruit and nuts, helping to maintain and regenerate the forests they inhabit." + }, + { + "imageClass": "sulphur-crested cockatoo, Kakatoe galerita, Cacatua galerita", + "description": "A sulphur-crested cockatoo (Kakatoe galerita or Cacatua galerita) is a large and majestic bird native to Australia and Indonesia. It is white in color with bright yellow feathers on its crest, hence the name 'sulphur-crested.' These cockatoos are known for their distinctive appearance, intelligence, and vocal abilities. They have a strong beak and powerful claws which they use to climb trees and manipulate objects. They are highly social birds and usually live in flocks in their natural habitat.Sulphur-crested cockatoos are highly adaptive and can be found in a variety of forest habitats, including woodlands, rainforests, and even urban areas. They have a loud screeching call and can mimic various sounds, including human speech.In captivity, these cockatoos require a lot of mental and physical stimulation, as well as social interaction. They have a long lifespan and can live for up to 70 years. Due to their popularity as pets, they are also sometimes kept in captivity, although this requires proper care and commitment from their owners." + }, + { + "imageClass": "lorikeet", + "description": "A lorikeet is a type of small to medium-sized parrot that belongs to the family Psittacidae. They are known for their vibrant plumage, with colors ranging from bright oranges and reds to blues and greens. Lorikeets are native to various regions of Australia, New Guinea, and nearby islands. They have a specialized brush-like tongue that allows them to feed mostly on nectar, pollen, and fruit juices, although they also eat some insects. These sociable and energetic birds are popular pets due to their striking appearance and playful nature." + }, + { + "imageClass": "coucal", + "description": "A coucal, also known as a crow pheasant, is a bird species belonging to the cuckoo family, Cuculidae. There are various species of coucals found in different parts of the world, particularly in Africa, Asia, and Australia. Coucals typically have a stout body, long tail, and a curved bill. They are known for their bold patterns and often have dark feathers with various shades of brown and black. Coucals are primarily ground-dwelling birds that inhabit forests, grasslands, and shrubby areas. They feed on a diet consisting mostly of insects, small reptiles, and occasionally on the eggs and nestlings of other birds. Coucals are known for their loud and distinctive calls, which are often heard during the breeding season." + }, + { + "imageClass": "bee eater", + "description": "A bee eater is a type of bird that belongs to the family Meropidae. They are known for their vibrant and colorful plumage. Bee eaters are typically slender birds with long, pointed wings and a distinctive downward-curved beak. They are called bee eaters because their diet primarily consists of bees and other flying insects, which they catch mid-air using their sharp beaks.Bee eaters are found in various parts of the world, including Europe, Asia, Africa, and Australia. They are highly skilled at hunting insects and are known for their agile flight, often seen quickly darting through the air to catch their prey. In addition to bees, they also feed on wasps, dragonflies, butterflies, and other flying insects.These birds are often observed perching on trees, branches, or electric wires, from where they spot their prey. They are known for their distinctive call and are appreciated by birdwatchers and nature enthusiasts for their striking appearance and acrobatic flying abilities." + }, + { + "imageClass": "hornbill", + "description": "A hornbill is a type of bird found predominantly in Africa, Asia, and Melanesia. These birds are characterized by their distinctive downward-curved beaks, often accompanied by a large casque, or spongy hollow structure, that sits on top of their bill. Hornbills are known for their vibrant plumage and unique appearance. They vary in size, with some species reaching up to 5 feet (1.5 meters) in length. Hornbills are omnivorous, feeding on fruits, insects, small animals, and even small birds. They are known for their strong flying abilities and are often associated with tropical forests and wooded habitats." + }, + { + "imageClass": "hummingbird", + "description": "A hummingbird is a small, colorful bird known for its ability to hover in mid-air by rapidly flapping its wings. They are found in the Americas, from Alaska to Tierra del Fuego. Hummingbirds are known for their unique flying abilities, such as flying backward, sideways, and even upside down. They have long, slender bills suited for sipping nectar from flowers, which is their primary source of food. Hummingbirds are admired for their beauty, agility, and the humming sound created by their fast wingbeats, which can reach up to 80 beats per second." + }, + { + "imageClass": "jacamar", + "description": "A jacamar is a type of bird found in Central and South America. They belong to the family Galbulidae and are known for their vibrant plumage, long bills, and arboreal lifestyle. Jacamars typically inhabit dense forests and feed on insects, catching them in mid-air with their sharp bills. They are known for their distinctive calls and beautiful coloration, making them a popular sight among birdwatchers and nature enthusiasts." + }, + { + "imageClass": "toucan", + "description": "A toucan is a type of tropical bird found in Central and South America. They are known for their distinctive and colorful appearance, often having bright feathers, a large beak, and striking patterns. Toucans are omnivorous and primarily feed on a variety of fruits, but they also eat insects, small reptiles, and eggs. They are known for their loud calls and are popular for their unique appearance, making them a well-known symbol of the tropical rainforests." + }, + { + "imageClass": "drake", + "description": "A drake is a term commonly used to refer to a male duck. It is the adult male of various duck species, usually recognized by its colorful plumage, distinctive bill, and larger size compared to the female ducks. Drakes often play a role in courtship displays, and they may have different plumage during breeding season to attract mates. Additionally, the term 'drake' is also occasionally used to refer to male dragons in fantasy literature and mythology." + }, + { + "imageClass": "red-breasted merganser, Mergus serrator", + "description": "A red-breasted merganser, Mergus serrator, is a species of diving duck found in North America and Europe. It is a medium-sized waterbird known for its distinctive appearance. The male red-breasted merganser has a dark green head with a shaggy crest, a white neck, and a reddish-brown breast. The wings are mostly gray, and the back is black. Females, on the other hand, have a reddish-brown head and neck with a gray body. Both sexes have long, slender, serrated bills, which are specialized for catching fish.Red-breasted mergansers are skilled divers and commonly inhabit coastal waters, estuaries, and large freshwater lakes. They primarily feed on fish but also consume insects, crustaceans, and other small aquatic creatures. During courtship displays, males engage in elaborate mating rituals, including head tossing, neck stretching, and chasing females.These waterbirds are known for their remarkable agility and speed in flight and underwater. They migrate over long distances between breeding and wintering grounds, forming large flocks during migration. The red-breasted merganser is a fascinating bird with its vibrant plumage and unique adaptations for life in aquatic environments." + }, + { + "imageClass": "goose", + "description": "A goose is a type of bird that belongs to the Anatidae family, which also includes ducks and swans. They are large-bodied birds with long necks and strong wings. Geese are known for their distinctive honking sound and are often found near bodies of water such as ponds, lakes, and rivers. They typically have webbed feet, enabling them to swim and paddle easily. Geese are social creatures and are often seen flying or walking in groups called flocks. They can be found in various parts of the world and are known for their migration patterns." + }, + { + "imageClass": "black swan, Cygnus atratus", + "description": "A black swan, scientifically known as Cygnus atratus, is a large waterbird native to Australia. It is famous for its distinctive black feathers and elegant appearance. The black swan is one of the few swan species that is entirely black, with a red beak and prominent red eyes. It is also known for its long neck, which it gracefully arches while swimming. The black swan is considered an iconic symbol in Australian culture and is often associated with beauty and grace." + }, + { + "imageClass": "tusker", + "description": "A 'tusker' typically refers to an animal with large, prominent tusks. The term is commonly used to describe elephants - specifically, male elephants that possess long, curved tusks. These tusks are elongated incisor teeth that extend outside the mouth and are often used by elephants for various tasks such as digging, lifting, or self-defense. However, it's worth noting that 'tusker' can apply to other animals as well, such as certain species of wild boars or walruses, which also possess prominent tusks." + }, + { + "imageClass": "echidna, spiny anteater, anteater", + "description": "An echidna, spiny anteater, or simply an anteater, is a unique mammal native to Australia and New Guinea. It belongs to a group of egg-laying mammals known as monotremes. Echidnas are characterized by their spiky, coarse hair and long, slender snouts. They have a specialized tongue that they use to capture and feed on ants, termites, and other small invertebrates, which form the core of their diet.Echidnas have a cylindrical body with short limbs and powerful claws that are efficient for digging. They are covered in sharp spines, similar to a porcupine, which act as a protective defense mechanism against predators. Echidnas are also capable of curling up into a ball when they feel threatened, making them difficult to attack.These intriguing creatures have a pouch-like structure on their belly where they lay eggs. After a short period of incubation, the eggs hatch, and the young echidnas, known as puggles, are nurtured in the pouch until they are ready to venture out on their own.Echidnas are generally solitary and nocturnal creatures, preferring to spend their days resting in sheltered areas such as hollow logs or burrows. They have a moderate lifespan, extending up to 50 years in the wild.Overall, echidnas are fascinating animals that have captured the curiosity of many due to their peculiar appearance, unique reproductive behavior, and specialized diet." + }, + { + "imageClass": "platypus, duckbill, duckbilled platypus, duck-billed platypus, Ornithorhynchus anatinus", + "description": "A platypus, also known as a duckbill, duckbilled platypus, duck-billed platypus, or by its scientific name Ornithorhynchus anatinus, is a unique and fascinating semi-aquatic mammal native to Australia. It is known for its peculiar appearance, combining features of various animals.The platypus has a beak resembling that of a duck, which is used for sensing its environment underwater and also as a tool for catching food. It has a furry body, webbed feet, and a flat tail, making it well-adapted for its aquatic lifestyle. The fur of a platypus is waterproof and keeps the animal warm even in cold water.One of the most interesting aspects of the platypus is its ability to lay eggs, making it one of the few mammals that do so. Females have a special pouch where they incubate their eggs until they hatch. The platypus is also venomous, possessing venomous spurs on its hind legs, primarily used for defense.Platypuses are primarily nocturnal and feed on a diet consisting mainly of aquatic invertebrates, such as insects, worms, and small crustaceans. They inhabit freshwater streams, rivers, and lakes in eastern Australia and are known for their elusive nature, making them quite rare to observe in the wild.Overall, the platypus is considered a remarkable and iconic creature due to its peculiar combination of characteristics and its unique place in the animal kingdom." + }, + { + "imageClass": "wallaby, brush kangaroo", + "description": "A wallaby, brush kangaroo, or simply brush wallaby, refers to a specific species of marsupial native to Australia. Scientifically known as Macropus irma, it belongs to the kangaroo family (Macropodidae). Brush wallabies, like other kangaroos, are known for their unique method of locomotion called hopping. These small to medium-sized marsupials are typically found in the coastal regions of northeastern Queensland, Australia. They thrive in various habitats, including dense rainforests, shrublands, and woodlands.Brush wallabies have distinct physical features. They possess a compact and robust body, powerful hind legs that are adapted for hopping, and a long, muscular tail that aids in balancing. They also have a thick coat of fur, usually reddish-brown or gray in color, providing camouflage in their natural environment.As herbivores, brush wallabies primarily feed on a wide variety of vegetation including grasses, leaves, herbs, and shrubs. They have specialized teeth and a unique digestive system to efficiently process their plant-based diet.These wallabies are predominantly crepuscular or nocturnal, being most active during dawn and dusk. They have a solitary nature, although they may form small groups on occasion. Brush wallabies communicate using various vocalizations, as well as scent marking with their specialized glands.The conservation status of brush wallabies is currently listed as least concern by the International Union for Conservation of Nature (IUCN). However, they may face threats such as habitat loss and fragmentation due to human activities." + }, + { + "imageClass": "koala, koala bear, kangaroo bear, native bear, Phascolarctos cinereus", + "description": "A koala, also known as a koala bear, kangaroo bear, native bear, or by its scientific name Phascolarctos cinereus, is a small arboreal marsupial native to Australia. It is not a bear but rather a unique species. Koalas are known for their fluffy appearance, round face, large ears, and their preference for feeding on eucalyptus leaves. They are found in eucalyptus forests and woodlands along the eastern coast of Australia. Koalas are primarily herbivorous and spend most of their time resting and sleeping in trees. They are iconic animals of Australia and are protected due to their vulnerable status." + }, + { + "imageClass": "wombat", + "description": "A wombat is a small to medium-sized marsupial native to Australia. They have a sturdy and compact body, with short legs and a large head. Wombats are known for their round, barrel-like shape and are typically around 1 meter (3.3 feet) in length. They have strong claws and sharp teeth, which they use for digging burrows, their primary form of shelter. Wombats are herbivores, feeding mainly on grasses, roots, and bark. They are known for their slow and waddling gait, but they can also run at high speeds if threatened. Wombats are adorable creatures with a unique appearance and are considered a national symbol of Australia." + }, + { + "imageClass": "jelly fish", + "description": "A jellyfish is a type of marine animal that belongs to the phylum Cnidaria. While they are commonly referred to as jellyfish, they are not actually fish, but invertebrates. Jellyfish have a gelatinous and often transparent bell-shaped body, with long tentacles hanging down from their underside. These tentacles contain specialized cells called cnidocytes, which are armed with stinging structures called nematocysts used for feeding and defense. Jellyfish come in a variety of shapes, sizes, and colors, and can be found in oceans, seas, and even some freshwater bodies around the world." + }, + { + "imageClass": "sea anemone, anemone", + "description": "A sea anemone, specifically known as the anemone, is a marine creature belonging to the phylum Cnidaria. It is a predatory animal that typically lives attached to rocky surfaces or coral reefs in the ocean. Sea anemones have a cylindrical body with a central mouth surrounded by tentacles, which they use to capture and immobilize their prey. These tentacles are typically adorned with specialized cells called cnidocytes, which contain nematocysts—small harpoon-like structures that inject venom into their prey to paralyze and immobilize them. Sea anemones come in a variety of shapes, sizes, and colors, often displaying beautiful patterns and vibrant hues. They are fascinating and diverse organisms that play a crucial role in marine ecosystems." + }, + { + "imageClass": "brain coral", + "description": "A brain coral is a type of coral that belongs to the family Faviidae. It is called brain coral due to its intricate, maze-like pattern on its surface, which resembles the folds of a brain. Brain corals are characterized by their large, dome-shaped colonies that can reach several feet in diameter and height. They are commonly found in tropical coral reefs and are known for their slow growth rate, often only growing a few centimeters each year. Brain corals play a crucial role in reef ecosystems by providing habitats and shelter for a variety of marine organisms." + }, + { + "imageClass": "flatworm, platyhelminth", + "description": "A flatworm, specifically a platyhelminth, is a type of worm that belongs to the phylum Platyhelminthes. They are characterized by their flat and elongated body shape, which differentiates them from other roundworms. Flatworms have a simple body structure with no body cavity or specialized circulatory or respiratory systems. They vary in size and can range from microscopic to several meters long.There are different types of flatworms, including both free-living and parasitic species. Some free-living flatworms are found in freshwater or marine environments and play important roles in their ecosystems. However, certain parasitic flatworms can infect humans and other animals, causing diseases such as schistosomiasis and tapeworm infections.Flatworms have a unique reproductive system that can involve sexual or asexual reproduction. They possess an impressive regenerative ability and can regenerate their entire body from just a small piece. This remarkable capability has made them a topic of interest in regenerative medicine research.Overall, flatworms are fascinating organisms that hold significant biological and medical importance." + }, + { + "imageClass": "nematode, nematode worm, roundworm", + "description": "A nematode, also known as a nematode worm or roundworm, is a type of non-segmented worm that belongs to the phylum Nematoda. These worms are incredibly diverse and can be found in various environments worldwide, including terrestrial, freshwater, and marine habitats. Nematodes are typically microscopic in size, although some species can grow up to several meters long. They have a cylindrical body with a tough, flexible outer covering called a cuticle. A roundworm's body is elongated and tapered at both ends.Nematodes exist in a wide range of ecological roles, fulfilling both beneficial and parasitic functions. Some nematodes are important decomposers, breaking down organic matter and recycling nutrients in ecosystems. They can also be used in biological control of pests, as certain species feed on insects and other organisms harmful to plants.However, some nematodes are parasitic and can be pathogenic to humans, animals, and plants. These parasitic species can cause diseases in their hosts, such as intestinal infections or damage to crops. Despite their small size, nematodes have a significant impact on ecosystems and human activities." + }, + { + "imageClass": "conch", + "description": "A conch is a type of marine mollusk that belongs to the family of large sea snails. It typically has a spiral-shaped shell with a pointed apex and a series of ridges or knobs on its surface. Conch shells are often prized for their beauty and are collected as decorative items. In some cultures, conch shells hold symbolic or religious significance and are used in various rituals or as musical instruments. Additionally, the term 'conch' can also refer to the animal itself, as well as the meat of the conch, which is edible and often used in cuisine in certain regions." + }, + { + "imageClass": "snail", + "description": "A snail is a small, soft-bodied animal belonging to the class Gastropoda. They are commonly found in gardens, forests, and other wet habitats. Snails have a distinctive spiral-shaped shell on their back that serves as their protective home. They move by gliding on a muscular foot and produce a trail of mucus as they travel. Snails play important roles in ecosystems as decomposers, scavengers, and food sources for other animals." + }, + { + "imageClass": "slug", + "description": "In the context of web development and content management systems (CMS), a slug refers to a user-friendly, URL-readable string that is used to identify and address a specific web page or resource. Slugs are usually derived from the title or name of the content, but with spaces and special characters replaced by dashes or underscores, and all lowercase letters.For example, if you have an article titled '10 Tips for Healthy Eating,' the slug associated with that article might be '10-tips-healthy-eating' or '10_tips_healthy_eating.' This slug would then be appended to the base URL of the website to create a complete and SEO-friendly URL, like 'example.com/articles/10-tips-healthy-eating.'Slugs are essential for creating human-readable URLs that are easy to understand and remember, improving search engine optimization (SEO) and the overall user experience on a website." + }, + { + "imageClass": "sea slug, nudibranch", + "description": "A sea slug, nudibranch is a type of marine gastropod mollusk that belongs to the taxonomic subclass Nudibranchia. Nudibranchs are renowned for their vibrant colors, intricate patterns, and unique shapes. Unlike their land-dwelling relatives, nudibranchs lack a protective shell, which is why they are often referred to as 'naked gills' or nudibranchs. These creatures can be found in oceans worldwide, from shallow coastal waters to deep sea ecosystems.Nudibranchs are highly diverse and come in various sizes, ranging from a few millimeters to a foot in length. They showcase a fascinating array of colors and patterns, which serve as a defense mechanism by warning predators of their toxicity or inedibility. Some species even have the ability to camouflage, mimicking various types of marine plants or animals.These creatures are hermaphrodites, possessing both male and female reproductive organs. When mating, they exchange sperm, which allows each individual to fertilize their eggs. After laying eggs, nudibranchs typically undergo a larval stage before metamorphosing into adults.Nudibranchs are considered a favorite subject for underwater photographers and divers due to their incredible beauty and variety. However, they are delicate creatures that should be observed but never collected or disturbed in their natural habitat." + }, + { + "imageClass": "chiton, coat-of-mail shell, sea cradle, polyplacophore", + "description": "A 'chiton' (also known as a 'coat-of-mail shell', 'sea cradle', or 'polyplacophore') is a type of marine mollusk that belongs to the class Polyplacophora. These creatures are characterized by their oval-shaped bodies that are covered by a series of eight overlapping plates or valves. The plates are composed of a hard mineral called aragonite, which gives them a rough, armor-like appearance.Chitons are found in various marine environments worldwide, from rocky intertidal zones to deep-sea habitats. They use their muscular foot to cling onto rocks and other substrates, where they graze on algae and detritus using a specialized feeding structure called a radula.The name 'chiton' is derived from the Greek word for 'tunic' or 'coat', referencing the protective nature of their shell-like plates. While they may resemble small armored creatures, chitons are actually quite gentle and fascinating inhabitants of the ocean." + }, + { + "imageClass": "chambered nautilus, pearly nautilus, nautilus", + "description": "A chambered nautilus, pearly nautilus, or simply nautilus, refers to a marine mollusk that belongs to the cephalopod family Nautilidae. It is the only surviving species of nautiluses, a group of cephalopods that were once much more diverse. Nautiluses have a distinct external shell that is coiled and divided into a series of chambers. These chambers provide buoyancy and serve as a dwelling place for the nautilus. The animal lives in the largest and newest chamber, while the older chambers are filled with gas to help it float. Nautiluses are often known for their beautiful pearly shells, which are highly prized by collectors. They inhabit the deep waters of the Pacific Ocean and primarily feed on small fish and crustaceans. Nautiluses are considered living fossils, as they have retained many characteristics that appear similar to ancestors from millions of years ago." + }, + { + "imageClass": "Dungeness crab, Cancer magister", + "description": "A Dungeness crab, scientifically known as Cancer magister, is a type of crab that is found along the west coast of North America, primarily in the Pacific Ocean. It is named after the Dungeness Spit in Washington state.Dungeness crabs are known for their delicious and sweet meat, making them one of the most popular and highly prized crab species for culinary purposes. The shell of a Dungeness crab is typically brownish in color, and it has a wide, oval-shaped body that can grow up to 10 inches in width.These crabs inhabit sandy or muddy areas, like eelgrass beds or rocky reefs, and are usually found at depths ranging from the intertidal zone to about 200 feet. They are scavengers, feeding on a variety of organisms such as clams, worms, small fish, and other crabs.Due to their economic and culinary importance, Dungeness crabs are commercially harvested and are also a popular target for recreational crabbers. In many coastal regions, they are a seasonal seafood delicacy and are often enjoyed steamed, boiled, or in crab cakes." + }, + { + "imageClass": "rock crab, Cancer irroratus", + "description": "A rock crab, known scientifically as Cancer irroratus, is a species of crab found in the western Atlantic Ocean. It is commonly found along the eastern coast of North America, from Newfoundland to South Carolina. Rock crabs are characterized by their hard shells, which are typically brown or greenish-brown in color, blending well with their rocky habitats. They have a spiky carapace and powerful pincers, which they use for defense and capturing prey. Rock crabs primarily feed on small invertebrates, mollusks, and algae. They are commercially harvested for their meat, which is considered a delicacy in some regions." + }, + { + "imageClass": "fiddler crab", + "description": "A fiddler crab is a small species of crab that belongs to the family Ocypodidae. These crabs are commonly found in saltwater or brackish environments, such as mangroves, mudflats, and estuaries. They are named 'fiddler crabs' due to the male crab's enlarged claw, which resembles a fiddle or violin. This one claw is much larger than the other and is used for various purposes including courtship displays and defense. Fiddler crabs are mostly herbivorous, feeding on algae, detritus, and microorganisms found in the sand or mud. They are known for their interesting behaviors, including waving their small claw in a repetitive motion to attract mates." + }, + { + "imageClass": "king crab, Alaska crab, Alaskan king crab, Alaska king crab, Paralithodes camtschatica", + "description": "A 'king crab', also known as 'Alaska crab', 'Alaskan king crab', 'Alaska king crab', or by its scientific name 'Paralithodes camtschatica', is a type of crab found in the cold waters of the Pacific Ocean, particularly in the Bering Sea near Alaska. It is highly prized for its large size and delicious meat, making it a popular seafood delicacy.King crabs are known for their impressive size, with the males reaching an average leg span of around 1.8 meters (6 feet) and weighing up to 10 kilograms (22 pounds). They have a spiky reddish-brown shell with long, spindly legs, making them easily distinguishable from other types of crabs.The meat of king crab is considered a gourmet delicacy due to its tender and sweet flavor. It is often served as whole legs or as clusters of legs with the shell cracked open, allowing easy access to the succulent meat within. King crab is commonly prepared through boiling, steaming, grilling, or baking, and it is enjoyed worldwide as a luxurious seafood dish.The commercial fishing season for king crab in Alaska is short, typically lasting only a few months during the winter when the crabs have migrated to shallower depths for mating. The high demand and limited supply contribute to the exclusivity and high prices associated with Alaskan king crab." + }, + { + "imageClass": "American lobster, Northern lobster, Maine lobster, Homarus americanus", + "description": "The American lobster, also known as the Northern lobster, Maine lobster, or by its scientific name Homarus americanus, is a species of lobster found along the Atlantic coast of North America. It is highly prized for its delicious meat and is considered a delicacy in many cuisines. It is typically found in the waters off the coast of New England, particularly in the state of Maine, which is known for its lobster industry. The American lobster is characterized by its large size, with adults often reaching lengths of 25-64 centimeters (10-25 inches) and weighing up to 4.5 kilograms (10 pounds) or more. It has a hard, spiny exoskeleton and a pair of large claws, one of which is larger and more powerful than the other. Lobsters are commonly harvested for food, and their popularity has led to commercial fishing and aquaculture operations dedicated to their cultivation." + }, + { + "imageClass": "spiny lobster, langouste, rock lobster, crawfish, crayfish, sea crawfish", + "description": "A 'spiny lobster,' also known as a 'langouste,' 'rock lobster,' 'crawfish,' 'crayfish,' or 'sea crawfish,' refers to a type of crustacean found in oceans around the world. It is known for its long antennae and a hard exoskeleton. Spiny lobsters belong to the family Palinuridae and are closely related to true lobsters, but they do not have large claws like their relatives.These lobsters typically have a distinct spiny appearance, a pair of long antennae, and a segmented body. They vary in color, ranging from reddish-brown to greenish-brown, depending on the species and their habitat. Spiny lobsters dig burrows in the ocean floor, using their strong tails to swiftly propel themselves backward.Spiny lobsters are highly valued as seafood and are known for their succulent meat. They are popular in various cuisines around the world and are often grilled, steamed, or prepared in dishes such as lobster bisque or lobster rolls. They are caught both commercially and recreationally, contributing to their significance in the fishing industry." + }, + { + "imageClass": "crayfish, crawfish, crawdad, crawdaddy", + "description": "A crayfish, crawfish, crawdad, or crawdaddy refers to a freshwater crustacean that resembles a small lobster. They belong to the same family as lobsters, crabs, and shrimp. These creatures have a segmented body, a hard exoskeleton, and a pair of pincers called chelae. They live in freshwater bodies such as rivers, streams, and lakes, often hiding in burrows or under rocks.Crayfish are known for their distinctive walking pattern, with one side of their legs moving at a time. They feed on a variety of organisms, including plants, small invertebrates, and occasionally, decaying matter. They are an important part of aquatic ecosystems, providing food for larger predators and aiding in nutrient cycling.Crayfish are often enjoyed as a culinary delicacy in many parts of the world. They are often boiled or steamed and eaten whole, or their tail meat is extracted and used in various dishes such as boils, stews, or even in pasta recipes." + }, + { + "imageClass": "hermit crab", + "description": "A hermit crab is a type of crustacean that belongs to the superfamily Paguroidea. Unlike most crabs, hermit crabs do not have a hard exoskeleton covering their entire body. Instead, they have a soft, curved abdomen that is protected by occupying discarded empty shells of snails or other marine mollusks.The name 'hermit' refers to their solitary nature, as these crabs are often found living alone in these stolen shells. As they grow, they search for larger shells to accommodate their increasing size. They can be found in various marine habitats, typically in shallow waters and often near the shoreline.Hermit crabs are known for their unique behavior of switching shells when they find a more suitable one. This helps them protect their vulnerable abdomen and allows them to adapt to their changing size and environment. They are also known to be scavengers, feeding on both plant and animal matter that they find on the ocean floor.Hermit crabs have become popular pets as well, with special tanks and shells provided for them to mimic their natural habitat. They are interesting creatures to observe and care for due to their peculiar shell-swapping behavior." + }, + { + "imageClass": "isopod", + "description": "An isopod is a type of crustacean that belongs to the order Isopoda. They are commonly referred to as woodlice, pill bugs, or roly-polies. Isopods are found in various environments, including marine, freshwater, and terrestrial habitats. They typically have flattened bodies with numerous segments, each bearing a pair of legs. Isopods are known for their ability to roll into a ball as a defensive mechanism, which gives them their colloquial name of roly-polies. They feed on decaying organic matter and play important roles in nutrient cycling in ecosystems." + }, + { + "imageClass": "white stork, Ciconia ciconia", + "description": "The white stork, scientifically known as Ciconia ciconia, is a large bird belonging to the stork family, Ciconiidae. It is known for its distinctive appearance, with a white plumage, long neck, and long legs. White storks have a wingspan of around 155-195 cm (61-77 inches) and can reach a height of up to 100 cm (39 inches). They are migratory birds, known for their impressive long-distance journeys.White storks are native to Europe, Asia, and North Africa, and they primarily inhabit open habitats such as wetlands, grasslands, and agricultural areas. They are commonly associated with nesting on chimneys, rooftops, and man-made structures.These birds feed mainly on small vertebrates, including frogs, insects, small mammals, and occasionally fish. They are known for their impressive hunting ability, using their sharp beak to catch prey.White storks have a significant cultural importance in many regions, often considered as a symbol of fertility, good luck, and birth. They are also known for their unique nesting behavior, creating large nests made of sticks where they lay their eggs and raise their young.In recent times, the white stork population has faced some decline due to habitat loss, changes in agricultural practices, and other factors. However, they are still found across their native range and are a well-recognized and beloved species." + }, + { + "imageClass": "black stork, Ciconia nigra", + "description": "A black stork, scientifically known as Ciconia nigra, is a large bird species belonging to the stork family, Ciconiidae. It is characterized by its mostly black plumage, with a white belly, long red legs, and a long, pointed bill. The black stork has a wingspan of about two meters (six and a half feet) and can reach a height of around one meter (three feet).Unlike some other stork species, black storks are typically solitary birds and often choose to nest in wooded habitats near rivers, lakes, or swamps. They are distributed across parts of Europe, Asia, and North Africa, and are known for their migratory behavior, undertaking long-distance journeys during the winter months.Black storks primarily feed on a diet of small fish, amphibians, reptiles, and insects. They are skilled hunters, using their sharp bill to catch prey and their long legs to wade through shallow water. During courtship displays, they may engage in various rituals, such as bill-clattering and wing-flapping.Although black stork populations have faced some decline and habitat loss, efforts are being made to conserve and protect these magnificent birds. Their elusive nature and striking appearance make them highly sought after by bird-watchers and nature enthusiasts." + }, + { + "imageClass": "spoonbill", + "description": "A spoonbill is a type of bird that belongs to the family Threskiornithidae. These birds are known for their distinctive spoon-shaped bills, which are long and flat with a rounded tip. Spoonbills have a wide distribution across different parts of the world, including Africa, Asia, Europe, and the Americas. They are typically wading birds that reside in marshes, swamps, wetlands, and coastal areas. Spoonbills feed by wading through shallow water, sweeping their bills from side to side to catch small aquatic animals such as fish, crustaceans, insects, and amphibians. They have beautiful plumage, often featuring shades of white, pink, and orange, depending on the species. Some well-known species of spoonbills include the Roseate Spoonbill, Eurasian Spoonbill, African Spoonbill, and Black-faced Spoonbill." + } + ] +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index f2140a2..730bcb1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,6 @@ "@tensorflow-models/mobilenet": "^2.1.1", "@tensorflow/tfjs": "^4.13.0", "next": "^14.0.3", - "openai": "^4.19.1", "react": "^18", "react-dom": "^18" }, @@ -28,6 +27,7 @@ "eslint-config-prettier": "^9.0.0", "eslint-plugin-next-on-pages": "^1.8.2", "eslint-plugin-prettier": "^5.0.1", + "openai": "^4.24.1", "prettier": "^3.1.1", "sass": "^1.69.6", "sharp": "^0.32.6", @@ -3533,6 +3533,7 @@ "version": "3.0.0", "resolved": "https://registry.npmjs.org/abort-controller/-/abort-controller-3.0.0.tgz", "integrity": "sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==", + "dev": true, "dependencies": { "event-target-shim": "^5.0.0" }, @@ -3599,6 +3600,7 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", + "dev": true, "dependencies": { "humanize-ms": "^1.2.1" }, @@ -3967,7 +3969,8 @@ "node_modules/base-64": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", - "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==" + "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==", + "dev": true }, "node_modules/base64-js": { "version": "1.5.1", @@ -4239,6 +4242,7 @@ "version": "0.0.2", "resolved": "https://registry.npmjs.org/charenc/-/charenc-0.0.2.tgz", "integrity": "sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==", + "dev": true, "engines": { "node": "*" } @@ -4665,6 +4669,7 @@ "version": "0.0.2", "resolved": "https://registry.npmjs.org/crypt/-/crypt-0.0.2.tgz", "integrity": "sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==", + "dev": true, "engines": { "node": "*" } @@ -4934,6 +4939,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/digest-fetch/-/digest-fetch-1.3.0.tgz", "integrity": "sha512-CGJuv6iKNM7QyZlM2T3sPAdZWd/p9zQiRNS9G+9COUCwzWFTs0Xp8NF5iePx7wtvhDykReiRRrSeNb4oMmB8lA==", + "dev": true, "dependencies": { "base-64": "^0.1.0", "md5": "^2.3.0" @@ -6162,6 +6168,7 @@ "version": "5.0.1", "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==", + "dev": true, "engines": { "node": ">=6" } @@ -6601,12 +6608,14 @@ "node_modules/form-data-encoder": { "version": "1.7.2", "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.7.2.tgz", - "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==" + "integrity": "sha512-qfqtYan3rxrnCk1VYaA4H+Ms9xdpPqvLZa6xmMgFvhO32x7/3J/ExcTd6qpxM0vH2GdMI+poehyBZvqfMTto8A==", + "dev": true }, "node_modules/formdata-node": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz", "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==", + "dev": true, "dependencies": { "node-domexception": "1.0.0", "web-streams-polyfill": "4.0.0-beta.3" @@ -6619,6 +6628,7 @@ "version": "4.0.0-beta.3", "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz", "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==", + "dev": true, "engines": { "node": ">= 14" } @@ -7220,6 +7230,7 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "dev": true, "dependencies": { "ms": "^2.0.0" } @@ -7550,7 +7561,8 @@ "node_modules/is-buffer": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true }, "node_modules/is-callable": { "version": "1.2.7", @@ -8501,6 +8513,7 @@ "version": "2.3.0", "resolved": "https://registry.npmjs.org/md5/-/md5-2.3.0.tgz", "integrity": "sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==", + "dev": true, "dependencies": { "charenc": "0.0.2", "crypt": "0.0.2", @@ -8859,7 +8872,8 @@ "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true }, "node_modules/mustache": { "version": "4.2.0", @@ -8991,6 +9005,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", + "dev": true, "funding": [ { "type": "github", @@ -9272,6 +9287,7 @@ "version": "4.24.1", "resolved": "https://registry.npmjs.org/openai/-/openai-4.24.1.tgz", "integrity": "sha512-ezm/O3eiZMnyBqirUnWm9N6INJU1WhNtz+nK/Zj/2oyKvRz9pgpViDxa5wYOtyGYXPn1sIKBV0I/S4BDhtydqw==", + "dev": true, "dependencies": { "@types/node": "^18.11.18", "@types/node-fetch": "^2.6.4", @@ -9291,6 +9307,7 @@ "version": "18.19.4", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.4.tgz", "integrity": "sha512-xNzlUhzoHotIsnFoXmJB+yWmBvFZgKCI9TtPIEdYIMM1KWfwuY8zh7wvc1u1OAXlC7dlf6mZVx/s+Y5KfFz19A==", + "dev": true, "dependencies": { "undici-types": "~5.26.4" } @@ -12338,6 +12355,7 @@ "version": "3.2.1", "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", + "dev": true, "engines": { "node": ">= 8" } diff --git a/package.json b/package.json index bf2f9b3..364af45 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,6 @@ "@tensorflow-models/mobilenet": "^2.1.1", "@tensorflow/tfjs": "^4.13.0", "next": "^14.0.3", - "openai": "^4.19.1", "react": "^18", "react-dom": "^18" }, @@ -37,6 +36,7 @@ "eslint-config-prettier": "^9.0.0", "eslint-plugin-next-on-pages": "^1.8.2", "eslint-plugin-prettier": "^5.0.1", + "openai": "^4.24.1", "prettier": "^3.1.1", "sass": "^1.69.6", "sharp": "^0.32.6", diff --git a/script/cloudflare/add-cloudflare-kv-value.sh b/script/cloudflare/add-cloudflare-kv-value.sh new file mode 100644 index 0000000..e31ead2 --- /dev/null +++ b/script/cloudflare/add-cloudflare-kv-value.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env bash + +set -e + +CLOUDFLARE_KV_BINDING_ID=$1 +CLOUDFLARE_KV_KEY=$2 +CLOUDFLARE_KV_VALUE=$3 + +function check_requirements() { + if [[ -z "$(command -v node)" ]]; then + echo "Please install 'node' program before running this script" + exit 1 + elif [[ -z "$CLOUDFLARE_ACCOUNT_ID" ]]; then + echo "Please ensure environment variable 'CLOUDFLARE_ACCOUNT_ID' exists before running this script" + exit 1 + elif [[ -z "$CLOUDFLARE_API_TOKEN" ]]; then + echo "Please ensure environment variable 'CLOUDFLARE_API_TOKEN' exists before running this script" + exit 1 + elif [[ -z "$CLOUDFLARE_KV_BINDING_ID" ]]; then + echo "Arg 1 for script 'CLOUDFLARE_KV_BINDING_ID' was not given..." + exit 1 + elif [[ -z "$CLOUDFLARE_KV_KEY" ]]; then + echo "Arg 2 for script 'CLOUDFLARE_KV_KEY' was not given..." + exit 1 + elif [[ -z "$CLOUDFLARE_KV_VALUE" ]]; then + echo "Arg 3 for script 'CLOUDFLARE_KV_VALUE' was not given..." + exit 1 + fi +} + +function main() { + check_requirements + + if ! ./node_modules/.bin/wrangler kv:key get "$CLOUDFLARE_KV_KEY" --namespace-id="$CLOUDFLARE_KV_BINDING_ID" > /dev/null 2>&1; then + echo "Adding Cloudflare KV key '$CLOUDFLARE_KV_KEY' and value '$CLOUDFLARE_KV_VALUE' to KV '$CLOUDFLARE_KV_NAME'..." + ./node_modules/.bin/wrangler kv:key put "$CLOUDFLARE_KV_KEY" "$CLOUDFLARE_KV_VALUE" --namespace-id="$CLOUDFLARE_KV_BINDING_ID" + fi +} + +main diff --git a/script/cloudflare/cloudflare-page-deploy.sh b/script/cloudflare/cloudflare-page-deploy.sh index 091456e..247fba8 100755 --- a/script/cloudflare/cloudflare-page-deploy.sh +++ b/script/cloudflare/cloudflare-page-deploy.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/script/cloudflare/ensure-cloudflare-kv-exists.sh b/script/cloudflare/ensure-cloudflare-kv-exists.sh index 78e090d..ef37997 100755 --- a/script/cloudflare/ensure-cloudflare-kv-exists.sh +++ b/script/cloudflare/ensure-cloudflare-kv-exists.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/script/cloudflare/ensure-cloudflare-pages-exists.sh b/script/cloudflare/ensure-cloudflare-pages-exists.sh index 02813c4..7572f50 100755 --- a/script/cloudflare/ensure-cloudflare-pages-exists.sh +++ b/script/cloudflare/ensure-cloudflare-pages-exists.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/script/cloudflare/ensure-cloudflare-secret-exists.sh b/script/cloudflare/ensure-cloudflare-secret-exists.sh index 49f82d1..fbd6ecb 100755 --- a/script/cloudflare/ensure-cloudflare-secret-exists.sh +++ b/script/cloudflare/ensure-cloudflare-secret-exists.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash set -e diff --git a/script/image-classes.json b/script/image-classes.json new file mode 100644 index 0000000..bad4390 --- /dev/null +++ b/script/image-classes.json @@ -0,0 +1,1002 @@ +[ + "tench, Tinca tinca", + "goldfish, Carassius auratus", + "great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias", + "tiger shark, Galeocerdo cuvieri", + "hammerhead, hammerhead shark", + "electric ray, crampfish, numbfish, torpedo", + "stingray", + "cock", + "hen", + "ostrich, Struthio camelus", + "brambling, Fringilla montifringilla", + "goldfinch, Carduelis carduelis", + "house finch, linnet, Carpodacus mexicanus", + "junco, snowbird", + "indigo bunting, indigo finch, indigo bird, Passerina cyanea", + "robin, American robin, Turdus migratorius", + "bulbul", + "jay", + "magpie", + "chickadee", + "water ouzel, dipper", + "kite", + "bald eagle, American eagle, Haliaeetus leucocephalus", + "vulture", + "great grey owl, great gray owl, Strix nebulosa", + "European fire salamander, Salamandra salamandra", + "common newt, Triturus vulgaris", + "eft", + "spotted salamander, Ambystoma maculatum", + "axolotl, mud puppy, Ambystoma mexicanum", + "bullfrog, Rana catesbeiana", + "tree frog, tree-frog", + "tailed frog, bell toad, ribbed toad, tailed toad, Ascaphus trui", + "loggerhead, loggerhead turtle, Caretta caretta", + "leatherback turtle, leatherback, leathery turtle, Dermochelys coriacea", + "mud turtle", + "terrapin", + "box turtle, box tortoise", + "banded gecko", + "common iguana, iguana, Iguana iguana", + "American chameleon, anole, Anolis carolinensis", + "whiptail, whiptail lizard", + "agama", + "frilled lizard, Chlamydosaurus kingi", + "alligator lizard", + "Gila monster, Heloderma suspectum", + "green lizard, Lacerta viridis", + "African chameleon, Chamaeleo chamaeleon", + "Komodo dragon, Komodo lizard, dragon lizard, giant lizard, Varanus komodoensis", + "African crocodile, Nile crocodile, Crocodylus niloticus", + "American alligator, Alligator mississipiensis", + "triceratops", + "thunder snake, worm snake, Carphophis amoenus", + "ringneck snake, ring-necked snake, ring snake", + "hognose snake, puff adder, sand viper", + "green snake, grass snake", + "king snake, kingsnake", + "garter snake, grass snake", + "water snake", + "vine snake", + "night snake, Hypsiglena torquata", + "boa constrictor, Constrictor constrictor", + "rock python, rock snake, Python sebae", + "Indian cobra, Naja naja", + "green mamba", + "sea snake", + "horned viper, cerastes, sand viper, horned asp, Cerastes cornutus", + "diamondback, diamondback rattlesnake, Crotalus adamanteus", + "sidewinder, horned rattlesnake, Crotalus cerastes", + "trilobite", + "harvestman, daddy longlegs, Phalangium opilio", + "scorpion", + "black and gold garden spider, Argiope aurantia", + "barn spider, Araneus cavaticus", + "garden spider, Aranea diademata", + "black widow, Latrodectus mactans", + "tarantula", + "wolf spider, hunting spider", + "tick", + "centipede", + "black grouse", + "ptarmigan", + "ruffed grouse, partridge, Bonasa umbellus", + "prairie chicken, prairie grouse, prairie fowl", + "peacock", + "quail", + "partridge", + "African grey, African gray, Psittacus erithacus", + "macaw", + "sulphur-crested cockatoo, Kakatoe galerita, Cacatua galerita", + "lorikeet", + "coucal", + "bee eater", + "hornbill", + "hummingbird", + "jacamar", + "toucan", + "drake", + "red-breasted merganser, Mergus serrator", + "goose", + "black swan, Cygnus atratus", + "tusker", + "echidna, spiny anteater, anteater", + "platypus, duckbill, duckbilled platypus, duck-billed platypus, Ornithorhynchus anatinus", + "wallaby, brush kangaroo", + "koala, koala bear, kangaroo bear, native bear, Phascolarctos cinereus", + "wombat", + "jelly fish", + "sea anemone, anemone", + "brain coral", + "flatworm, platyhelminth", + "nematode, nematode worm, roundworm", + "conch", + "snail", + "slug", + "sea slug, nudibranch", + "chiton, coat-of-mail shell, sea cradle, polyplacophore", + "chambered nautilus, pearly nautilus, nautilus", + "Dungeness crab, Cancer magister", + "rock crab, Cancer irroratus", + "fiddler crab", + "king crab, Alaska crab, Alaskan king crab, Alaska king crab, Paralithodes camtschatica", + "American lobster, Northern lobster, Maine lobster, Homarus americanus", + "spiny lobster, langouste, rock lobster, crawfish, crayfish, sea crawfish", + "crayfish, crawfish, crawdad, crawdaddy", + "hermit crab", + "isopod", + "white stork, Ciconia ciconia", + "black stork, Ciconia nigra", + "spoonbill", + "flamingo", + "little blue heron, Egretta caerulea", + "American egret, great white heron, Egretta albus", + "bittern", + "crane", + "limpkin, Aramus pictus", + "European gallinule, Porphyrio porphyrio", + "American coot, marsh hen, mud hen, water hen, Fulica americana", + "bustard", + "ruddy turnstone, Arenaria interpres", + "red-backed sandpiper, dunlin, Erolia alpina", + "redshank, Tringa totanus", + "dowitcher", + "oystercatcher, oyster catcher", + "pelican", + "king penguin, Aptenodytes patagonica", + "albatross, mollymawk", + "grey whale, gray whale, devilfish, Eschrichtius gibbosus, Eschrichtius robustus", + "killer whale, killer, orca, grampus, sea wolf, Orcinus orca", + "dugong, Dugong dugon", + "sea lion", + "Chihuahua", + "Japanese spaniel", + "Maltese dog, Maltese terrier, Maltese", + "Pekinese, Pekingese, Peke", + "Shih-Tzu", + "Blenheim spaniel", + "papillon", + "toy terrier", + "Rhodesian ridgeback", + "Afghan hound, Afghan", + "basset, basset hound", + "beagle", + "bloodhound, sleuthhound", + "bluetick", + "black-and-tan coonhound", + "Walker hound, Walker foxhound", + "English foxhound", + "redbone", + "borzoi, Russian wolfhound", + "Irish wolfhound", + "Italian greyhound", + "whippet", + "Ibizan hound, Ibizan Podenco", + "Norwegian elkhound, elkhound", + "otterhound, otter hound", + "Saluki, gazelle hound", + "Scottish deerhound, deerhound", + "Weimaraner", + "Staffordshire bullterrier, Staffordshire bull terrier", + "American Staffordshire terrier, Staffordshire terrier, American pit bull terrier, pit bull terrier", + "Bedlington terrier", + "Border terrier", + "Kerry blue terrier", + "Irish terrier", + "Norfolk terrier", + "Norwich terrier", + "Yorkshire terrier", + "wire-haired fox terrier", + "Lakeland terrier", + "Sealyham terrier, Sealyham", + "Airedale, Airedale terrier", + "cairn, cairn terrier", + "Australian terrier", + "Dandie Dinmont, Dandie Dinmont terrier", + "Boston bull, Boston terrier", + "miniature schnauzer", + "giant schnauzer", + "standard schnauzer", + "Scotch terrier, Scottish terrier, Scottie", + "Tibetan terrier, chrysanthemum dog", + "silky terrier, Sydney silky", + "soft-coated wheaten terrier", + "West Highland white terrier", + "Lhasa, Lhasa apso", + "flat-coated retriever", + "curly-coated retriever", + "golden retriever", + "Labrador retriever", + "Chesapeake Bay retriever", + "German short-haired pointer", + "vizsla, Hungarian pointer", + "English setter", + "Irish setter, red setter", + "Gordon setter", + "Brittany spaniel", + "clumber, clumber spaniel", + "English springer, English springer spaniel", + "Welsh springer spaniel", + "cocker spaniel, English cocker spaniel, cocker", + "Sussex spaniel", + "Irish water spaniel", + "kuvasz", + "schipperke", + "groenendael", + "malinois", + "briard", + "kelpie", + "komondor", + "Old English sheepdog, bobtail", + "Shetland sheepdog, Shetland sheep dog, Shetland", + "collie", + "Border collie", + "Bouvier des Flandres, Bouviers des Flandres", + "Rottweiler", + "German shepherd, German shepherd dog, German police dog, alsatian", + "Doberman, Doberman pinscher", + "miniature pinscher", + "Greater Swiss Mountain dog", + "Bernese mountain dog", + "Appenzeller", + "EntleBucher", + "boxer", + "bull mastiff", + "Tibetan mastiff", + "French bulldog", + "Great Dane", + "Saint Bernard, St Bernard", + "Eskimo dog, husky", + "malamute, malemute, Alaskan malamute", + "Siberian husky", + "dalmatian, coach dog, carriage dog", + "affenpinscher, monkey pinscher, monkey dog", + "basenji", + "pug, pug-dog", + "Leonberg", + "Newfoundland, Newfoundland dog", + "Great Pyrenees", + "Samoyed, Samoyede", + "Pomeranian", + "chow, chow chow", + "keeshond", + "Brabancon griffon", + "Pembroke, Pembroke Welsh corgi", + "Cardigan, Cardigan Welsh corgi", + "toy poodle", + "miniature poodle", + "standard poodle", + "Mexican hairless", + "timber wolf, grey wolf, gray wolf, Canis lupus", + "white wolf, Arctic wolf, Canis lupus tundrarum", + "red wolf, maned wolf, Canis rufus, Canis niger", + "coyote, prairie wolf, brush wolf, Canis latrans", + "dingo, warrigal, warragal, Canis dingo", + "dhole, Cuon alpinus", + "African hunting dog, hyena dog, Cape hunting dog, Lycaon pictus", + "hyena, hyaena", + "red fox, Vulpes vulpes", + "kit fox, Vulpes macrotis", + "Arctic fox, white fox, Alopex lagopus", + "grey fox, gray fox, Urocyon cinereoargenteus", + "tabby, tabby cat", + "tiger cat", + "Persian cat", + "Siamese cat, Siamese", + "Egyptian cat", + "cougar, puma, catamount, mountain lion, painter, panther, Felis concolor", + "lynx, catamount", + "leopard, Panthera pardus", + "snow leopard, ounce, Panthera uncia", + "jaguar, panther, Panthera onca, Felis onca", + "lion, king of beasts, Panthera leo", + "tiger, Panthera tigris", + "cheetah, chetah, Acinonyx jubatus", + "brown bear, bruin, Ursus arctos", + "American black bear, black bear, Ursus americanus, Euarctos americanus", + "ice bear, polar bear, Ursus Maritimus, Thalarctos maritimus", + "sloth bear, Melursus ursinus, Ursus ursinus", + "mongoose", + "meerkat, mierkat", + "tiger beetle", + "ladybug, ladybeetle, lady beetle, ladybird, ladybird beetle", + "ground beetle, carabid beetle", + "long-horned beetle, longicorn, longicorn beetle", + "leaf beetle, chrysomelid", + "dung beetle", + "rhinoceros beetle", + "weevil", + "fly", + "bee", + "ant, emmet, pismire", + "grasshopper, hopper", + "cricket", + "walking stick, walkingstick, stick insect", + "cockroach, roach", + "mantis, mantid", + "cicada, cicala", + "leafhopper", + "lacewing, lacewing fly", + "dragonfly, darning needle, devil's darning needle, sewing needle, snake feeder, snake doctor, mosquito hawk, skeeter hawk", + "damselfly", + "admiral", + "ringlet, ringlet butterfly", + "monarch, monarch butterfly, milkweed butterfly, Danaus plexippus", + "cabbage butterfly", + "sulphur butterfly, sulfur butterfly", + "lycaenid, lycaenid butterfly", + "starfish, sea star", + "sea urchin", + "sea cucumber, holothurian", + "wood rabbit, cottontail, cottontail rabbit", + "hare", + "Angora, Angora rabbit", + "hamster", + "porcupine, hedgehog", + "fox squirrel, eastern fox squirrel, Sciurus niger", + "marmot", + "beaver", + "guinea pig, Cavia cobaya", + "sorrel", + "zebra", + "hog, pig, grunter, squealer, Sus scrofa", + "wild boar, boar, Sus scrofa", + "warthog", + "hippopotamus, hippo, river horse, Hippopotamus amphibius", + "ox", + "water buffalo, water ox, Asiatic buffalo, Bubalus bubalis", + "bison", + "ram, tup", + "bighorn, bighorn sheep, cimarron, Rocky Mountain bighorn, Rocky Mountain sheep, Ovis canadensis", + "ibex, Capra ibex", + "hartebeest", + "impala, Aepyceros melampus", + "gazelle", + "Arabian camel, dromedary, Camelus dromedarius", + "llama", + "weasel", + "mink", + "polecat, fitch, foulmart, foumart, Mustela putorius", + "black-footed ferret, ferret, Mustela nigripes", + "otter", + "skunk, polecat, wood pussy", + "badger", + "armadillo", + "three-toed sloth, ai, Bradypus tridactylus", + "orangutan, orang, orangutang, Pongo pygmaeus", + "gorilla, Gorilla gorilla", + "chimpanzee, chimp, Pan troglodytes", + "gibbon, Hylobates lar", + "siamang, Hylobates syndactylus, Symphalangus syndactylus", + "guenon, guenon monkey", + "patas, hussar monkey, Erythrocebus patas", + "baboon", + "macaque", + "langur", + "colobus, colobus monkey", + "proboscis monkey, Nasalis larvatus", + "marmoset", + "capuchin, ringtail, Cebus capucinus", + "howler monkey, howler", + "titi, titi monkey", + "spider monkey, Ateles geoffroyi", + "squirrel monkey, Saimiri sciureus", + "Madagascar cat, ring-tailed lemur, Lemur catta", + "indri, indris, Indri indri, Indri brevicaudatus", + "Indian elephant, Elephas maximus", + "African elephant, Loxodonta africana", + "lesser panda, red panda, panda, bear cat, cat bear, Ailurus fulgens", + "giant panda, panda, panda bear, coon bear, Ailuropoda melanoleuca", + "barracouta, snoek", + "eel", + "coho, cohoe, coho salmon, blue jack, silver salmon, Oncorhynchus kisutch", + "rock beauty, Holocanthus tricolor", + "anemone fish", + "sturgeon", + "gar, garfish, garpike, billfish, Lepisosteus osseus", + "lionfish", + "puffer, pufferfish, blowfish, globefish", + "abacus", + "abaya", + "academic gown, academic robe, judge's robe", + "accordion, piano accordion, squeeze box", + "acoustic guitar", + "aircraft carrier, carrier, flattop, attack aircraft carrier", + "airliner", + "airship, dirigible", + "altar", + "ambulance", + "amphibian, amphibious vehicle", + "analog clock", + "apiary, bee house", + "apron", + "ashcan, trash can, garbage can, wastebin, ash bin, ash-bin, ashbin, dustbin, trash barrel, trash bin", + "assault rifle, assault gun", + "backpack, back pack, knapsack, packsack, rucksack, haversack", + "bakery, bakeshop, bakehouse", + "balance beam, beam", + "balloon", + "ballpoint, ballpoint pen, ballpen, Biro", + "Band Aid", + "banjo", + "bannister, banister, balustrade, balusters, handrail", + "barbell", + "barber chair", + "barbershop", + "barn", + "barometer", + "barrel, cask", + "barrow, garden cart, lawn cart, wheelbarrow", + "baseball", + "basketball", + "bassinet", + "bassoon", + "bathing cap, swimming cap", + "bath towel", + "bathtub, bathing tub, bath, tub", + "beach wagon, station wagon, wagon, estate car, beach waggon, station waggon, waggon", + "beacon, lighthouse, beacon light, pharos", + "beaker", + "bearskin, busby, shako", + "beer bottle", + "beer glass", + "bell cote, bell cot", + "bib", + "bicycle-built-for-two, tandem bicycle, tandem", + "bikini, two-piece", + "binder, ring-binder", + "binoculars, field glasses, opera glasses", + "birdhouse", + "boathouse", + "bobsled, bobsleigh, bob", + "bolo tie, bolo, bola tie, bola", + "bonnet, poke bonnet", + "bookcase", + "bookshop, bookstore, bookstall", + "bottlecap", + "bow", + "bow tie, bow-tie, bowtie", + "brass, memorial tablet, plaque", + "brassiere, bra, bandeau", + "breakwater, groin, groyne, mole, bulwark, seawall, jetty", + "breastplate, aegis, egis", + "broom", + "bucket, pail", + "buckle", + "bulletproof vest", + "bullet train, bullet", + "butcher shop, meat market", + "cab, hack, taxi, taxicab", + "caldron, cauldron", + "candle, taper, wax light", + "cannon", + "canoe", + "can opener, tin opener", + "cardigan", + "car mirror", + "carousel, carrousel, merry-go-round, roundabout, whirligig", + "carpenter's kit, tool kit", + "carton", + "car wheel", + "cash machine, cash dispenser, automated teller machine, automatic teller machine, automated teller, automatic teller, ATM", + "cassette", + "cassette player", + "castle", + "catamaran", + "CD player", + "cello, violoncello", + "cellular telephone, cellular phone, cellphone, cell, mobile phone", + "chain", + "chainlink fence", + "chain mail, ring mail, mail, chain armor, chain armour, ring armor, ring armour", + "chain saw, chainsaw", + "chest", + "chiffonier, commode", + "chime, bell, gong", + "china cabinet, china closet", + "Christmas stocking", + "church, church building", + "cinema, movie theater, movie theatre, movie house, picture palace", + "cleaver, meat cleaver, chopper", + "cliff dwelling", + "cloak", + "clog, geta, patten, sabot", + "cocktail shaker", + "coffee mug", + "coffeepot", + "coil, spiral, volute, whorl, helix", + "combination lock", + "computer keyboard, keypad", + "confectionery, confectionary, candy store", + "container ship, containership, container vessel", + "convertible", + "corkscrew, bottle screw", + "cornet, horn, trumpet, trump", + "cowboy boot", + "cowboy hat, ten-gallon hat", + "cradle", + "crane", + "crash helmet", + "crate", + "crib, cot", + "Crock Pot", + "croquet ball", + "crutch", + "cuirass", + "dam, dike, dyke", + "desk", + "desktop computer", + "dial telephone, dial phone", + "diaper, nappy, napkin", + "digital clock", + "digital watch", + "dining table, board", + "dishrag, dishcloth", + "dishwasher, dish washer, dishwashing machine", + "disk brake, disc brake", + "dock, dockage, docking facility", + "dogsled, dog sled, dog sleigh", + "dome", + "doormat, welcome mat", + "drilling platform, offshore rig", + "drum, membranophone, tympan", + "drumstick", + "dumbbell", + "Dutch oven", + "electric fan, blower", + "electric guitar", + "electric locomotive", + "entertainment center", + "envelope", + "espresso maker", + "face powder", + "feather boa, boa", + "file, file cabinet, filing cabinet", + "fireboat", + "fire engine, fire truck", + "fire screen, fireguard", + "flagpole, flagstaff", + "flute, transverse flute", + "folding chair", + "football helmet", + "forklift", + "fountain", + "fountain pen", + "four-poster", + "freight car", + "French horn, horn", + "frying pan, frypan, skillet", + "fur coat", + "garbage truck, dustcart", + "gasmask, respirator, gas helmet", + "gas pump, gasoline pump, petrol pump, island dispenser", + "goblet", + "go-kart", + "golf ball", + "golfcart, golf cart", + "gondola", + "gong, tam-tam", + "gown", + "grand piano, grand", + "greenhouse, nursery, glasshouse", + "grille, radiator grille", + "grocery store, grocery, food market, market", + "guillotine", + "hair slide", + "hair spray", + "half track", + "hammer", + "hamper", + "hand blower, blow dryer, blow drier, hair dryer, hair drier", + "hand-held computer, hand-held microcomputer", + "handkerchief, hankie, hanky, hankey", + "hard disc, hard disk, fixed disk", + "harmonica, mouth organ, harp, mouth harp", + "harp", + "harvester, reaper", + "hatchet", + "holster", + "home theater, home theatre", + "honeycomb", + "hook, claw", + "hoopskirt, crinoline", + "horizontal bar, high bar", + "horse cart, horse-cart", + "hourglass", + "iPod", + "iron, smoothing iron", + "jack-o'-lantern", + "jean, blue jean, denim", + "jeep, landrover", + "jersey, T-shirt, tee shirt", + "jigsaw puzzle", + "jinrikisha, ricksha, rickshaw", + "joystick", + "kimono", + "knee pad", + "knot", + "lab coat, laboratory coat", + "ladle", + "lampshade, lamp shade", + "laptop, laptop computer", + "lawn mower, mower", + "lens cap, lens cover", + "letter opener, paper knife, paperknife", + "library", + "lifeboat", + "lighter, light, igniter, ignitor", + "limousine, limo", + "liner, ocean liner", + "lipstick, lip rouge", + "Loafer", + "lotion", + "loudspeaker, speaker, speaker unit, loudspeaker system, speaker system", + "loupe, jeweler's loupe", + "lumbermill, sawmill", + "magnetic compass", + "mailbag, postbag", + "mailbox, letter box", + "maillot", + "maillot, tank suit", + "manhole cover", + "maraca", + "marimba, xylophone", + "mask", + "matchstick", + "maypole", + "maze, labyrinth", + "measuring cup", + "medicine chest, medicine cabinet", + "megalith, megalithic structure", + "microphone, mike", + "microwave, microwave oven", + "military uniform", + "milk can", + "minibus", + "miniskirt, mini", + "minivan", + "missile", + "mitten", + "mixing bowl", + "mobile home, manufactured home", + "Model T", + "modem", + "monastery", + "monitor", + "moped", + "mortar", + "mortarboard", + "mosque", + "mosquito net", + "motor scooter, scooter", + "mountain bike, all-terrain bike, off-roader", + "mountain tent", + "mouse, computer mouse", + "mousetrap", + "moving van", + "muzzle", + "nail", + "neck brace", + "necklace", + "nipple", + "notebook, notebook computer", + "obelisk", + "oboe, hautboy, hautbois", + "ocarina, sweet potato", + "odometer, hodometer, mileometer, milometer", + "oil filter", + "organ, pipe organ", + "oscilloscope, scope, cathode-ray oscilloscope, CRO", + "overskirt", + "oxcart", + "oxygen mask", + "packet", + "paddle, boat paddle", + "paddlewheel, paddle wheel", + "padlock", + "paintbrush", + "pajama, pyjama, pj's, jammies", + "palace", + "panpipe, pandean pipe, syrinx", + "paper towel", + "parachute, chute", + "parallel bars, bars", + "park bench", + "parking meter", + "passenger car, coach, carriage", + "patio, terrace", + "pay-phone, pay-station", + "pedestal, plinth, footstall", + "pencil box, pencil case", + "pencil sharpener", + "perfume, essence", + "Petri dish", + "photocopier", + "pick, plectrum, plectron", + "pickelhaube", + "picket fence, paling", + "pickup, pickup truck", + "pier", + "piggy bank, penny bank", + "pill bottle", + "pillow", + "ping-pong ball", + "pinwheel", + "pirate, pirate ship", + "pitcher, ewer", + "plane, carpenter's plane, woodworking plane", + "planetarium", + "plastic bag", + "plate rack", + "plow, plough", + "plunger, plumber's helper", + "Polaroid camera, Polaroid Land camera", + "pole", + "police van, police wagon, paddy wagon, patrol wagon, wagon, black Maria", + "poncho", + "pool table, billiard table, snooker table", + "pop bottle, soda bottle", + "pot, flowerpot", + "potter's wheel", + "power drill", + "prayer rug, prayer mat", + "printer", + "prison, prison house", + "projectile, missile", + "projector", + "puck, hockey puck", + "punching bag, punch bag, punching ball, punchball", + "purse", + "quill, quill pen", + "quilt, comforter, comfort, puff", + "racer, race car, racing car", + "racket, racquet", + "radiator", + "radio, wireless", + "radio telescope, radio reflector", + "rain barrel", + "recreational vehicle, RV, R.V.", + "reel", + "reflex camera", + "refrigerator, icebox", + "remote control, remote", + "restaurant, eating house, eating place, eatery", + "revolver, six-gun, six-shooter", + "rifle", + "rocking chair, rocker", + "rotisserie", + "rubber eraser, rubber, pencil eraser", + "rugby ball", + "rule, ruler", + "running shoe", + "safe", + "safety pin", + "saltshaker, salt shaker", + "sandal", + "sarong", + "sax, saxophone", + "scabbard", + "scale, weighing machine", + "school bus", + "schooner", + "scoreboard", + "screen, CRT screen", + "screw", + "screwdriver", + "seat belt, seatbelt", + "sewing machine", + "shield, buckler", + "shoe shop, shoe-shop, shoe store", + "shoji", + "shopping basket", + "shopping cart", + "shovel", + "shower cap", + "shower curtain", + "ski", + "ski mask", + "sleeping bag", + "slide rule, slipstick", + "sliding door", + "slot, one-armed bandit", + "snorkel", + "snowmobile", + "snowplow, snowplough", + "soap dispenser", + "soccer ball", + "sock", + "solar dish, solar collector, solar furnace", + "sombrero", + "soup bowl", + "space bar", + "space heater", + "space shuttle", + "spatula", + "speedboat", + "spider web, spider's web", + "spindle", + "sports car, sport car", + "spotlight, spot", + "stage", + "steam locomotive", + "steel arch bridge", + "steel drum", + "stethoscope", + "stole", + "stone wall", + "stopwatch, stop watch", + "stove", + "strainer", + "streetcar, tram, tramcar, trolley, trolley car", + "stretcher", + "studio couch, day bed", + "stupa, tope", + "submarine, pigboat, sub, U-boat", + "suit, suit of clothes", + "sundial", + "sunglass", + "sunglasses, dark glasses, shades", + "sunscreen, sunblock, sun blocker", + "suspension bridge", + "swab, swob, mop", + "sweatshirt", + "swimming trunks, bathing trunks", + "swing", + "switch, electric switch, electrical switch", + "syringe", + "table lamp", + "tank, army tank, armored combat vehicle, armoured combat vehicle", + "tape player", + "teapot", + "teddy, teddy bear", + "television, television system", + "tennis ball", + "thatch, thatched roof", + "theater curtain, theatre curtain", + "thimble", + "thresher, thrasher, threshing machine", + "throne", + "tile roof", + "toaster", + "tobacco shop, tobacconist shop, tobacconist", + "toilet seat", + "torch", + "totem pole", + "tow truck, tow car, wrecker", + "toyshop", + "tractor", + "trailer truck, tractor trailer, trucking rig, rig, articulated lorry, semi", + "tray", + "trench coat", + "tricycle, trike, velocipede", + "trimaran", + "tripod", + "triumphal arch", + "trolleybus, trolley coach, trackless trolley", + "trombone", + "tub, vat", + "turnstile", + "typewriter keyboard", + "umbrella", + "unicycle, monocycle", + "upright, upright piano", + "vacuum, vacuum cleaner", + "vase", + "vault", + "velvet", + "vending machine", + "vestment", + "viaduct", + "violin, fiddle", + "volleyball", + "waffle iron", + "wall clock", + "wallet, billfold, notecase, pocketbook", + "wardrobe, closet, press", + "warplane, military plane", + "washbasin, handbasin, washbowl, lavabo, wash-hand basin", + "washer, automatic washer, washing machine", + "water bottle", + "water jug", + "water tower", + "whiskey jug", + "whistle", + "wig", + "window screen", + "window shade", + "Windsor tie", + "wine bottle", + "wing", + "wok", + "wooden spoon", + "wool, woolen, woollen", + "worm fence, snake fence, snake-rail fence, Virginia fence", + "wreck", + "yawl", + "yurt", + "web site, website, internet site, site", + "comic book", + "crossword puzzle, crossword", + "street sign", + "traffic light, traffic signal, stoplight", + "book jacket, dust cover, dust jacket, dust wrapper", + "menu", + "plate", + "guacamole", + "consomme", + "hot pot, hotpot", + "trifle", + "ice cream, icecream", + "ice lolly, lolly, lollipop, popsicle", + "French loaf", + "bagel, beigel", + "pretzel", + "cheeseburger", + "hotdog, hot dog, red hot", + "mashed potato", + "head cabbage", + "broccoli", + "cauliflower", + "zucchini, courgette", + "spaghetti squash", + "acorn squash", + "butternut squash", + "cucumber, cuke", + "artichoke, globe artichoke", + "bell pepper", + "cardoon", + "mushroom", + "Granny Smith", + "strawberry", + "orange", + "lemon", + "fig", + "pineapple, ananas", + "banana", + "jackfruit, jak, jack", + "custard apple", + "pomegranate", + "hay", + "carbonara", + "chocolate sauce, chocolate syrup", + "dough", + "meat loaf, meatloaf", + "pizza, pizza pie", + "potpie", + "burrito", + "red wine", + "espresso", + "cup", + "eggnog", + "alp", + "bubble", + "cliff, drop, drop-off", + "coral reef", + "geyser", + "lakeside, lakeshore", + "promontory, headland, head, foreland", + "sandbar, sand bar", + "seashore, coast, seacoast, sea-coast", + "valley, vale", + "volcano", + "ballplayer, baseball player", + "groom, bridegroom", + "scuba diver", + "rapeseed", + "daisy", + "yellow lady's slipper, yellow lady-slipper, Cypripedium calceolus, Cypripedium parviflorum", + "corn", + "acorn", + "hip, rose hip, rosehip", + "buckeye, horse chestnut, conker", + "coral fungus", + "agaric", + "gyromitra", + "stinkhorn, carrion fungus", + "earthstar", + "hen-of-the-woods, hen of the woods, Polyporus frondosus, Grifola frondosa", + "bolete", + "ear, spike, capitulum", + "toilet tissue, toilet paper, bathroom tissue" +] \ No newline at end of file diff --git a/script/seed.js b/script/seed.js new file mode 100644 index 0000000..5118017 --- /dev/null +++ b/script/seed.js @@ -0,0 +1,178 @@ +const fs = require('fs/promises') +const { execSync } = require('child_process') +const OpenAI = require('openai') +const imageClasses = require('./image-classes.json') + +const throwIfEnvVarDoesNotExist = (envVarName) => { + if (!process.env[envVarName]) { + console.error(`Unable to find required env var: "${envVarName}"`) + process.exit(1) + } +} + +const addKeyValueToCloudflareKV = (cloudflareKVBindingId, key, value) => { + console.log( + `Attempting to add key "${key}" to Cloudflare KV: ${cloudflareKVBindingId}` + ) + + execSync( + `bash ./script/cloudflare/add-cloudflare-kv-value.sh "${cloudflareKVBindingId}" "${key}" "${value}"`, + (err, output) => { + if (err) { + console.error('could not execute command: ', err) + return + } + console.log('Output: \n', output) + } + ) +} + +const batchSeedProcess = async ( + currentSeedFileContent, + seedFile, + cloudflareKVBindingId, + limitBatchSize = 5 +) => { + const currentClassifications = imageClasses.slice( + currentSeedFileContent.data.length + ) + let currentSeedFileData = currentSeedFileContent.data + + const openai = new OpenAI({ apiKey: process.env.OPENAI_API_KEY }) + + const getSeedData = (classifications) => { + const getImageDescription = async (classification) => { + const content = `What is a '${classification}'? I'm new to this world and I don't know what a '${classification}' is...` + + const response = await openai.chat.completions.create({ + model: 'gpt-3.5-turbo', + stream: false, + messages: [{ role: 'system', content: content }], + }) + + if (response && response.choices && response.choices.length > 0) { + return response.choices[0].message.content + } else { + return 'N/A' + } + } + + return classifications.map((imageClass) => + getImageDescription(imageClass).then((description) => ({ + imageClass: imageClass, + description: description + .replace(/\"/g, "'") + .replace(/(\r\n|\n|\r)/gm, ''), + })) + ) + } + + const totalBatchJobs = imageClasses.length / limitBatchSize + + let latestSeedFileContent = currentSeedFileContent + + for (let i = 0; i < totalBatchJobs; i++) { + const currentBatch = currentClassifications.slice( + i * limitBatchSize, + i * limitBatchSize + limitBatchSize + ) + + const batchJobNumber = + totalBatchJobs * + (latestSeedFileContent.data.length / imageClasses.length) + + 1 + + console.log( + `Attempting to add the following batch (group ${batchJobNumber} of ${totalBatchJobs}) to seed file:`, + currentBatch + ) + + const newSeedData = await Promise.all(getSeedData(currentBatch)) + + currentSeedFileData = [...currentSeedFileData, ...newSeedData] + + const newSeedFileContent = { + last_updated_timestamp: new Date(), + length: currentSeedFileData.length, + data: currentSeedFileData, + } + + await fs.writeFile(seedFile, JSON.stringify(newSeedFileContent, null, 2), { + flag: 'w', + }) + + newSeedData.forEach(({ imageClass, description }) => { + addKeyValueToCloudflareKV(cloudflareKVBindingId, imageClass, description) + }) + + latestSeedFileContent = newSeedFileContent + } + + return latestSeedFileContent +} + +const ensureSeedFileExists = (seedFile, onSeedFileOpen) => + fs + .readFile(seedFile, { encoding: 'utf8' }) + .then((rawData) => onSeedFileOpen(JSON.parse(rawData))) + .catch((error) => { + if (error.code === 'ENOENT') { + const initialSeedObject = { + last_updated_timestamp: new Date(), + length: 0, + data: [], + } + + return fs + .writeFile(seedFile, JSON.stringify(initialSeedObject), { + flag: 'wx', + }) + .then(() => onSeedFileOpen(initialSeedObject)) + } else { + throw new Error(error) + } + }) + +const getFlag = (flagName) => { + const flagIndex = process.argv.indexOf(`--${flagName}`) + const flagValue = flagIndex > -1 ? process.argv[flagIndex + 1] : '' + + if (!flagValue) { + console.error( + `Expected required flag '--${flagName}' to be passed to script!` + ) + process.exit(1) + } + + return flagValue +} + +const main = async () => { + ;['CLOUDFLARE_ACCOUNT_ID', 'CLOUDFLARE_API_TOKEN', 'OPENAI_API_KEY'].forEach( + (envVarName) => throwIfEnvVarDoesNotExist(envVarName) + ) + + if (process.argv.length === 2) { + console.error('Expected at least one argument!') + process.exit(1) + } + + const [seedFile, cloudflareKVBindingId] = [ + getFlag('seed-file'), + getFlag('cloudflare-kv-binding-id'), + ] + + const updatedSeedData = await ensureSeedFileExists( + seedFile, + (currentSeedData) => + currentSeedData.data.length !== imageClasses.length + ? batchSeedProcess(currentSeedData, seedFile, cloudflareKVBindingId, 5) + : currentSeedData + ) + + updatedSeedData.data.forEach(({ imageClass, description }) => { + addKeyValueToCloudflareKV(cloudflareKVBindingId, imageClass, description) + }) +} + +main().then(() => console.log('Done!')) diff --git a/env.d.ts b/src/env.d.ts similarity index 100% rename from env.d.ts rename to src/env.d.ts