pgx
AI 에이전트를 위한 경량 Postgres, Rust로 구현, 하나의 런타임에서 수천 개의 격리된 데이터베이스 제공
NetShelter는 NY-11 용량 부하 균형 매트릭스입니다
NetShelter is the NY-11 capacity load-balancing matrix. Census totals and intake waves come from the NYC DHS Daily Report, and each wave is placed across Staten Island and Bay Ridge by occupancy, spec
데이터HTML · JavaScriptGitHub @shruthkia온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기NetShelter: Capacity Load-Balancing Matrix for the NY-11 Congressional App Challenge
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗A civic dashboard for the NY-11 Congressional App Challenge. It routes an incoming group of people across a planning network of shelters, from Staten Island and south Brooklyn out to Queens, Manhattan, the Bronx, and the Newark–Elizabeth border.
The citywide census comes from the NYC Open Data DHS Daily Report (k46n-sa2m). On load, the page requests the latest 42 census days. The census cards, the day-to-day chart, and the intake presets all use that response. A saved snapshot is bundled in the page so the dashboard still opens if the request fails. The report is a citywide count. It does not publish facility capacity, so the beds at each site are a planning model.
Everything runs in the browser. Occupancy, the score trace, manual priority, offline facilities, and the audit log persist in localStorage. No account, server, or database is required.
The interface, stylesheet, and allocation algorithm live in index.html. Leaflet and Chart.js load from public CDNs.
The top bar switches three views:
A light/dark control in the header switches the page and the map. Light mode uses Esri World Light Gray Canvas. Dark mode uses Esri World Dark Gray Canvas. Both draw streets without an API key.
npm install
npm run dev
Open http://127.0.0.1:3847.
You can also open index.html directly in a browser while online. The dev server is the supported way to present it.
Entry dispatch is fixed at 40.5895, −74.1154. The score is hidden behind the info control on the Score column:
score = (available beds × 0.5) + (requirement met ? 30 : 0) − (distance km × 0.2)
Distance is the straight-line length from dispatch to the facility. A facility with no available beds, or one whose capacity has been crashed to 0, is skipped. Manually Force Reroute fills the chosen facility first, then the score order takes the rest. Anyone still unplaced goes to the NY-11 Emergency Foster & NGO Distributed Network, and the failsafe switches on.
Map markers follow occupancy: green under 70%, amber from 70% through 95%, and a pulsing rose ring above 95%. A slate marker means the facility is offline. A dashed route is drawn from dispatch to every facility that receives people.
The timeline under the map replays a 24-hour projection around the live occupancy. Approving a reroute is available on the live hour.
The intake panel builds four presets from the loaded census:
The intake field starts at the latest one-day rise in total people in shelter. Clicking a chart bar for a rise loads that count.
The care filter above the map shows all facilities, general shelters, medical focus, or youth care.
Restore baseline returns every facility to its opening occupancy, clears manual priority, and brings offline sites back. Clear on the audit trail only empties the log.