Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Bug report
description: Report a bug or unexpected behavior
title: "[Bug] "
labels: ["bug"]
body:
- type: markdown
attributes:
value: "## Bug report\n\nHelp us improve OutreachKit by reporting what went wrong."
- type: textarea
attributes:
label: Expected behavior
description: What did you expect to happen?
validations:
required: true
- type: textarea
attributes:
label: Actual behavior
description: What actually happened?
validations:
required: true
- type: textarea
attributes:
label: Reproduction steps
description: Steps to reproduce the issue
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
attributes:
label: Environment
description: |
- OS (Windows/macOS/Linux):
- Node.js version (`node --version`):
- OutreachKit version:
validations:
required: true
- type: textarea
attributes:
label: Relevant logs
description: Paste any relevant log output. **Redact any credentials, session tokens, or personal data before pasting.**
validations:
required: false
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Feature request
description: Suggest a new feature or enhancement
title: "[Feature] "
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: "## Feature request\n\nHave a suggestion for OutreachKit? Tell us about it."
- type: textarea
attributes:
label: Problem
description: What problem are you trying to solve? Is your feature request related to a problem? Please describe.
validations:
required: true
- type: textarea
attributes:
label: Proposed solution
description: Describe the solution you'd like.
validations:
required: true
- type: textarea
attributes:
label: Alternatives
description: Describe any alternative solutions or features you've considered.
validations:
required: false
- type: textarea
attributes:
label: Expected benefit
description: Who would benefit from this feature and how?
validations:
required: false
33 changes: 33 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Pull Request Template

## Summary

Briefly describe what this PR changes and why.

## Motivation

What problem does this change solve? Link to any related issue.

## Changes

-
-
-

## Testing performed

- [ ] `npm test` passes
- [ ] `npm run lint` passes
- [ ] `npm run format:check` passes
- [ ] Manual verification of the changed behavior

## Checklist

- [ ] Tests added for new functionality
- [ ] Documentation updated (README, CONTRIBUTING, etc.)
- [ ] No new dependencies added
- [ ] No secrets or credentials included

## Related issue

Fixes #
20 changes: 20 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
groups:
production-dependencies:
patterns:
- "*"
ignore:
- dependency-name: "uuid"
versions: [">=0"]

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 5
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ on:
pull_request:
branches: [main, master]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22]
node-version: [20, 22]

steps:
- uses: actions/checkout@v4
Expand All @@ -20,24 +27,23 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Install Playwright browsers
run: npx playwright install chromium --with-deps
run: npx playwright install chromium

- name: Lint
run: npm run lint
continue-on-error: true

- name: Format check
run: npm run format:check
continue-on-error: true

- name: Run unit tests
run: node test/lib.test.js && node test/test-all-lib.js && node test/test-edge.js && node test/test-send.js
run: npm test

- name: Run server tests
run: node test/test-server.js
timeout-minutes: 2
timeout-minutes: 5
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ npm-debug.log*
test/_debug.js
test/_screenshots.js
screenshots/
!assets/screenshots/

# Environment
.env
Expand Down
58 changes: 58 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Changelog

All notable changes to OutreachKit are documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).

## [1.0.0] — 2026-08-22

### Added

- Initial public release of OutreachKit
- Instagram & Facebook comment-to-DM scraping pipeline
- Multi-campaign management with message variants and follow-ups
- Daily caps, configurable delays, schedule windows, keyword filtering
- Inbox scanning for reply detection and already-contacted tracking
- Glassmorphism web dashboard with live SSE logs and campaign pipeline
- Campaign creation wizard, backup/restore, lead CSV export
- Windows (`start.bat`) and Linux/macOS (`start.sh`) launchers
- Inno Setup installer script (`scripts/installer.iss`)
- MIT License

### Security

- Helmet security headers, CORS, and Express rate limiting (100 req/min)
- Input validation on all API routes
- Path traversal prevention for static file serving and backup restore
- `.gitignore` excludes `data/`, `profile/`, `node_modules/`, and `.env`

### Testing

- Unit tests for config sanitization, CSV round-trip, campaign CRUD, message sequencing
- Server API integration tests for all routes
- Edge case tests: corrupt config, corrupt CSV, missing data dir, extreme values

## Unreleased

### Changed

- Fixed `activeCampaign` referencing a nonexistent campaign in `config.json`
- Reset `delayMinSec`/`delayMaxSec` to documented defaults (60s / 120s)

### Fixed

- `campaign.js`: `postUrl` → `url` field name so campaigns created via the wizard can be scraped
- `campaign.js`: `text1`/`text2`/`followups` stored at campaign top level (matching `send.js` and API expectations)
- `validator.js`: `login`/`connect` added to valid job names
- `gui/app.js`: settings form key mapping (`minDelay` → `delayMinSec`, `maxDelay` → `delayMaxSec`, `messagePause` → `pauseMinutes`)
- `server.js`: CORS origin now uses `PORT` env var instead of hardcoded `:3000`
- `server.js`: `/api/log ?n` parameter clamped to 1–5000 with NaN protection
- `send.js`: removed redundant ternaries and dead `sentFile` references
- `browser.js`: renamed shadowed parameters (`url`/`body` → `targetUrl`/`postData`)
- Removed unused `uuid` dependency
- Pinned `qs` to 6.17.1 via `overrides` to resolve dependency advisories

### CI

- Lint and format checks now fail the build (removed `continue-on-error`)
- Added `permissions: contents: read` and concurrency controls
Loading
Loading