silicon Svelte Themes

Silicon

A code snippets generator powered by Treesitter.

Silicon: A code snippet image generator built with SvelteKit and TreeSitter

This project is a code snippet image generator built with SvelteKit and TreeSitter. It allows users to create beautiful images of their code snippets, which can be easily shared on social media or included in documentation.

Features

  • Support for multiple programming languages
  • Customizable themes and styles
  • Easy-to-use interface
  • Fast rendering using TreeSitter
  • Export images in PNG format
  • Open source and free to use

Usage

To use Silicon, simply visit the demo page and enter your code snippet. You can customize the appearance using the available themes and settings. Once you're satisfied with the preview, you can download the image or share it directly on social media.

Parameters

  • code: The code snippet to be rendered as an image. This can be passed as a query parameter in the URL for pre-filling the input field.
  • language: The programming language of the code snippet. This can also be passed as a query parameter to enable syntax highlighting for the specified language.

License

This project is licensed under the MIT License. See the LICENSE file for more

Top categories

Loading Svelte Themes