The code behind selfcrafted.in, a marketplace where independent hardware makers in India sell finished products, spares and surplus parts, plus a service for getting a model 3D printed by a maker who owns a printer. SvelteKit front end, Hono API in api/.
- Node.js (v16 or higher)
- npm (v8 or higher)
-
Clone the repository:
git clone https://github.com/TheAnimatrix/SCWeb.git cd SCWeb -
Install dependencies:
npm install
-
Set up environment variables:
-
Create a
.envfile in the root directory. -
Add your Supabase URL and public API key:
VITE_SUPABASE_URL=your-supabase-url VITE_SUPABASE_ANON_KEY=your-supabase-anon-key
-
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:5173to view the application.
The blog lives at /blog, with individual posts at /blog/[slug]. Posts are entries in
src/lib/blog/posts.ts: a stable slug, title, excerpt, category, the date it first went live, an
optional cover image with alt text and credit, and body blocks (paragraphs, headings, lists, and quotes
with an attribution). Paragraphs can carry links. Reading time is calculated from the text and the
sitemap picks posts up automatically. Write from first-hand experience and name real products and pages;
the comment at the top of posts.ts has the rules.
Blog illustrations are stored in static/images/blog; the generation prompts are recorded in
docs/blog-image-prompts.md.
Contributions are welcome! Please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with descriptive messages.
- Push your changes to your forked repository.
- Submit a pull request to the main repository.
This project uses a dual-license model:
- Default: GNU Affero General Public License v3.0 (AGPL-3.0) — free to use, with copyleft obligations including the network/SaaS clause for modified hosted deployments.
- Commercial: Required for closed-source/non-copyleft use or commercial use expecting gross revenue over USD $10,000.
See LICENSING.md for the full explanation. Contributors accept CLA.md so contributions may be distributed under both licenses.
Commercial licensing: creo@selfcrafted.in