{"id":36955358,"url":"https://github.com/schraf/newspaper-assistant","last_synced_at":"2026-01-21T04:01:42.887Z","repository":{"id":327192775,"uuid":"1107718258","full_name":"schraf/newspaper-assistant","owner":"schraf","description":"Content generator for a newspaper document","archived":false,"fork":false,"pushed_at":"2026-01-10T19:08:46.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T21:21:36.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schraf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-01T14:18:34.000Z","updated_at":"2026-01-10T19:08:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/schraf/newspaper-assistant","commit_stats":null,"previous_names":["schraf/newspaper-assistant"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/schraf/newspaper-assistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fnewspaper-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fnewspaper-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fnewspaper-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fnewspaper-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schraf","download_url":"https://codeload.github.com/schraf/newspaper-assistant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schraf%2Fnewspaper-assistant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28625926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-13T13:02:59.297Z","updated_at":"2026-01-21T04:01:42.879Z","avatar_url":"https://github.com/schraf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Newspaper Assistant\n\nA content generator plugin for the [assistant](https://github.com/schraf/assistant) project that produces multi-section newspaper-style documents over a specified date range.\n\n## Overview\n\nThis project provides a **newspaper** content generator that integrates with the assistant framework. It plans sections and articles, performs web-based research, and synthesizes a complete newspaper edition with Local, US, World, Business and Financial, Technology, and Health and Science sections.\n\n## Features\n\n- **Newspaper Generator**: Implements the `ContentGenerator` interface from the assistant project under the name `newspaper`.\n- **Configurable Length**: Supports three edition sizes (`short`, `medium`, `long`) which control how many articles appear per section.\n- **Section-Aware Planning**: Plans articles separately for each fixed section using a two-step ideas → structured plan flow.\n- **Iterative Research**: Uses iterative research and analysis to gather facts for each planned article.\n- **Standalone CLI**: Can be run as a standalone command-line tool for testing.\n\n## Usage\n\n### As a Plugin\n\nThis project is imported by the assistant project and automatically registers the `\"newspaper\"` generator. The generator can be invoked through the assistant's API endpoints by specifying the generator name and providing:\n\n- `days_back` – integer number of days in the past to start considering news items from; the end date is always now (e.g. `3` means from three days ago through today).\n- `location` – location used for the Local section (e.g. `\"California\"`).\n- `research_depth` – integer corresponding to `short`/`medium`/`long` (0, 1, 2).\n\n### As a Standalone Tool\n\nBuild and run the CLI tool:\n\n```bash\nmake build\n./newspaper -days_back 3 -location \"California\" -length medium\n```\n\nLength options:\n- `short` – 3 articles per section\n- `medium` – 5 articles per section  \n- `long` – 8 articles per section\n\n## Development\n\n```bash\n# Build the project\nmake build\n\n# Run tests\nmake test\n\n# Format code\nmake fmt\n\n# Run vetting\nmake vet\n```\n\n## Project Structure\n\n- `cmd/main.go` - Standalone CLI application\n- `pkg/generator/` - Generator plugin implementation (`newspaper` generator)\n- `internal/newspaper/` - Core newspaper planning, research, synthesis, and editing\n\n## Dependencies\n\n- `github.com/schraf/assistant` - Assistant framework\n- Google Cloud APIs (via `google.golang.org/genai`)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschraf%2Fnewspaper-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschraf%2Fnewspaper-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschraf%2Fnewspaper-assistant/lists"}