Registry / web-framework / secst
library0.0.3-ajsnpmunverified

SECST (Semantic, Extensible, Computational, Styleable Tagged markup) is a markup language and HTML transpiler for creating interactive documents. The current version is 0.0.3-alpha, with infrequent updates. It is designed for joyfully creating compelling documents backed by HTML, aiming to be more extensible and computational than Markdown. Key differentiators include a custom tag syntax, runtime interactivity, and styleability. The project is in early alpha, so expect instability and limited documentation.

npm install secst
INSTALL
IMPORT
SIG · SECST
S
secst
web-frameworkjavascriptv0.0.3-a
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

secst
import secst from 'secst'
const secst = require('secst')
Default export is the main transpiler; CommonJS require may not work due to ESM-only design.
compile
import { compile } from 'secst'
const { compile } = require('secst')
Named export for compiling SECST to HTML; requires ESM environment.
render
import { render } from 'secst'
import render from 'secst'
Named export for direct rendering; cannot use default import.
SECSTRuntime
import { SECSTRuntime } from 'secst'
import SECSTRuntime from 'secst'
Named export for runtime support in the browser.

Demonstrates basic compile usage with and without custom tags, showing SECST to HTML transformation.

import { compile } from 'secst'; import fs from 'fs'; const source = `<p>Hello, <strong>World</strong>!</p>`; const html = compile(source); console.log(html); // Output: <p>Hello, <strong>World</strong>!</p> // With custom tags: const sourceWithTag = `<greeting>Hi, <name>Alice</name></greeting>`; const htmlWithTag = compile(sourceWithTag, { tags: { greeting: (children) => `<div class='greeting'>${children}</div>`, name: (children) => `<span class='name'>${children}</span>` }}); console.log(htmlWithTag); // Output: <div class='greeting'>Hi, <span class='name'>Alice</span></div>
secst --version
Debug
Known issues
deprecatedPackage version 0.0.3-alpha is in alpha stage and may have breaking changes in future releases.
fix
Pin to exact version or watch for updates.
affects: 0.0.3-a
gotchaSECST is ESM-only; CommonJS require will fail on Node.js without experimental modules flag.
fix
Use import syntax or set type: 'module' in package.json.
affects: >=0.0.0
gotchaCompiler may not handle all HTML entities or edge cases; beta quality.
fix
Test thoroughly and report issues on GitHub.
affects: <1.0.0
gotchaDocumentation at secst.org may be incomplete or outdated.
fix
Refer to GitHub README or source code.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'secst'
Package not installed or import path incorrect.
fix
Run npm install secst@0.0.3-a and ensure ESM import syntax.
SyntaxError: Cannot use import statement outside a module
CommonJS environment does not support ESM imports.
fix
Add type: 'module' to package.json or use .mjs extension.
TypeError: compile is not a function
Incorrect import or wrong symbol name.
fix
Use import { compile } from 'secst' rather than default import.
Upgrade
Version history
0.0.3-alatest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
secst — npm install secst · libregistry