MCPcopy Index your code
hub / github.com/bettergovph/bettergov

github.com/bettergovph/bettergov @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
623 symbols 1,349 edges 186 files 26 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

BetterGov.ph

GitHub Repo Banner

A community-led initiative to create a better and more usable Philippine national government website.

Why We're Building This Project

The current state of Philippine government websites, particularly the main portal www.gov.ph, presents numerous challenges for citizens:

  • The main Gov.ph website is outdated and has not been updated for a long time
  • Full of broken links and difficult navigation paths
  • Inconsistent formatting and design across pages
  • Poor user experience and accessibility issues
  • Similar problems exist across most Philippine government agency websites

These issues create barriers for citizens trying to access essential government services and information.

Our Mission

We are a volunteer-led initiative with a clear mission: to provide a 'better' and 'usable' website for the Philippines.

Our goals include:

  • Building a proper national website that reflects Filipino values and culture
  • Creating intuitive navigation and search functionality
  • Ensuring accessibility for all citizens, including those with disabilities
  • Providing accurate, up-to-date information about government services
  • Establishing a model for how government digital services can and should work

Features

  • Modern, responsive design that works on all devices
  • Comprehensive directory of government services and agencies
  • User-friendly navigation and search
  • Accessibility features for users with disabilities
  • Regular updates and maintenance

Documentation

For an easy-to-read overview of the project, visit the BetterGov Docs.

Join Us as a Volunteer

We're always looking for passionate individuals to help improve BetterGov.ph. We need volunteers with various skills:

  • Frontend and backend developers
  • UX/UI designers
  • Content writers and editors
  • Translators (for Filipino and other local languages)
  • Accessibility experts
  • Project managers
  • QA testers

If you're interested in contributing, please reach out to us at volunteers@bettergov.ph or open an issue in this repository.

Code of Conduct

We are committed to fostering a welcoming and respectful community. Please read our Code of Conduct before participating.

Contributing

We welcome contributions from everyone! Please see our Contributing Guide for details on:

  • Development setup
  • Reporting bugs
  • Opening issues and pull requests

How to Run

# Install packages
npm install

# Start the server
npm run dev

Access the application at: http://localhost:5173

GitHub Codespaces

You may use GitHub Codespaces for an instant development environment with dependencies automatically installed for you.

Open in GitHub Codespaces

Docker

This project includes Docker support for easy deployment and consistent environments.

Building and Running

# Build the Docker image
docker build -t bettergov .

# Run the container
docker run -p 8080:80 bettergov

# Run in detached mode
docker run -d -p 8080:80 --name bettergov bettergov

Access the application at: http://localhost:8080

Docker Compose

For the easiest and most consistent development experience, we recommend using Docker Compose. This method uses Docker to run the application in a controlled environment with hot-reloading enabled.

# Start the development server
docker-compose up

# Start in detached mode
docker-compose up -d

# Stop the service
docker-compose down

Access the application at: http://localhost:5173

Testing

This project uses Playwright for end-to-end testing. For setup instructions, coverage details, and examples, see our Testing Guide.

Contributing

Thanks to all the people who already contributed!

License

This project is released under the Creative Commons CC0 dedication. This means the work is dedicated to the public domain and can be freely used by anyone for any purpose without restriction under copyright law.


Extension points exported contracts — how you extend this code

WebCrawler (Interface)
(no doc) [4 implementers]
functions/lib/crawler.ts
Env (Interface)
(no doc)
functions/types.ts
RateItem (Interface)
(no doc)
functions/forex.ts
ReportHotlineRequest (Interface)
(no doc)
functions/api/report-hotline.ts
FlagProps (Interface)
(no doc)
src/types/react-world-flags.d.ts
ReportHotlineModalProps (Interface)
(no doc)
src/components/ReportHotlineModal.tsx
GovernmentSEOData (Interface)
(no doc)
src/utils/seo-data.ts
ProjectIdea (Interface)
(no doc)
src/pages/Ideas.tsx

Core symbols most depended-on inside this repo

logTest
called by 42
security-test.cjs
cn
called by 36
src/lib/utils.ts
escapeSQL
called by 24
src/data/flood_control/load_flood_control_arcgis.js
fetch
called by 20
functions/index.ts
buildValidateCommand
called by 19
.lintstagedrc.js
navigate
called by 14
e2e/utils/navbar.ts
processEntry
called by 11
scripts/extract-websites.js
fetchWithTimeout
called by 10
security-test.cjs

Shape

Function 449
Interface 156
Method 12
Class 6

Languages

TypeScript100%

Modules by API surface

src/components/ui/ProjectCard.tsx24 symbols
src/components/ui/CardList.tsx21 symbols
functions/lib/crawler.ts20 symbols
src/types/index.ts18 symbols
src/pages/flood-control-projects/table.tsx18 symbols
src/pages/flood-control-projects/contractors/[contractor-name].tsx18 symbols
src/pages/flood-control-projects/contractors.tsx17 symbols
src/pages/flood-control-projects/map.tsx12 symbols
src/pages/flood-control-projects/index.tsx12 symbols
src/components/ui/SelectPicker.tsx12 symbols
src/pages/philippines/map/index.tsx11 symbols
src/components/layout/Navbar.tsx11 symbols

For agents

$ claude mcp add bettergov \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact