A React application that hosts weekly AI-generated sci-fi stories based on scientific breakthroughs. The site is designed to engage teachers, students, and science enthusiasts by presenting cutting-edge science in an accessible and entertaining format.
- Clean, elegant design optimized for reading
- Highlights the latest story on the homepage
- Card-based navigation for browsing all stories
- "Read Next" feature to encourage exploration of other stories
- About page explaining the purpose and AI-generated nature of the content
- Responsive design for all device sizes
- Node.js (v14 or higher)
- npm or yarn
- Clone the repository:
git clone https://github.com/sodalabsio/sxsf.git
cd sxsf
- Install dependencies:
npm install
# or
yarn install
- Start the development server:
npm run dev
# or
yarn dev
- Open your browser and navigate to
http://localhost:5173
Each story should include:
- The main story text in markdown format
- References to scientific papers that support the science in the story
- An AI-generated lead image
To add a new story to the site:
- Create a new markdown file using Agent-C (or a similar Agentic AI system)
- Create a hero image for the story -- ideally in landscape format (e.g. Dall-E, MidJourney, Stable Diffusion)
- Ask an AI, or manually format your markdown file following the structure in one of the existing stories to produce a .ts file in the
src/stories
directory. The file should include:- A unique ID number (e.g. 1, 2, 3)
- A title
- A date (formatted as YYYY-MM-DD)
- A slug (e.g. "the-moon-is-a-giant-magnet")
- An except (could be the first sentence of the story)
- A hero image PNG (stored in
assets
) - The story text in markdown format
- References to scientific papers that support the science in the story
- Add the new story
.ts
file tostories/
- Add the hero image to the
assets/
directory - Redeploy to GitHub Pages
The app is configured for easy deployment to GitHub Pages:
- Update the
homepage
field inpackage.json
to match your GitHub Pages URL:
"homepage": "https://sodalabsio.github.io/sxsf"
- Deploy to GitHub Pages:
npm run deploy
# or
yarn deploy
- React - UI library
- React Router - Navigation
- React Markdown - Markdown rendering
- date-fns - Date formatting
- Vite - Build tool
This project is licensed under the MIT License - see the LICENSE file for details.