|Project Name||Stars||Downloads||Repos Using This||Packages Using This||Most Recent Commit||Total Releases||Latest Release||Open Issues||License||Language|
|The fastest frontend for the headless web. Build modern websites with React.|
|Query||34,757||a day ago||44||mit||TypeScript|
|🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.|
|React Admin||22,213||248||171||a day ago||233||September 23, 2022||128||mit||TypeScript|
|A frontend Framework for building B2B applications running in the browser on top of REST/GraphQL APIs, using ES6, React and Material Design|
|React Starter Kit||21,922||1||5||5 days ago||23||March 07, 2016||5||mit||TypeScript|
|The web's most popular Jamstack front-end template (boilerplate) for building web applications with React|
|Lenster||20,327||a day ago||211||gpl-3.0||TypeScript|
|Lenster is a decentralized and permissionless social media app built with Lens Protocol 🌿|
|Redwood||16,009||18||a day ago||3,293||September 24, 2022||417||mit||TypeScript|
|The App Framework for Startups|
|Blitz||12,824||3||11||a day ago||421||September 13, 2022||196||mit||TypeScript|
|⚡️ The Missing Fullstack Toolkit for Next.js|
|Refine||11,038||a day ago||21||mit||TypeScript|
|Build your React-based CRUD applications, without constraints.|
|Simple, powerful online communities.|
|Payload||10,495||5||20||a day ago||248||September 24, 2022||48||mit||TypeScript|
|Built with React + TypeScript, Payload is a free and open-source Headless CMS. [✩Star] if you support our work!|
This is the main monorepo codebase of Spectrum. Every single line of code that's not packaged into a reusable library is in this repository.
It is difficult to grow, manage and measure the impact of online communities. Community owners need modern, chat-based communities but are running into scaling issues when their community grows beyond a few hundred members. It becomes hard to keep track of who's who, know what conversations are happening, and ensure that the community is staying healthy and productive.
Spectrum aims to be the best platform to build any kind of community online by combining the best of forums and real-time chat apps. With best-in-class moderation tooling, a single platform for all your communities, threaded conversations by default, community health monitoring, and much more to come we think that we will be able to help more people start and grow the best online communities.
"[Spectrum] will take the place that Reddit used to have a long time ago for communities (especially tech) to freely share ideas and interact. Except realtime and trolling-free."
Spectrum has been in full-time development since March 2017 and is part of GitHub since November 2018. See our current priorities and what we are working on in the main project board.
We heartily welcome any and all contributions that match our engineering standards!
That being said, this codebase isn't your typical open source project because it's not a library or package with a limited scopeit's our entire product.
All conversations and communities on Spectrum agree to GitHub's Community Guidelines and Acceptable Use Policies. This code of conduct also applies to all conversations that happen within our contributor community here on GitHub. We expect discussions in issues and pull requests to stay positive, productive, and respectful. Remember: there are real people on the other side of that screen!
If you found a technical bug on Spectrum or have ideas for features we should implement, the issue tracker is the best place to share your ideas. Make sure to follow the issue template and you should be golden! (click here to open a new issue)
If you find a bug on Spectrum and open a PR that fixes it we'll review it as soon as possible to ensure it matches our engineering standards.
If you want to implement a new feature, open an issue first to discuss what it'd look like and to ensure it fits in our roadmap and plans for the app (see the main project board for planned and currently ongoing work).
If you want to contribute but are unsure to start, we have a "good first issue" label which is applied to newcomer-friendly issues. Take a look at the full list of good first issues and pick something you like! There is also an "open" channel in the Spectrum community on Spectrum (how meta), if you run into troubles while trying to contribute that is the best place to talk to us.
Want to fix a bug or implement an agreed-upon feature? Great, jump to the local setup instructions!
With the ground rules out of the way, let's talk about the coarse architecture of this mono repo:
RethinkDB: Data storage
Redis: Background jobs and caching
GraphQL: API, powered by the entire Apollo toolchain
React: Frontend React app
As you can see we follow a loose naming scheme based on ancient Greek, Roman, and philosophical figures that are somewhat related to what our servers do:
We run Prettier on-commit, which means you can write code in whatever style you want and it will be automatically formatted according to the common style when you run
git commit. We also have ESLint set up, although we've disabled all stylistic rules since Prettier takes care of those.
.jsfiles must be flow typed: Since we only introduced Flowtype after we finished building the first version of Spectrum, we enforce in CI that all new files added to the codebase are typed. (if you've never used Flowtype before that's totally fine, just write your code in plain JS and let us know in the PR body, we can take care of it for you)
console.logs in any file: We use the
debugmodule across the codebase to log debugging information in development only. Never commit a file that contains a
console.logas CI will fail your build. The only exceptions are errors, which you can log, but you have to use
console.errorto be explicit about it
The first step to running Spectrum locally is downloading the code by cloning the repository:
git clone [email protected]:withspectrum/spectrum.git
If you get
Permission denied error using
ssh refer here
https link as a fallback.
git clone https://github.com/withspectrum/spectrum.git
Spectrum has four big installation steps:
npmdoesn't work due to our monorepo setup) See the yarn documentation for instructions on installing it.
yarn installfor every worker for you: (this takes a couple minutes, so dive into the technical docs in the meantime)
You've now finished installing everything! Let's migrate the database and you'll be ready to go 💯
When you first download the code and want to run it locally you have to migrate the database and seed it with test data. First, start rethinkdb in its own terminal tab:
Then, in a new tab, run these commands:
yarn run db:migrate yarn run db:seed # To empty the database (e.g. if there's faulty data) run yarn run db:drop
There's a shortcut for dropping, migrating and seeding the database too:
yarn run db:reset
testing database used in end to end tests is managed separately. It is built, migrated, and seeded when you run:
yarn run start:api:test
To drop the
testing database, go to http://localhost:8080/#tables while
rethinkdb is running, and click Delete Database on the appropriate database.
While the app will run without any secrets set up, you won't be able to sign in locally. To get that set up, copy the provided example secrets file to the real location:
cp now-secrets.example.json now-secrets.json
Note: If you're an employee at Spectrum we've got a more complete list of secrets that also lets you upload images etc. in 1Password, search for "now-secrets.json" to find it.
Now you're ready to run the app locally and sign into your local instance!
Whenever you want to run Spectrum locally you have to have RethinkDB and Redis running in the background. First start rethinkdb like we did to migrate the database:
Then (without closing the rethinkdb tab!) open another tab and start Redis:
Depending on what you're trying to work on you'll need to start different servers. Generally, all servers run in development mode by doing
yarn run dev:<workername>, e.g.
yarn run dev:hermes to start the email worker.
No matter what you're trying to do though, you'll want to have the API running, so start that in a background tab:
yarn run dev:api
To develop the frontend and web UI run
yarn run dev:web
Spectrum is now part of GitHub. For code of conduct, please see GitHub's Community Guidelines and Acceptable Use Policies.
BSD 3-Clause, see the LICENSE file.