open-index/open-npm huggingface dataset:
npm package: @policyrisk/mcp-server
Description: PRIA MCP server — connect your AI assistant to personalized policy risk data
Latest version: 0.1.1

# @policyrisk/mcp-server

PRIA MCP server — connect your AI assistant to personalized policy risk data.

## Quick Start

### Claude Code (CLI)

```bash
claude mcp add pria -- npx @policyrisk/mcp-server
```

### Claude Desktop

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "pria": {
      "command": "npx",
      "args": ["@policyrisk/mcp-server"],
      "env": {
        "PRIA_API_KEY": "your-api-key"
      }
    }
  }
}
```

### Cursor / VS Code

Add to `.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "pria": {
      "command": "npx",
      "args": ["@policyrisk/mcp-server"],
      "env": {
        "PRIA_API_KEY": "your-api-key"
      }
    }
  }
}
```

## Authentication

1. Log in to your PRIA account
2. Go to **Settings → API Keys**
3. Generate a new key
4. Set `PRIA_API_KEY` in your environment or MCP config

## Available Tools

| Tool | Description |
|------|-------------|
| `get-pria-score` | Your overall PRIA Score with theme breakdown |
| `get-policy-exposures` | Active policy risks mapped to your household |
| `get-action-items` | Personalized steps to reduce your policy risk |
| `search-legislation` | Search tracked bills and their impact on you |
| `get-budget-impact` | How policy changes affect your household budget |
| `get-alerts` | Recent policy alerts relevant to your profile |

## Example Prompts

- "What's my PRIA Score?"
- "How does the new tax bill affect me?"
- "What actions should I take this week?"
- "Show me my policy exposures"

## Requirements

- Active PRIA subscription ($299/year)
- Node.js 18+
- PRIA API key

## License

MIT
npm package: @policysynth/agents
Description: The `@policysynth/agents` package is a core component of the Policy Synth ecosystem, designed to facilitate complex decision-making processes through a network of intelligent agents. This toolkit leverages the combined capabilities of GPT-4, GPT-3.5, and 
Author: Robert Bjarnason, Citizens Foundation
Latest version: 1.3.172

# @policysynth/agents

The `@policysynth/agents` package is a core component of the Policy Synth ecosystem, designed to facilitate complex decision-making processes through a network of intelligent agents. This toolkit leverages the combined capabilities of GPT-4, GPT-3.5, and custom algorithms to analyze, evolve, and propose solutions to policy challenges.

## API Documentation

[API Documentation for Policy Synth Agents](https://github.com/CitizensFoundation/policy-synth/blob/main/agents/docs/README.md)

## Example Policy Synth Agent Configuration

![Policy Synth Agent Configuration](https://github.com/CitizensFoundation/policy-synth/assets/43699/6956d011-4899-4d5e-ab59-b75556982f44)

The configuration diagram above illustrates the flow and interaction between different agent types within Policy Synth, highlighting the extensive capabilities from problem setup to solution evolution.

## Features

- A diverse set of agents, each specializing in various aspects of the policy synthesis process.
- Integration with advanced AI models like GPT-4 and GPT-3.5 for data processing and analysis.
- Genetic algorithms for evolving solutions across generations.
- Tools for engaging with stakeholders and incorporating mass public input.


## Getting Started

To get started with `@policysynth/agents`, install the package using npm:

```bash
npm install @policysynth/agents
```
npm package: @policysynth/api
Description: Bringing together the best of collective and artificial intelligence, Policy Synth aims to enhance decision-making in governance and civic participation. It integrates collective intelligence with the analytical power of over 40 types of GPT-4 agents and 
Author: Robert Bjarnason, Citizens Foundation
Latest version: 1.2.13

# @policysynth/api

Bringing together the best of collective and artificial intelligence, Policy Synth aims to enhance decision-making in governance and civic participation. It integrates collective intelligence with the analytical power of over 40 types of GPT-4 agents and advanced genetic algorithms, forming a unique platform for collaborative policy development.

## API Documentation

[API Documentation for Policy Synth ExpressJS API](https://github.com/CitizensFoundation/policy-synth/blob/main/api/docs/README.md)

## Architecture Overview
![Policy Synth Architecture](https://github.com/CitizensFoundation/policy-synth/assets/43699/b7e1f10a-7438-4827-a576-b48ec5a672e6)

Policy Synth features a robust architecture that includes a Web API, a Web App, and an Agent Queue system, alongside a Weaviate research database and Redis for agent memory. It facilitates seamless integration with GPT-4 and other AI models, providing a versatile environment for policymakers, citizens, and AI to engage in meaningful dialogue.

## Features
- Over 40 GPT-4 agent types for diverse analytical applications.
- Genetic algorithms for in-depth policy analysis.
- Express.js API with WebSocket support for real-time communication.
- A TypeScript class-based SDK for creating scalable web applications and agent systems.

## Installation
Install the package via npm to start building applications with advanced decision-making capabilities:

```bash
npm install @policysynth/api
```
npm package: @policysynth/webapp
Description: Welcome to the `@policysynth/webapp` – a modular and scalable web application framework designed to leverage collective and artificial intelligence for community engagement and policy development.
Author: Robert Bjarnason, Citizens Foundation & The GovLab
Latest version: 1.2.1

# @policysynth/webapp

Welcome to the `@policysynth/webapp` – a modular and scalable web application framework designed to leverage collective and artificial intelligence for community engagement and policy development.

## Introduction

The `@policysynth/webapp` is part of the Policy Synth suite, which aims to integrate the best of human and AI-driven insights for better decision-making. With a focus on user experience and data-driven analysis, this web application framework facilitates the construction of platforms where policymakers and citizens can collaborate effectively.

## API Documentation

[API Documentation for Policy Synth WebApp](https://github.com/CitizensFoundation/policy-synth/blob/main/webApps/policy-synth/docs/README.md)

## Features

- Seamless integration with the Policy Synth API.
- Customizable front-end components for rapid development.
- Pre-built interfaces for community engagement and feedback collection.
- Integration with advanced AI models for data processing and analytics.

## Getting Started

Begin by installing the web application framework via npm:

```bash
npm install @policysynth/webapp
```
npm package: @policyval/attacher
Description: Javascript library for attaching policies in groups, resources and principal scopes
Author: flaviostutz
Latest version: 0.1.2

# policyval attacher

This utility helps you attach Global policies, policies to Principals, Principal groups and Resources. It's possible to attach Permission Boundaries also as a second layer of protection. This is similar to the basic AWS IAM concepts.

## Usage example

- `npm install --save @policyval/attacher`

```ts
import { newAttacher } from '@policyval/attacher';
import { PolicyDocument, compilePolicies } from '@policyval/core';

