Coder Social home page Coder Social logo

vstabile / highlighter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pablof7z/highlighter

0.0 0.0 0.0 20.86 MB

Highlighter.com repo

Home Page: https://highlighter.com

Shell 0.04% JavaScript 0.48% Go 3.05% TypeScript 14.94% CSS 1.17% HTML 1.32% Dockerfile 0.03% Svelte 78.80% Just 0.17%

highlighter's Introduction

Highlighter

Highlighter is a tool for creators and fans to interact with each other.

Premises

  • Nothing built on highlighter should be custom or "lock" users into highlighter. Creators should always have an exit strategy and it shouldn't attempt to become a central point of capture. If Highlighter is compelled to censor a creator, that creator should continue to be a first-class citizen by easily hosting their own Highlighter instance.
  • There mustn't be any value capture where users are forced to interact with highlighter. Creators should be able to setup their offering on any client that supports the standards Highlighter is built on and user should be able to subscribe and consume the content on any client that supports them.

Implementation

NIP-29

Highlighter relies heavily on NIP-29 for content distribution and grouping.

  • When a new creator signs up (i.e. creates tiers), a NIP-29 group is created where the h tag matches the pubkey of the creator by publishing a kind:9006 event.

NIP-88

NIP-88 provides the infrastructure for recurring subscriptions

Components:

This repository is a monorepo that contains the following packages:

Running Highlighter

git clone --recursive https://github.com/pablof7z/highlighter
# Use --recursive to fetch all the git submodules!
cd highlighter
pnpm install
turbo build
cd apps/web
cp .env.example .env

Replace the placeholder values in .env with your own values. You'll need to create a private key for your creator relay identity.

  • Run the relay
cd apps/relay/relay
RELAY_URL=ws://localhost:5577 RELAY_PRIVKEY=<your-relay-private-key> RELAY_NAME="some-name-for-your-relay" DOMAIN=localhost go run -ldflags=-compressdwarf=false .
  • Run the web app
cd apps/web
pnpm dev

highlighter's People

Contributors

pablof7z avatar verbiricha avatar zmeyer44 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.