This project is part of Hypha's Governance Experiment, exploring decentralized decision-making, participatory processes, and visual storytelling. The timeline provides an interactive way to explore Hypha's history, displaying key events in a visually engaging format.
The app is built with Vite and Svelte, styled using Tailwind CSS, and supports both dark and light themes. By default, the build settings are optimized for hosting on GitHub Pages, but the app can also be exported as a web component for integration into other web platforms.
You can explore the timeline live on GitHub Pages:
- Part of the Governance Experiment: Visualizes key events identified during the governance experiment.
- Svelte + Vite: Utilizes Svelte for a simple, reactive UI and Vite for fast development.
- Tailwind CSS: Enables rapid styling with utility-first CSS.
- Dark and Light Themes: Built-in theme toggling for accessibility and user preference.
- Exportability: Can be built for GitHub Pages or as a standalone web component.
To run this project locally, ensure you have Node.js installed and follow these steps:
-
Clone the repository and navigate to the project folder:
git clone https://github.com/hyphacoop/governance-experiment.git cd timeline
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173
(or the URL provided in your terminal).
By default, the build configuration is optimized for GitHub Pages. To create a production build for hosting on GitHub Pages, use:
npm run build
The built files will be available in the dist folder and can be deployed to GitHub Pages or any other web server.
If you want to export the timeline as a web component for integration into other platforms, you will need to adjust the vite.config.js
file to enable web component mode. Follow these steps:
-
Open vite.config.js and modify the build.rollupOptions to output as a web component:
export default { build: { rollupOptions: { output: { format: 'es', }, }, }, };
-
Run the build command:
npm run build
-
The output will be in the dist folder, and the web component can be integrated into other projects using an <iframe> or <script> tag.
We welcome contributions to improve the timeline! To contribute:
- Fork the repository and create a feature branch.
- Submit a pull request with a clear description of your changes.
This project is licensed under the GNU General Public License v3.0. See the LICENSE
file for details.