const attacher = newAttacher();

// policies and boundaries that applies to all request contexts
const pol1:PolicyDocument = {...};
const pol2:PolicyDocument = {...};
attacher.setGlobalPolicies('anthony123', [pol1]);
attacher.setGlobalBoundaries('anthony123', pol2);

// policies and boundaries that applies only to a specific principal
const pol3:PolicyDocument = {...};
const pol4:PolicyDocument = {...};
attacher.setPrincipalPolicies('anthony123', [pol3]);
attacher.setPrincipalBoundaries('anthony123', pol4);

// policies that applies to all principals that are part of a certain group
// if a principal is part of multiple groups, the policies for multiple groups
// will apply to this principal
const pol5:PolicyDocument = {...};
const pol6:PolicyDocument = {...};
attacher.setGroupPolicies('group1', [pol5]);
attacher.setGroupPolicies('group2', [pol6]);
attacher.setPrincipalGroups('anthony123', ['group1','group2']);

// policies that applies only to a specific resource
const pol7:PolicyDocument = {...};
attacher.setResourcePolicies('tasks:123456', [pol7]);

// compute complete policies and evaluate permission
const allowed = attacher.evaluate({
  Principal: 'anthony123',
  Action: 'tasks:delete',
  Resource: 'tasks:123456',
});

// evaluate calls: computePolicies(), compilePolicies() and evaluate()
```

## Reference

### Global

Policies and boundaries applied to all cases.

### Principal Group

A Principal identification can be part of one or more groups. The group can have attached policies, so when computing the policies for a certain Principal, the groups it belongs will be part of its policy along with policies attached directly to the Principal.

### Functions

- **attacher.compute(requestContext):{policies,boundaries}**

  - Returns a list of computed policies after adding global policies, expanding principal policies regarding to the groups it belongs, filtering related resource policies.

  - Returns a list of computed boundaries related to Global and Principal attachments.
npm package: @polidarsystem/vue-loader
Description: A Vue.js project
Latest version: 1.0.4

# vue-loader

> A Vue.js project

## Build Setup

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```

For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).