open-index/open-npm huggingface dataset:
npm package: @hazardprep/core
Description: Multi-hazard personal risk assessment engine using federal open data (FEMA, USGS, NOAA)
Author: Sachin Gupta
Latest version: 0.1.0

# @hazardprep/core

Multi-hazard personal risk assessment engine using federal open data (FEMA, USGS, NOAA).

Enter any US address and get a composite risk profile covering floods, earthquakes, wildfires, hurricanes, tornadoes, and more.

## Install

```bash
npm install @hazardprep/core
```

## Quick Start

```typescript
import { HazardScorer } from '@hazardprep/core';

const scorer = new HazardScorer();
const profile = await scorer.assess('1600 Pennsylvania Ave, Washington, DC');

console.log(profile.overallScore);    // 45
console.log(profile.overallLevel);    // 'moderate'
console.log(profile.topRisks);        // [{ type: 'flood', score: 68, ... }, ...]
console.log(profile.recommendations); // [{ title: 'Flood Preparedness', ... }]
```

## Data Sources

All data comes from free, public US federal government APIs:

| Provider | Data | API |
|----------|------|-----|
| FEMA | Disaster declarations, National Risk Index | [OpenFEMA](https://www.fema.gov/about/openfema/api) |
| USGS | Earthquake history & seismic hazard | [USGS Earthquake Hazards](https://earthquake.usgs.gov/) |
| NOAA | Active weather alerts, severe storms | [NWS API](https://www.weather.gov/documentation/services-web-api) |
| NIFC | Active wildfires, fire perimeters | [NIFC Open Data](https://data-nifc.opendata.arcgis.com/) |

No API keys required.

## Custom Providers

Extend `BaseProvider` to add your own data source:

```typescript
import { BaseProvider, HazardType, scoreToLevel } from '@hazardprep/core';
import type { HazardScore, Location } from '@hazardprep/core';

class MyCustomProvider extends BaseProvider {
  readonly id = 'my-provider';
  readonly name = 'My Custom Data Source';
  readonly hazardTypes = [HazardType.Flood];

  protected async assess(location: Location): Promise<HazardScore[]> {
    // Fetch from your data source
    const score = 42;
    return [{
      type: HazardType.Flood,
      score,
      level: scoreToLevel(score),
      description: 'Custom flood risk assessment',
      source: { name: 'My Source', url: 'https://example.com' },
    }];
  }
}

const scorer = new HazardScorer({ providers: [new MyCustomProvider()] });
```

## License

Apache 2.0
npm package: @hazbase/lib
Description: Library for Hazama base platform
Author: IndieSquare Inc
Latest version: 1.0.16

# @hazbase/lib
Library for Hazama base platform

## Installation
To install the @hazbase/lib npm module, open a terminal window in your project folder and run:
```bash
$ npm install @hazbase/lib
```

## Usage
After package is downloaded and installed, you're ready to import it in your code:

```
import hazlib from @hazbase/lib

...
const network = 'polygon'
const privateKey = 'dummy'
const metadata = {
    name: "My bundle"
}

const contractAddress = hazlib.deployBundle({ network, privateKey, metadata })
...
```

<!-- ## Documents generation
 - Excute command
     ```bash
     $ npm run generate-docs
     ```
 - Open `index.html` file in `~/@hazbase/lib/docs` folder -->