This repository contains client and server code for the Howdju platform. Learn more about the platform on the docs site.
Howdju is a platform for analyzing and sharing critical analysis of claims using evidence. The content is currently user-generated, and we hope to augment users' actions with machine learning.
We welcome your contributions!
Please join our Slack to introduce yourself and chat about what interests you. Before contributing please look over our Contributor Guidelines.
Our open issues indicate the work we have identified.
Here are some focused ways to view issues:
- Assigned to Carl these are issues I'm actively working on or that I intend to work on soon.
- Enhancements: features on our road map (as opposed to bugs.)
- Core domain: these are the work items that relate to Howdju‘s primary fact-checking functionality.
- In the Add Appearances project: this is a Kanban board that contains similar issues to those assigned to Carl.
- Good first issues: Howdju welcomes contributions! Carl is happy to explain the platform and the development process to newcomers. I am also happy to talk through ideas for features and implementation approaches.
The current general direction is to evaluate and improve the social fact-checking functionality.
See docs/Development.md to get setup for developing Howdju.
You can join our Slack to discuss Howdju with other users and the site maintainers.
The Howdju code base has undergone a few transformations, and since it is currently a prototype for exploring features, we have not thoroughly completed all refactorings/cleanups/migrations. This section describes major in-progress projects to provide the context for inconsistencies you may find.
The code base is a little over half TypeScript now and includes TypeScript examples for most major
components. See #1 for details on the initial migration effort and issues in the
ts-migration
label for substantial planned
effort.
All of Howdju's entities are defined using Zod. Zod is also our preferred validation library. See #26 for the status of migrating previous data validation definitions to Zod.
Howdju's representation of Justification
s and references to external sources has undergone some
evolution. This list represents the status of some relevant entities:
JustificationCompound
: deprecated. This entity represented mixing evidence and argument in the same justification. Now we require justifications to be either 'evidence-based' (SourceExcerpt
-based) or 'argument-based' (PropositionCompound
-based.)SourceExcerptParaphrase
: deprecated. This entity represented a requirement that all evidence input to the system (SourceExcerpt
s) had to come with the user's paraphrase of their meaning. Now we will instead useSourceExcerpt
s two ways: they can be the basis of a justification, where they represent a user's intention to express the implication of the justification target based upon the evidence. Or they can be part of an appearance, where they represent a user's intention to express that a reasonable reader of the excerpt could conclude that it equated with an expression of theAppearance
's content (initiallyProposition
s.)SourceExcerpt
: the preferred representation of evidence. (We might call thisMediaFragment
because the system need not contain an association between aSource
and entered evidence.)WritQuote
: a type ofSourceExcerpt
, along withPicRegion
andVidSegment
. In many places we assume that aWritQuote
is the only type ofSourceExcerpt
, but we intend to generalize this. E.g., we will replaceWritQuote
-basedJustification
s withSourceExcerpt
-based justifications.
The web app currently uses react-md@1. Besides being outdated, we would like to explore a UI framework that supports both react-native mobile and web. This cross-platform support would enable reusing components on both webpages and mobile app screens.
See #304.
We initially considered Premiser as a name for Howdju, and so some packages have this name. Howdju is now the preferred name.
This repository is a monorepo based on Yarn berry workspaces. This diagram shows the high level dependencies between the packages:
howdju-common
: code common to client and server runtimes. Any package can depend on this package. It includes:- Entity definitions
- Validation
howdju-service-common
: code common to server runtimes. Most of our server-side business logic lives here including:- Services
- Daos
howdju-service-routes
: strongly typed definitions of server-side routes. Used by both clients and services. Clients should only depend on the types and request schemas. Client builds must disallow dependencies onpremiser-api
: AWS lambda for API requests/responses. Initialization, gateway event handler, and logic is deferred to the selected route.lambdas/howdju-message-handler
: SNS handler for async event handling.howdju-client-common
: code common to clients. The decision to put code here can be based upon either runtime considerations (if putting the code in howdju-common would not work outside of a DOM runtime) or based upon design decisions (if it would never make sense to access the code in a server-side context.)premiser-ui
: React web app for howdju.compremiser-ext
: Chrome web extension (Chrome web store page)howdju-mobile-app
: React native mobile app.
Missing from the diagram are:
eslint-config-howdju
: shared ESLint config.howdju-ajv-sourced
: deprecated package for AJV validation.howdju-elastic
: docker image definitions for custom Elasticsearch/Kibana (currently inactive)howdju-ops
: utilities for deploying and maintaining service operations.howdju-test-common
: code shared between tests.infra
: Terraform definitions for our cloud services.premiser-migrate
: legacy one-time migration code from a previous persistence format.premiser-processing
: legacy infra for two lambdas that execute on a schedule. New lambdas should follow the pattern oflambdas/howdju-message-handler
.
The howdju.com web app consists of these parts:
- An HTML bootstrap page served from an S3 bucket which loads
- A single JS bundle served from Cloudfront that calls
- A monolithic AWS lambda behind AWS API Gateway.
- Persistance is in AWS RDS Postgres.
- Howdju currently has a single SNS-based message handler. It is currently responsible for sending email notifications.
- Howdju has a few scheduled jobs that calculate aggregate scores on justifications.
The following sections briefly discuss the major components and dependencies of our clients and services.
The web app uses react-navigation to select pages. The pages dispatch Redux actions handled by Redux reducers and redux-saga (for asynchronous handling.) It calls the API using Axios. It normalizes entities using normalizr.
The API has bespoke request routing supporting strongly-typed routing in clients. The route handlers should contain minimal logic and call Services to fulfill the request. Services contain our business logic and call DAOs for persistence.
Growing test coverage, including UI and Service/DB integration tests. See our testing section in the development docs.
Carl has been attending meetings semiregularly with the Canonical Debate Lab, a loose assocation of people who are all interested in solving similar problems (empowering collective intelligence) but with different focuses and approaches. If Howdju sounds interesting to you, that group may also interest you.