Skip to content

About

Explorador del currículum nacional chileno. Astro, TypeScript y Cloudflare Workers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

currículum.

A welcoming, accessible explorer for Chile's national curriculum, built with Astro 7, TypeScript, and Cloudflare Workers Static Assets.

Live site: curriculum.felirami.com

Fork of eweinberg-nido/mineduc-scape. The original Python scraper, canonical datasets, source attribution, and licenses are retained. The web application has been rebuilt in Astro.

Explore the curriculum

  • Browse subjects and specialties by educational stage, from Parvularia through secondary education and EPJA.
  • Start with a course and a compatible subject; return through recent-course shortcuts. Search the complete subject, specialty, and núcleo directory.
  • Search 4,261 objectives and 13,705 evaluation indicators, including accent-insensitive prefixes and official OA codes.
  • Filter by level, subject, category, strand, formation plan, curricular status, and available indicators.
  • Explore 74 transversal objectives by curricular base and dimension, without inventing a grade or subject association.
  • Read full objective statements, their evaluation scope, source documents, and the historical context of the 2023–2025 prioritization.
  • Explore technical-professional modules, expected learning outcomes, and assessment criteria.
  • Save a personal collection in the current browser and export Markdown, text, CSV, JSON, or an AI context block. No account is required.
  • Add a title and planning notes, preview a complete selection, and print or save as PDF through the browser. Text, Markdown, and AI-context exports include your notes; CSV and JSON retain their original record-only formats. Printouts preserve source links, indicator scope, historical status, and explicitly linked TP criteria.
  • Share searches and individual objectives through URLs. Links from the original hash-based navigator are supported.
  • Use light/dark themes, responsive navigation, keyboard shortcuts, accessible dialogs, and recovery controls when a request fails.
  • Read OA statements at 16px (18px in the detail panel), switch to untruncated reading view, and reach saved objectives directly from mobile navigation.

Counts describe the committed dataset snapshot; they are not a claim that all source material is current or that every objective has indicators. The browser groups the data into 122 stable subject IDs; the upstream manifest counts 129 distinct subject labels across 372 level/subject offerings. No subjects are dropped or merged.

Run locally

Requires Node.js 22.12 or newer and npm.

npm ci
npm run dev

Open the local URL printed by Astro (normally http://localhost:4321). The data preparation step runs automatically. Python, credentials, databases, and network scraping are not required to build or browse the application.

npm run check           # Astro / TypeScript diagnostics
npm run build           # Generate versioned data and static dist/
npm run preview         # Serve the production build locally
npm test                # Dataset fidelity, search, filtering, and exports
npx playwright install chromium
npm run test:e2e        # Browser journeys and WCAG A/AA checks

The GitHub Actions workflow runs the production build, type checks, unit tests, and Chromium browser tests on pushes and pull requests.

See the teacher UX review for the scoring rubric, changes, validation, and remaining research needs. Scores are heuristic assessments, not measurements from a teacher study.

Deploy to Cloudflare

This is a fully static Astro site. Cloudflare serves its HTML, CSS, JavaScript, fonts, and JSON directly. No server adapter, database binding, or runtime secrets are needed.

npx wrangler login      # Only if Wrangler is not already authenticated
npx wrangler whoami
npm run deploy

The deploy command builds the site and publishes the mineduc-scapev2 Worker configured in wrangler.jsonc, including the custom domain curriculum.felirami.com. Cloudflare manages the domain's DNS record and HTTPS certificate. The original workers.dev URL remains available. To publish your own copy, choose a unique Worker name and update or remove the custom domain route in that file. For multiple Cloudflare accounts, set CLOUDFLARE_ACCOUNT_ID to the intended account.

To verify Cloudflare's static routing and headers locally:

npm run cf:preview

For Cloudflare Git integration, use npm run build as the build command and npx wrangler deploy as the deploy command. Authentication belongs in Cloudflare's deployment environment, never in committed files. The included GitHub workflow verifies the application; it does not require or store a Cloudflare token.

How the application is organized

Location Purpose
src/pages/ Astro entry page and real 404 page
src/layouts/, src/components/ Page structure, local fonts, icons, original SVG illustration
src/styles/global.css Shared design tokens, responsive layouts, themes, focus and motion rules
src/styles/workflows.css Teacher workflows, legibility, mobile shortcuts, and print layouts
src/scripts/app.ts Navigation, dialogs, filters, collections, and downloads
src/lib/ Shared filters, URLs, types, icons, and printable planning markup
assets/index.js, assets/export.js Original search and export functions
scripts/prepare-data.mjs Builds the catalog and lazy per-level detail files from canonical data
data/ Original complete dataset, derived formats, manifest, and provenance
src/mineduc_scraper/, tests/ Retained upstream Python pipeline and tests

The landing page is generated as HTML and needs no curriculum download to render. Search loads a compact catalog on demand; full provenance, documents, and TP modules load only when a detail or export needs them. Versioned data URLs include a hash of the dataset and builder, so immutable caching does not serve an older data layout after a rebuild. The full original statements and indicators are verified against the generated browser catalog in tests.

Generated browser data (public/data/, src/generated/) and dist/ are ignored by Git. Rebuilds use the committed snapshot. To refresh the underlying dataset, use the retained Python pipeline described in the dataset and scraper reference, then rebuild the Astro app.

Attribution and data context

Curricular content: Ministerio de Educación de Chile, Unidad de Currículum y Evaluación, curriculumnacional.cl.

This is an independent project, not an official MINEDUC application. Status labels reflect the source and verification dates in the dataset. The 2023–2025 prioritization is historical. EPJA objectives defined for combined levels are retained once and included when either applicable level is selected. Religión and other source absences are explained rather than filled with invented objectives. Cross-level suggestions are comparisons, not verified curricular equivalences.

Code: MIT. Curriculum and added data structure: LICENSE-DATA. Original scraper and dataset: eweinberg-nido/mineduc-scape.

About

Explorador del currículum nacional chileno. Astro, TypeScript y Cloudflare Workers.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages